/* ============================================================
   BASE
   ============================================================
   Reset, typography defaults, layout primitives, the shared top
   nav, and print rules. Nothing here is specific to one page.

   Component styles (cards, quiz screens, resume sections) live
   in components.css.
   ============================================================ */

/* --- Reset -------------------------------------------------- */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a  { color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* Visible keyboard focus everywhere. Do not remove. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respect a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link for keyboard and screen reader users. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 50;
  text-decoration: none;
  border-radius: 0 0 var(--radius-xs) 0;
}
.skip-link:focus { left: 0; }

/* --- Layout primitives -------------------------------------- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* A "screen" is a full-viewport view toggled by JS. Used on
   index.html, where the quiz and its steps share one page. */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }

.page { padding-bottom: 80px; }

/* --- Shared top nav ----------------------------------------
   Rendered by assets/js/nav.js on every page except the quiz.
   Markup is generated there, styling lives here.               */

.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(247, 245, 239, .92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 4;
}
.topbar-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--space-3) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: var(--fs-small);
}
.topbar-left a {
  text-decoration: none;
  color: var(--muted);
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.topbar-left a:hover { color: var(--ink); }

/* Current page in the nav. Set by nav.js from the filename. */
.topbar-left a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.topbar-right { display: flex; gap: var(--space-1); }

.tailored-badge {
  font-size: var(--fs-micro);
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 600;
}

/* --- Buttons ------------------------------------------------ */

.btn {
  border-radius: var(--radius-xs);
  padding: 9px var(--space-3);
  font-size: var(--fs-small);
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--card);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
  color: var(--ink);
}
.btn:hover { border-color: var(--accent); }
.btn.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn.primary:hover { background: #000; }

/* --- Section shells ----------------------------------------- */

.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--space-5) var(--gutter) 0;
}
.section h2 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
}

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

.cta {
  max-width: var(--measure);
  margin: var(--space-6) auto 0;
  padding: 34px var(--gutter);
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta h3 { font-family: var(--serif); font-size: var(--fs-h2); margin-bottom: var(--space-1); }
.cta p  { color: var(--muted); font-size: var(--fs-body); margin-bottom: 18px; }
.cta-btns { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }

.footer-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: var(--space-5);
}

/* --- Print --------------------------------------------------
   Print produces a readable fallback, not the deliverable PDF.
   The real PDF is a file at assets/docs/. See README.          */

@media print {
  .topbar, .intro-banner, .cta, .footer-note, .skip-link { display: none !important; }
  body { background: #fff; }
  .job-bullets li.dim { opacity: 1; }
  .section { padding-top: var(--space-3); }
  a[href]:after { content: "" !important; }
}
