/* Shared styles for every page. Values come from the locked design checkpoints in
   artifacts/design/; page-specific layout lives in its own stylesheet.
   Sizes use container units (cqi) as the checkpoints do: .page is the container and
   spans the viewport, so 1cqi is 1% of the page width. */

:root{
  --navy:#063959;
  --cream:#f6f7ed;
  --teal:#1b8a80;      /* deep teal: "after" figures and accents on light surfaces */
  --aqua:#6bd1c7;      /* emphasis on navy */
  --coral:#f7735b;     /* rules and fills */
  --coral-ink:#a73d30; /* small coral text on cream, white and tan */
  --lime:#d2f24b;      /* rare highlight on navy */
  --tan:#eae6d6;
  --ink:#1d1d1d;
  --rule:color-mix(in srgb,var(--navy) 30%,var(--cream));
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--cream);color:var(--navy);font:400 18px/1.5 Outfit,sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,p,figure,blockquote{margin:0}
img,svg,video{display:block;max-width:100%}
/* The hidden attribute always wins over display rules (e.g. Home's film before Play). */
[hidden]{display:none!important}
svg.arw{display:inline-block}

/* No single stray word on the last line of a paragraph or heading, where supported. */
h1,h2,h3,h4,p,li,dd,dt,figcaption{text-wrap:pretty}
/* Headings wrap into even lines ("Lines break evenly", Home v4 spec); pretty alone left
   About's H1 ending on a lone "value." from 768px up. */
h1,h2,h3{text-wrap:balance}

.page{container-type:inline-size;overflow-x:clip}

/* Body text drops to 17px on phones (site-architecture: Shared styles). */
@media (max-width:670px){.page{font-size:17px}}

.rail{width:min(1120px,calc(100% - 2 * clamp(18px,5cqi,56px)));margin-inline:auto}

/* Links: native underline, 1px, offset .28em, default skip-ink. No border-bottom rules. */
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.28em}
a:focus-visible,button:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:2px}

/* Drawn arrows: 6px from the text (Home v4). */
.arw{vertical-align:-1px;margin-left:6px}
.arw-left{margin-left:0;margin-right:6px}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Skip link: hidden until focused. */
.skip{position:absolute;left:12px;top:-100px;z-index:100;padding:10px 14px;background:var(--cream);color:var(--navy);font-weight:600;border-radius:4px}
.skip:focus{top:12px}

/* Masthead (case-page version; Home and About align to it). */
/* The masthead stays pinned on every page (owner, November 22; it was Home only, as in v4), and
   in-page jumps (journey cards, Contact) land below it rather than under it. */
.masthead{position:sticky;top:0;z-index:30;background:var(--navy);color:var(--cream);border-bottom:1px solid var(--cream)}
html{scroll-padding-top:72px}
.masthead .rail{min-height:64px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.masthead .name{font:750 clamp(23px,3.2cqi,33px)/1 Fraunces,serif;text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.masthead nav{display:flex;gap:18px;font-size:16px;font-weight:600}
.masthead nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.masthead nav a:hover{text-decoration:underline}
.masthead nav a[aria-current]{color:var(--aqua)}
@container (max-width:670px){
  .masthead .rail{flex-wrap:wrap;padding-block:8px}
}

/* Compact navy contact band (About and case pages). */
.contact-band{background:var(--navy);color:var(--cream)}
.contact-band .rail{padding-block:25px}
.contact-band .foot-row{display:flex;justify-content:space-between;align-items:center;gap:12px 28px;flex-wrap:wrap}
/* 44px tap target without changing the band's height: padding offset by negative margin. */
.contact-band a{font-size:15px;font-weight:600;display:inline-block;padding-block:11px;margin-block:-11px}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
