/* Page composition for the career edition. Deliberately mirrors the apex site's
   home.css so the two editions share one visual language: the design system
   supplies tokens, fonts, colour, base element styling, the pds-* components and
   the reveal motion; what remains here is app-specific chrome and layout.

   Linked AFTER the design-system CSS in <head> so these app rules win on the few
   element selectors they share with the design-system base. Kept out of the
   Astro <style> pipeline deliberately, so cascade order is explicit. */

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

.skip { position: absolute; left: -9999px; top: 0; background: var(--primary);
  color: var(--primary-ink); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { left: 8px; top: 8px; z-index: 100; }

/* ---- header / chrome ---- */
header { border-bottom: 1px solid var(--border); background: var(--bg);
  position: sticky; top: 0; z-index: 20; }
/* The header floats (sticky, top: 0), so a bare anchor jump would tuck the
   target heading up underneath it. Reserve the header's height (~75px: 20+20
   nav padding, the 1px rule, and the ~34px mark line-box) plus breathing room,
   so nav-link and skip-link jumps land the heading just below the header. */
html { scroll-padding-top: 90px; }
.nav { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 20px 24px; max-width: var(--measure-prose); margin: 0 auto; }
.mark { font-family: var(--font-serif); font-weight: 700;
  font-size: 1.18rem; letter-spacing: .01em; color: var(--text); text-decoration: none; }
.mark .dot { color: var(--accent); }
/* Wayfinding: in-page section anchors. Quiet by default; the section in view
   gets the accent underline via aria-current (set at runtime by nav.js). */
.sections ul { display: flex; gap: 26px; list-style: none; align-items: baseline; margin: 0; padding: 0; }
.sections a { color: var(--text-muted); font-size: .82rem; letter-spacing: .04em;
  font-feature-settings: "smcp"; text-transform: lowercase; text-decoration: none;
  padding-bottom: 3px; border-bottom: 2px solid transparent; transition: var(--transition-color); }
.sections a:hover { color: var(--text); }
.sections a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }

/* Utilities / destinations: the link back to the main site and the theme
   toggle, grouped apart from the section anchors so their behaviour reads. */
.utils { display: flex; align-items: baseline; gap: 14px; }
.util-link { display: inline-flex; align-items: baseline; gap: 4px;
  color: var(--text-muted); font-size: .82rem; letter-spacing: .04em;
  font-feature-settings: "smcp"; text-transform: lowercase; text-decoration: none;
  transition: var(--transition-color); }
.util-link:hover { color: var(--text); }
.util-link .ph { font-size: 12px; }

/* The theme toggle is design-system markup + CSS now (forms/ThemeToggle,
   .pds-toggle in components.css); only its behaviour lives here, in
   theme-toggle.js. The switch pill has no text baseline, so centre it against
   the baseline-aligned util links instead of letting its bottom edge sit on
   their baseline. */
.utils .pds-toggle { align-self: center; }

/* ---- sections / typography ---- */
main { padding-bottom: 8px; }
.career { max-width: var(--measure-prose); margin: 0 auto; padding: 56px 24px 0; }
section { margin-bottom: 64px; }
main h1 { margin-bottom: 16px; }
main h2 { margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.lede { font-size: var(--text-lede); color: var(--text-muted); max-width: 54ch; }

/* hero with marginal gloss */
.kit-hero { position: relative; }
.kit-hero .role { font-family: var(--font-mono); font-size: .78rem; color: var(--text-muted);
  letter-spacing: .04em; margin-bottom: 24px; }
.kit-gloss { margin: 18px 0 0; }
@media (min-width: 1080px) {
  .kit-hero .kit-gloss { position: absolute; left: calc(100% + 32px); top: .5rem; width: 200px; margin: 0; }
}

/* about: the drop cap */
.kit-about p:first-of-type::first-letter {
  font-family: var(--font-serif); font-weight: 700; float: left;
  font-size: 3.4rem; line-height: .78; padding: 6px 10px 0 0; color: var(--accent); }

/* CV call-to-action: the career edition's one destination that leaves the
   landing page — the full curriculum vitae. Framed as a bordered card so it
   reads as a deliberate hand-off, not just another link. */
.cv-cta { border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 28px 30px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 20px; }
.cv-cta__body { max-width: 52ch; }
.cv-cta__body p { color: var(--text-muted); margin: 6px 0 0; }
.cv-cta__link { display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .03em;
  color: var(--primary-ink); background: var(--primary); text-decoration: none;
  padding: 10px 16px; border-radius: var(--radius); white-space: nowrap;
  transition: var(--transition-color); }
/* On hover, deepen the fill with the primary-hover token and hold the text at
   --primary-ink. This out-specifies the design-system base `a:hover`, which
   would otherwise recolour the label to --primary-hover (a near-invisible
   brown-on-brown in light, gilt-on-gilt in dark) and add a stray underline. */
.cv-cta__link:hover { background: var(--primary-hover); color: var(--primary-ink);
  text-decoration: none; }
.cv-cta__link .ph { font-size: 15px; line-height: 0; }

/* contact */
.contact p { font-size: 1.1rem; }
.contact .ph { margin-right: 6px; margin-left: 0; font-size: .9em; vertical-align: -2px; }

/* footer */
footer { border-top: 1px solid var(--border); margin-top: 56px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 24px; max-width: var(--measure-prose); margin: 0 auto;
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); }

/* Small spacing utilities — replace former inline style= attributes on the
   section eyebrows, so the page ships no inline styles (tight CSP). */
.u-mb-16 { margin-bottom: 16px; }
.u-mb-8 { margin-bottom: 8px; }

@media (max-width: 560px) {
  main h1 { font-size: 2.1rem; }
  .sections ul { gap: 18px; }
}
