/* Page composition for the home edition. The design system supplies tokens,
   fonts, colour, base element styling, the pds-* components, and the reveal
   motion; what remains here is the app-specific chrome and layout.

   Served as a static stylesheet 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
   the cascade order is explicit rather than bundler-dependent.) */

.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 CV link and theme toggle, grouped apart from
   the section anchors so their different behaviour reads at a glance. */
.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; }
.home { 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); }

/* 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; }
}
