/* ============================================================
   AWS Student Builder Group — Certification FAQ
   Clean, minimal, mobile-first: warm paper, one column,
   hairline dividers, AWS orange as a rare functional accent.
   ============================================================ */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/InterTight-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/InterTight-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Inter-600.woff2") format("woff2");
}

:root {
  --ground: #F7F5F1;
  --ink: #161D26;
  --text: #3A424C;
  --muted: #59636E;
  --line: rgba(23, 33, 46, 0.14);
  --accent: #FF9900;
  --accent-ink: #A95200;

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ground);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Layout shell: one readable column ---------- */

.sheet {
  max-width: 720px;
  margin-inline: auto;
  padding: 0 20px 80px;
}

/* ---------- Header ---------- */

.band--header {
  border-bottom: 1px solid var(--line);
}

.band__inner {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.band__logo {
  width: 44px;
  height: 44px;
  flex: none;
}

.band__wordmark {
  margin: 0;
  line-height: 1.35;
}

.band__wordmark strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.band__wordmark span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Title ---------- */

.band--title {
  padding: 48px 0 8px;
}

.band--title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.25rem + 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.cell-marker {
  display: block;
  width: 22px;
  height: 22px;
  background: var(--accent);
  margin: 0 0 20px;
}

/* ---------- FAQ list: hairline-divided rows ---------- */

.faq {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.faq__item {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.faq__item:first-child {
  border-top: 0;
}

.faq__index {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.faq__q {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.faq__q a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  transition: color 0.15s ease, text-decoration-color 0.15s ease, background-color 0.3s ease;
}

.faq__q a:hover {
  color: var(--accent-ink);
  text-decoration-color: var(--accent-ink);
}

/* Marker-pen highlight when landing on a deep link */
.faq__item:target .faq__q a {
  background: rgba(255, 153, 0, 0.18);
  border-radius: 3px;
}

.faq__a {
  margin: 0;
  max-width: 65ch;
}

.faq__a a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.15s ease;
}

.faq__a a:hover {
  text-decoration-color: var(--accent-ink);
}

/* ---------- Footer ---------- */

.band--footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 0;
}

.footer__link {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.footer__link:hover {
  color: var(--accent-ink);
  text-decoration-color: var(--accent-ink);
}

/* ---------- Global affordances ---------- */

a:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: #FFE1B0;
  color: var(--ink);
}

/* ---------- Small screens ---------- */

@media (max-width: 479.98px) {
  .band__inner {
    padding: 14px 20px;
  }

  .band--title {
    padding: 40px 0 4px;
  }

  .band--title h1 {
    font-size: clamp(1.875rem, 1.35rem + 4vw, 2.25rem);
  }

  .faq__item {
    padding: 24px 0;
  }

  .faq__q {
    font-size: 1.0625rem;
  }

  .faq__a {
    font-size: 0.9375rem;
  }
}