/* ===========================================================================
   main.css — layout, type styles, components
   ---------------------------------------------------------------------------
   Migration of amyinsvg.cargo.site to static files. Not a redesign.
   All color and font values come from tokens.css. Nothing hardcoded here.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. SELF-HOSTED FACES  (spec §4 — "Weights to load")
   ---------------------------------------------------------------------------
   Inter Tight, Instrument Serif and DM Mono are SIL OFL, which permits
   redistribution — so they are committed to this repo, subset to Latin,
   woff2, font-display: swap. Only the weights §4 lists are loaded.

   General Sans is NOT here on purpose. See the Fontshare <link> comment in
   every HTML head — it must stay on the CDN for license reasons.
   --------------------------------------------------------------------------- */

/* Inter Tight — Italic 400, Medium 500, SemiBold 600.
   The roman file is Google's VARIABLE Latin instance (wght 100–900 in one
   file, 44.9 KB). Declaring the 500–600 range here means one request covers
   both Medium and SemiBold; two static instances would have been 45.2 KB
   across two requests, so this is the same payload with one fewer round trip.
   If a third roman weight is ever needed it is a range edit, not a download. */
/* 2026-11-23 WEIGHT FIX: this was declared 500 600, so every request for 400
   (all body copy) matched the 500 face and rendered Medium — body and
   project titles were the same weight. The file is the full 100–900
   variable instance, so declaring the full range costs nothing. */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* The italic is a static 400 instance — Italic 400 is the only italic used. */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-italic-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Instrument Serif — Regular 400, Italic 400. */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* DM Mono — Regular 400, Medium 500.
   DM Mono carries six styles in this system, including the two that used to
   be Monument Grotesk (Heading 2, Caption). It ships Light 300 / Regular 400 /
   Medium 500 and has NO Bold — which is why Heading 2's captured weight of
   700 is set at 500 below. See the note on .t-h2. */
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------------
   2. RESET
   --------------------------------------------------------------------------- */

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

html {
  /* Smooth scrolling serves the "↓ Next" cues and the ↑ Top link.
     Disabled under prefers-reduced-motion at the end of this file (§10).
     Scroll-snap was deliberately NOT used: it fights the sticky header and
     hijacks trackpad scrolling on long sections. Smooth scroll alone is
     enough for the cues and degrades to an instant jump with no JS. */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-frame);
  color: var(--c-ink);
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: 1.65;
  /* Bodycopy is ROMAN. §4's table listed it as "Inter Tight Italic" and told
     this build to apply font-style: italic — that was wrong. The Cargo panel
     was reporting the loaded FONT FILE, not the rendered style, and body text
     on the source renders roman. Do not reintroduce the italic from §4.
     This is the base style, so the italic propagated site-wide; setting it
     normal here is what un-italicises the buttons, list items and links that
     inherit from it. */
  font-style: normal;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---------------------------------------------------------------------------
   3. PAGE SHELL  (SUPERSEDES §3 and §6 of the build spec)
   ---------------------------------------------------------------------------
   The spec described the yellow as an inset frame around a single content
   field. It is not. Yellow is the page background; the cream areas are
   SEPARATE STACKED BLOCKS in a centered column, with the page showing through
   the gaps between them. A stack of cards on a colored page.

       yellow page background
           BRAND & DIGITAL DESIGNER      Info Contact IG   <- header on yellow
           +-----------------------------+
           |  cream block: hero          |  100svh, name bottom-left
           +-----------------------------+
                                            <- yellow gap
           +-----------------------------+
           |  cream block: project 1     |
           +-----------------------------+

   Two layers: .page is 50% of the viewport and centered; .block is the cream,
   inset inside it so the yellow shows down both sides. See tokens.css for
   where each number comes from.

   CAVEAT, per the correction: Cargo's captured settings are scoped to the
   COVER PAGE only ("Affects current page only"). Each project section, the
   Info section and every other page is a separate Cargo page with its own
   Local Page Settings, which will differ — at minimum 100% Height does not
   apply to them. The Cover values are applied to every block here as the
   best available approximation. The non-hero blocks are NOT verified.
   --------------------------------------------------------------------------- */

.page {
  width: var(--page-width);
  margin-inline: auto;          /* pure centering — measured 900px vs 904px
                                   of margin at 3334px wide */
  display: flex;
  flex-direction: column;
}

/* Each section is its own cream block. */
.block {
  background: var(--c-surface);
  margin-inline: var(--block-inset);
  padding: var(--block-pad);
  /* --block-gap-abs, not --block-gap: scroll-margin does NOT accept
     percentages, so the percentage form was silently ignored and anchor
     targets landed flush against the viewport top. */
  scroll-margin-top: var(--block-gap-abs);
}

/* Uniform yellow gap between blocks.
   Percentage margin-top resolves against the containing block's INLINE size
   (the column width), which is well defined. A percentage row-gap on a flex
   column would resolve against the block axis and is indeterminate at auto
   height, so margins are used deliberately here rather than `gap`.

   .page > * + *  covers header -> main and main -> footer.
   main > * + *   covers block -> block inside main.
   Neither doubles up, because no margin is put on main itself twice.         */
.page > * + *,
.page main > * + * { margin-top: var(--block-gap); }

/* The header -> first-block gap is its own token, so tuning it leaves every
   other gap on the page alone. More specific than the rule above (one class +
   one type beats one class + two universals), so it wins without !important.
   This MOVES the hero up; it does not stretch it — see .hero. */
.page > main { margin-top: var(--header-gap); }

/* main carries no padding or background of its own — it only groups blocks. */
.page main { display: flex; flex-direction: column; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--c-surface);
  color: var(--c-link);
  padding: var(--stack-sm);
  border: 1px solid var(--c-rule);
}
.skip:focus { left: 1rem; }

/* ---------------------------------------------------------------------------
   4. TYPE STYLES  (spec §4 — all 17 styles from Cargo's Text Styles panel)
   ---------------------------------------------------------------------------
   Tracking values in the panel are em.

   A style being NAMED "Italic" in §4 does not mean it renders italic. The
   panel reported the loaded font file, not the rendered style — which is how
   Bodycopy came to be wrongly italicised site-wide. Bodycopy is corrected to
   roman. Body Large carries the same §4 annotation and is still italic; it
   has not been re-checked against the source (see the note at .t-body-lg).

   Info Label and Accent Marker are identical in every property, so they are
   one class (.t-label), per §4.

   Caption, Heading 1 and Heading 2 set NO color and inherit from their
   parent — deliberately not assigned one.

   MAPPING CAVEAT — not verified, do not treat as settled:
   The panel gives the styles but not which element uses which. The
   style-to-element mapping in §4 (and therefore every place these classes are
   applied in the HTML) is INFERRED from the style names and the live markup.
   It is reasonable but unconfirmed. Left as the spec names it; resolving it
   needs the original Cargo editor, which lapses with the subscription.
   --------------------------------------------------------------------------- */

/* Hero Display — General Sans Bold, 8.25rem/0.9, −0.04em, 700, ink.
   8.25rem is 132px and overflows a phone, so it is clamped per §4. */
/* 2026-11-23 TRIAL: the name is set in plum — the largest, most deliberate
   use of the accent, so the color is established at the first screen. */
.t-hero {
  font-family: var(--font-display);
  font-size: clamp(3rem, 13vw, var(--t-hero));
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 700;
  font-style: normal;
  color: var(--c-link);
}

/* Heading 1 — General Sans Bold, 4rem/0.9, 0, 700, color INHERITED.
   Clamped too, "more gently" per §4. */
.t-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, var(--t-h1));
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-weight: 700;
  font-style: normal;
  color: var(--c-link);   /* 2026-11-23 TRIAL: matches the hero name */
}

/* Heading 2 — captured as Monument Grotesk Mono Bold 700; folded into
   DM Mono per §4. DM Mono has no Bold, so 700 becomes Medium 500 — at 2rem
   the size carries the hierarchy.
   THE FALLBACK, IF 500 TURNS OUT TOO LIGHT: move all six mono styles to
   IBM Plex Mono (OFL, runs to 700). That shifts the character of the small
   labels too, so §4 calls it a design decision, not a build one. Not taken
   here. Color inherited. */
/* 2026-11-23 HIERARCHY FIX: page titles (case studies, Contact, 404) move
   from DM Mono 500 to the display face at 700, so every page title shares
   one family with the hero and Info heading. Mono stays for labels, tags and
   links, which is the job it does everywhere else. Supersedes the note
   above. */
.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, var(--t-h2));
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
  font-style: normal;
}

/* Pull Quote — Instrument Serif, 1.625rem/1.35, 0, 400, ink. */
.t-pullquote {
  font-family: var(--font-serif);
  font-size: var(--t-pullquote);
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  color: var(--c-ink);
}

/* Project Title — Inter Tight Medium, 1.375rem/1.2, −0.015em, 500, ink. */
.t-project {
  font-family: var(--font-ui);
  font-size: var(--t-project);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  font-style: normal;
  color: var(--c-ink);
}

/* Teaser caption — Instrument Serif, 1.35rem/1.65, 0, 400, gray.

   CURRENTLY UNUSED. §4 mapped this style to the homepage project
   descriptions on the strength of its name; the type hierarchy audit
   measured the source and found a sans at body size there, so those are
   Bodycopy now. The class is kept because §4 says to build all 17 styles and
   the next case study will probably want it — but nothing on the site
   applies it today. Do not re-attach it to the project descriptions. */
.t-teaser {
  font-family: var(--font-serif);
  font-size: var(--t-teaser);
  line-height: 1.65;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  color: var(--c-ink-mute);
}

/* Nav Link — Inter Tight Medium, 1.3rem/1.3, 0, 500, ink. */
.t-nav {
  font-family: var(--font-ui);
  font-size: var(--t-nav);
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 500;
  font-style: normal;
  color: var(--c-ink);
}

/* Caption — captured as Monument Grotesk Variable wght 440; folded into
   DM Mono, which has no 440, so 400. Color inherited. */
.t-caption {
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
}

/* Subtitle Italic — Instrument Serif italic, 1.1rem/1.2, 0, 400, gray. */
.t-subtitle {
  font-family: var(--font-serif);
  font-size: var(--t-subtitle);
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 400;
  font-style: italic;
  color: var(--c-ink-mute);
}

/* Body Large — Inter Tight Italic, 1.05rem/1.6, 0, 400, ink.

   STILL ITALIC, and deliberately not changed in the Bodycopy pass. §4 gives
   it the same "Inter Tight Italic" annotation that proved wrong for
   Bodycopy, so it is very likely wrong here too — but this is the case
   study's body style, and the case study pages have not been audited against
   the source. It also surfaces in the contact overlay's sent/failed messages
   and on 404 and /contact/thanks/, so those render italic today. Check
   against the source before changing. */
/* 2026-11-23: now ROMAN. Whole case study paragraphs in italic were the
   weakest reading experience on the site, and the note above already
   suspected the italic was the same §4 mistake as Bodycopy. */
.t-body-lg {
  font-family: var(--font-ui);
  font-size: var(--t-body-lg);
  line-height: 1.6;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  color: var(--c-ink);
}

/* View Case Study — DM Mono, 1.05rem/1.65, 0.08em, 400, plum. */
/* 2026-11-23 NO-CAPS PASS: links move from tracked DM Mono to the body face
   at Medium, sentence case, plum. Tracked mono caps read as a template tell;
   the color and weight now carry the link. */
.t-cta {
  font-family: var(--font-ui);
  font-size: var(--t-cta);
  line-height: 1.65;
  letter-spacing: 0;
  font-weight: 500;
  font-style: normal;
  color: var(--c-link);
}

/* Tag/Metadata — DM Mono, 0.95rem/1.9, 0.05em, 400, gray. */
.t-tag {
  font-family: var(--font-mono);
  font-size: var(--t-tag);
  line-height: 1.9;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-style: normal;
  color: var(--c-ink-mute);
}

/* Currently Line — Inter Tight, 0.94rem/1.4, 0, 400, ink.

   FAMILY CHANGED from Instrument Serif, which is what §4 records. Size is
   unchanged at 0.94rem.

   This was the last place Instrument Serif appeared on the homepage — the
   project descriptions moved to Bodycopy in the type hierarchy audit. The
   face is NOT removed from the @font-face block: it still sets the case
   study dek and pull quote, so it stays loaded and the payload is unchanged.
   Do not strip it.

   SIZE NOTE: this is no longer the same size as the project descriptions.
   They were matched at 0.94rem for one round, then the audit moved the
   descriptions to Bodycopy (0.875rem) and this stayed at 0.94rem. Both are
   Inter Tight now, so the 14px / 15.04px difference is visible as a slight
   mismatch rather than a family distinction. Left as instructed. */
.t-currently {
  font-family: var(--font-ui);
  font-size: var(--t-currently);
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  color: var(--c-ink);
}

/* Bodycopy — Inter Tight ROMAN, 0.875rem/1.65, 0, 400, ink.
   §4 records "Inter Tight Italic" and it is WRONG: the panel reported the
   loaded font file, not the rendered style. The source sets body text roman.
   Corrected here and at the `body` base above — do not put it back. */
.t-body {
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: 1.65;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  color: var(--c-ink);
}

/* Brand Mark — Inter Tight SemiBold, 1.3rem/1.3, 0.04em, 600, ink.
   §4 records the size as 0.8rem and the source renders it that way; it is
   1.3rem here to match Nav Link, deliberately. Weight and tracking are
   untouched — those are what still tell it apart from the nav. The value
   lives in tokens.css as --t-brandmark. */
.t-brandmark {
  font-family: var(--font-ui);
  font-size: var(--t-brandmark);
  line-height: 1.3;
  letter-spacing: -0.01em;   /* 2026-11-23: sentence case now; 0.04em was caps tracking */
  font-weight: 600;
  font-style: normal;
  color: var(--c-ink);
}

/* Info Label + Accent Marker — identical in every property, so one class.
   DM Mono, 0.7rem/1.5, 0.08em, 400, plum. */
/* 2026-11-23 NO-CAPS PASS: labels are sentence case in the body face at
   SemiBold, plum — a label you read, not a tracked mono eyebrow. */
.t-label {
  font-family: var(--font-ui);
  font-size: var(--t-label);
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 600;
  font-style: normal;
  color: var(--c-link);
}

/* Case study section headings were the same tiny label; they are real
   subheads now, in ink, pulled closer to the paragraph they introduce. */
.case-body > h2.t-label {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin-top: var(--stack-sm);
  margin-bottom: calc(var(--stack-sm) - var(--stack-md));
}

/* Several styles above are defined for pages that do not exist yet (§4).
   Kept regardless — they cost nothing and case study two will want them. */

/* ---------------------------------------------------------------------------
   5. LINKS AND FOCUS  (§10 — visible keyboard focus on EVERY interactive
   element, including the hero name, which is a link with no natural
   affordance)
   --------------------------------------------------------------------------- */

a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

/* 2026-11-23 TRIAL: selected text in plum, so the accent shows up in use. */
::selection { background: var(--c-link); color: var(--c-surface); }

:focus-visible {
  outline: 2px solid var(--c-link);
  outline-offset: 3px;
}

/* VIEW CASE STUDY — all-caps mono in plum with no underline, per the source.
   The caps come from text-transform rather than literal capitals in the
   markup, deliberately: some screen readers spell out literal all-caps words
   letter by letter, and this way the accessible name stays "View Case Study".
   With no persistent underline it needs its own hover and focus affordances;
   the shared :focus-visible ring supplies the latter. */
.cta-case {
  /* Sized to --t-tag so it matches the discipline labels at the top right of
     the same block, rather than inheriting .t-cta's 1.05rem. Deliberately
     NOT done by changing --t-cta: that token is shared with ↓ Next, Let's
     talk →, ↑ Top and the back links, none of which change. */
  /* 2026-11-23 NO-CAPS PASS: sentence case at body size, Medium, plum —
     the same link style as every other .t-cta. Supersedes the note above. */
  font-size: var(--t-body);
  text-decoration: none;
}
/* Hover and focus gain an underline and STAY plum — supersedes the earlier
   hover-to-ink. The color must not change; the underline is the whole
   affordance. :focus-visible gets it too, alongside the shared focus ring, so
   keyboard and pointer read the same. */
.cta-case:hover,
.cta-case:focus-visible {
  color: var(--c-link);
  text-decoration: underline;
}

/* ↓ Next — Inter Tight in ink, not the mono plum treatment, and no underline.
   The 0.08em tracking that comes with .t-cta is dropped too: it is a mono/caps
   device and reads as a mistake on sans. Size is left at --t-cta since the
   brief named family, color and underline only. Both of those are one-line
   reverts if the comparison says otherwise. */
.cta-next {
  font-family: var(--font-ui);
  color: var(--c-ink);
  letter-spacing: 0;
  text-decoration: none;
}
.cta-next:hover { color: var(--c-link); }

/* Let's talk → — the strongest thing in the meta block. Inter Tight Medium
   500 as the starting point; plum, underline and arrow all kept. 500 is
   already loaded (it is the Medium in the variable roman file), so this costs
   no extra payload. */
.cta-talk {
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0;
}

/* A muted, non-navigating stand-in for links whose target does not exist yet
   (projects 2 and 3, "Next → Scott Campit", and the In The Wild in-body link).
   Rendered as a <span>, not an <a>, so there is nothing to focus or click and
   no wrong URL to guess. When the target lands it becomes an <a class="t-cta">. */
.link-pending {
  color: var(--c-ink-mute);
  font-style: normal;
  cursor: default;
}
.link-pending::after {
  content: " (coming soon)";
  font-family: var(--font-ui);
  font-size: var(--t-label);
  letter-spacing: 0;
  /* text-transform inherits into ::after, and .cta-case now uppercases its
     parent — without this the suffix would shout "(COMING SOON)". */
  text-transform: none;
}

/* ---------------------------------------------------------------------------
   6. HEADER
   ---------------------------------------------------------------------------
   Sits ON THE YELLOW, above the first block — not inside any block. Aligned
   to the content column: the same inset as the blocks, so its left edge lines
   up with the cream block's left edge and its right edge with the block's
   right edge.

   It is static, not sticky. The build spec said "fixed or sticky" and this
   build previously chose sticky — but in the corrected model the header has
   no background of its own, so sticking it would drag transparent text across
   the cream blocks as they scroll under it. Static is the only option that
   holds up here.

   The `↓` the correction mentions at the column's right edge: the nav's right
   edge is flush to the block's right edge, which is what that describes. The
   three nav links from §6 (Info / Contact / IG) are kept — the correction
   changes the shell only, and Contact is the contact-overlay trigger.        */

.site-header {
  margin-inline: var(--block-inset);
  padding-block: var(--stack-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--stack-sm);
  align-items: baseline;
  justify-content: space-between;
  background: transparent;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
}

/* Nav + scroll cue, grouped so they sit together at the right with the arrow
   flush to the column's right edge. Stays one row when the header stacks on
   mobile — see the note in index.html. */
.header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2rem);
}

/* The ↓ scroll trigger. Undecorated so it reads as a control rather than a
   nav item, shifting to the accent color on hover and focus; the shared
   :focus-visible ring applies on top.

   The hit area grows INWARD: padding on the start side only, none on the end.
   That keeps the glyph flush with the column's right edge while the box stays
   inside the column, so the focus ring doesn't hang off the edge. (Padding on
   both sides plus a negative end margin also keeps the glyph flush, but the
   box then overhangs by the padding and takes the focus ring with it.)
   ~13px glyph + 16px padding = ~29px wide against a line box already ~27px
   tall, clearing the 24px minimum.

   Vertical padding is deliberately avoided: it would grow the header and
   invalidate --header-h, which the hero's first-screen height is calculated
   from. */
.header-cue {
  display: inline-block;
  text-decoration: none;
  color: var(--c-ink);
  padding-inline: 1rem 0;
}
.header-cue:hover,
.header-cue:focus-visible { color: var(--c-link); }

/* ---------------------------------------------------------------------------
   7. HOME — hero, project blocks, info, footer
   --------------------------------------------------------------------------- */

.hero {
  /* 100% height with content bottom-aligned — Cargo "100% Height: on,
     bottom-aligned", plus its page-scoped custom CSS:
        .page-content { align-items: flex-end; }
        .page         { min-height: var(--viewport-height); }
        .page-layout  { align-items: flex-end; }
     Reproducing the effect, not the selectors.

     svh, not vh: Cargo's --viewport-height existed to dodge the resize when
     mobile browser chrome shows and hides, and svh is the modern equivalent.
     vh would make the block jump as the URL bar collapses. */
  /* DEVIATION FROM THE CORRECTION, stated plainly so it can be reverted:
     the correction says the hero block itself is 100% height. Taken
     literally, the header and the gap above it push the block's bottom edge
     past the fold, and since the name is BOTTOM-aligned it lands off-screen —
     measured 30px below at 1440, 40px at 768, 61px at 375. That contradicts
     the correction's own diagram, which shows the header and the whole hero
     block within one frame.

     So the FIRST SCREEN is 100svh: hero = 100svh - header - gap. The block
     still fills the viewport, and the name sits bottom-left inside it and is
     visible on load. To revert to the literal reading, drop the two
     subtractions below.

     svh, not vh, as directed: Cargo's --viewport-height existed to dodge the
     resize when mobile browser chrome shows and hides. vh would make the
     block jump as the URL bar collapses. */
  /* HEIGHT IS LOCKED — do not re-derive this from --header-gap.
     It stays 100svh minus the header minus the FULL --block-gap-abs, which is
     the height the block had when it ended exactly at the fold. Shrinking the
     header gap therefore SHIFTS this block upward rather than stretching it:
     top and bottom edges rise by the same amount. Pointing this calc at
     --header-gap instead would grow the box downward to the fold, which is
     the opposite of what is wanted.

     Consequence: the hero no longer ends at the fold, so a yellow band sits
     at the bottom of the first screen, equal to
     --block-gap-abs minus --header-gap. Expected, not a bug. */
  min-height: calc(100vh - var(--header-h) - var(--block-gap-abs));   /* no-svh fallback */
  min-height: calc(100svh - var(--header-h) - var(--block-gap-abs));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;    /* bottom, NOT center */
  align-items: flex-start;      /* Cargo "Text Align: left" */
}

/* The hero name is plain text — not a link, no underline. The underline
   struck through the descenders, and the source site has none. The scroll
   control it used to stand in for now lives in the header (.header-cue). */

/* Project blocks. Each is its own cream block now, so the border-top
   separator the old single-field model needed is gone — the yellow gap does
   that job. These are NOT 100% height: the correction is explicit that only
   the hero is, and that the other sections are separate Cargo pages whose
   settings were not captured. Treat their proportions as approximate. */
.project {
  display: flex;
  flex-direction: column;
}

/* Default rhythm between project children. Expressed as margins rather than
   a flex `gap` on purpose: gap applies uniformly to every child, so the image
   could not be spaced differently above and below without fighting it with
   negative margins. Margins let the two media rules below simply override. */
.project > * + * { margin-top: var(--project-title-gap); }

.project > * { max-width: var(--measure); }
.project .ph { max-width: none; }

/* Title row: title left, disciplines right, baselines aligned — one row, as
   the source has it. §6 listed them sequentially, which is what produced the
   old stack.

   max-width: none so the disciplines reach the block's content edge rather
   than stopping at --measure; the measure still caps the description below.
   flex-wrap means that on a narrow column the disciplines drop to their own
   line, left-aligned (space-between puts a lone item on a line at the start),
   which is the right fallback. */
.project-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--stack-sm);
  align-items: baseline;
  justify-content: space-between;
  max-width: none;
}

/* Asymmetric space around the image, larger ABOVE, which ties the image to
   the link beneath it. Both values are tokens — see tokens.css for where the
   numbers came from and why the absolute figures in the brief were not used
   literally. --media-below lands on the element AFTER the image, so .ph's own
   bottom margin from §5 is zeroed here to keep this the single source. */
/* 2026-11-23 NO-CAPS PASS — project descriptors. Replaces the right-aligned
   caps mono discipline line: the disciplines continue the title at title
   size in a lighter gray, so title and scope read as one phrase. (Plain
   sentence case and an italic serif caption were also tried.) */
.desc { margin: 0; }
.project-head.head-inline { justify-content: flex-start; column-gap: 0.45em; row-gap: 0; }
.desc-inline {
  font-family: var(--font-ui);
  font-size: var(--t-project);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: color-mix(in srgb, var(--c-ink-mute) 75%, var(--c-surface));
}

.project > .project-media { margin-top: var(--media-above); }
.project > .project-media + * { margin-top: var(--media-below); }
.project .ph { margin-bottom: 0; }

.next-cue { margin-top: var(--project-next-gap); }

/* Project links — 2026-11-23 MOCK, not yet approved.
   One row of jump links between the hero and the first project. On the
   yellow, aligned to the block edges and set in Nav Link like the header, so
   it reads as navigation. space-between spreads the five names across the
   column; when the column is too narrow they wrap and a short last line sits
   at the start. Anchors land on .block, which already has scroll-margin-top. */
.work-nav { margin-inline: var(--block-inset); }
.work-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem clamp(1rem, 3vw, 2rem);
}
.work-nav a:hover,
.work-nav a:focus-visible { color: var(--c-link); }

/* Services — 2026-11-23 MOCK, not yet approved.
   Name and one gray sentence per row, hairlines between rows. The 01–04
   numbers were removed at Amy's request: they read as a template. */
.service-list { margin-top: var(--stack-md); border-bottom: 1px solid var(--c-rule); }

.service-row {
  padding-block: var(--stack-sm);
  border-top: 1px solid var(--c-rule);
}
.service-name {
  font-family: var(--font-ui);
  font-size: var(--t-project);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.service-text { max-width: var(--measure); }
.service-text .t-body { margin-top: 0.4rem; color: var(--c-ink-mute); }
.services .next-cue { margin-top: var(--stack-md); }

/* 2026-11-23 copy pass: a one-line lead under the heading, a "See <project>"
   proof line per service, and a CTA after the list. */
.services-lead { margin-top: var(--stack-sm); max-width: var(--measure); font-size: var(--t-body-lg); }
.service-proof { margin-top: 0.5rem; font-size: var(--t-label); font-weight: 600; color: var(--c-ink-mute); }
.services-cta { margin-top: var(--stack-md); }
.services-cta + .next-cue { margin-top: var(--stack-sm); }

/* Info */
/* The <hr class="rule"> inside Info stays — §6 calls for a hairline before
   the meta block. Only the old section separator border is gone. */

.info-prose {
  max-width: var(--measure);   /* §10 — the live site runs past 90ch */
  margin-top: var(--stack-md);
  display: grid;
  gap: var(--stack-sm);
}

.rule {
  border: 0;
  border-top: 1px solid var(--c-rule);
  margin-block: var(--stack-lg);
}

/* Two-column meta block, roughly 45/55 per §6. */
.meta {
  display: grid;
  gap: var(--stack-md) var(--stack-lg);   /* was --field-pad, now retired */
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .meta { grid-template-columns: 45fr 55fr; }
}

/* Info rhythm — two scales, so spacing encodes grouping. A label sits close
   to its own value (--stack-pair) and far from the previous group
   (--stack-group), at roughly 1 : 3.5. Equal gaps are what made "Currently"
   appear to belong to the IG line above it rather than to its own value. */
.meta-group dt { margin-bottom: var(--stack-pair); }
.meta-group dd { margin: 0; }
.meta-group + .meta-group { margin-top: var(--stack-group); }

/* email -> IG are one group, so they take the pair gap; the first label after
   them starts a new group. */
.meta-col > p + p { margin-top: var(--stack-pair); }
.meta-col > p + .meta-group { margin-top: var(--stack-group); }

/* The CTA group is set apart from everything ABOVE it — that break is
   correct and stays. But its label and value are an ordinary pair,
   structurally identical to CURRENTLY and its line, so they use --stack-pair
   like every other pair in this block. No special case: the dt rule above
   already supplies it, and the previous --stack-md override is gone.
   Declared after the sibling rule so it wins on source order. */
.meta-group.meta-cta { margin-top: var(--stack-break); }

.meta-list { display: grid; gap: 0.15rem; }

/* 2026-11-23: portrait cut-out in place of the Formats/Engagements lists.
   On one column it is capped and left-aligned under the contact details.
   Revised 2026-11-23 at Amy's request: centered vertically against the left
   column, upright, with a page-yellow outline. The outline follows
   the silhouette like a sticker rather than boxing the cut-out: four
   zero-blur drop-shadows (flat color, no glow) stack into a solid edge. */
.meta-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
}
.meta-portrait img {
  width: 84%;
  max-width: 19rem;
  height: auto;
}
/* Two columns: pull the portrait's column back across the column gap so it
   centers in the whole space right of the text, not in the narrower grid
   track that ends flush with the block edge. */
@media (min-width: 48rem) {
  .meta-portrait { margin-left: calc(-1 * var(--stack-lg)); }
}

/* Portrait outline — 2026-11-23, chosen by Amy from seven options (plum,
   white, two-tone white/plum and plum/yellow, and this one). A 6px edge in
   the page yellow, built from zero-blur drop-shadows (flat color, no glow)
   so it traces the cut-out's silhouette like a sticker. */
.pf-yellow {
  filter:
    drop-shadow(6px 0 0 var(--c-frame)) drop-shadow(-6px 0 0 var(--c-frame))
    drop-shadow(0 6px 0 var(--c-frame)) drop-shadow(0 -6px 0 var(--c-frame));
}
@media (max-width: 47.99rem) {
  .meta-portrait { justify-content: flex-start; padding: var(--stack-sm) 0 var(--stack-sm) 1.5rem; }
  .meta-portrait img { max-width: 15rem; }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--stack-sm);
  justify-content: space-between;
  align-items: baseline;
}

/* ---------------------------------------------------------------------------
   8. IMAGE PLACEHOLDERS  (spec §5)
   ---------------------------------------------------------------------------
   No real images exist yet. Each box shows what belongs there, and the string
   inside it is the alt text already written on the live site — when a real
   image drops in, that string moves straight to the alt attribute.
   aspect-ratio prevents layout shift (§10).
   Ratios are a GUESS per §5; adjust once real assets exist.
   --------------------------------------------------------------------------- */

.ph {
  aspect-ratio: 3 / 2;
  background: color-mix(in srgb, var(--c-ink) 5%, var(--c-surface));
  border: 1px solid color-mix(in srgb, var(--c-ink) 18%, transparent);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  margin: 0 0 var(--stack-md);
}
.ph[data-ratio="16-9"] { aspect-ratio: 16 / 9; }
.ph[data-ratio="1-1"]  { aspect-ratio: 1 / 1; }
/* Real screenshots. Same box and ratios as .ph, so swapping a placeholder for
   an image causes no layout change. Screenshots are captured at the exact
   ratio, so cover only trims rounding; top alignment keeps headings in view. */
.shot {
  aspect-ratio: 3 / 2;
  margin: 0 0 var(--stack-md);
  overflow: hidden;
}
.shot[data-ratio="16-9"] { aspect-ratio: 16 / 9; }
/* 2026-11-23: square product photos and a wide workshop photo (Types & Tomes)
   keep their own proportions instead of being cropped to 3:2. A .shot-pair
   sets two squares side by side. */
.shot[data-ratio="1-1"]  { aspect-ratio: 1 / 1; }
.shot[data-ratio="20-9"] { aspect-ratio: 20 / 9; }
.shot[data-ratio="4-5"]  { aspect-ratio: 4 / 5; }
.shot[data-ratio="3-4"]  { aspect-ratio: 3 / 4; }
/* Four 4:5 Instagram posts as a 2x2 grid (Types & Tomes "brand in use"). */
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--stack-sm); }
.shot-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--stack-sm); }
.shot img,
.shot video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.project .shot,
.case-figures .shot { margin-bottom: 0; }

.ph span {
  font-size: var(--t-label);
  color: color-mix(in srgb, var(--c-ink) 55%, transparent);
  text-align: center;
  max-width: 40ch;
  /* Deliberately italic, so the placeholder reads as temporary. This used to
     come for free by inheriting the old italic Bodycopy base; now that the
     base is roman it has to be stated, or these silently go upright. */
  font-style: italic;
}

/* ---------------------------------------------------------------------------
   9. CASE STUDY  (spec §7 — built as a reusable pattern for future studies)
   --------------------------------------------------------------------------- */

.case-back { display: inline-block; margin-bottom: var(--stack-lg); }
.case-head { display: grid; gap: var(--stack-sm); max-width: var(--measure); }
.case-body { display: grid; gap: var(--stack-md); max-width: var(--measure); margin-top: var(--stack-lg); }
.case-quote {
  margin-block: var(--stack-md);
  padding-left: var(--stack-sm);
  border-left: 1px solid var(--c-rule);
  font-style: italic;   /* §7 — the pull quote is set italic */
}
.case-figures { margin-top: var(--stack-lg); display: grid; gap: var(--stack-md); }
.case-figures .ph { margin-bottom: 0; }
.case-deliverables { display: grid; gap: 0.35rem; margin-top: var(--stack-sm); }
.case-deliverables li { padding-left: 1.2em; text-indent: -1.2em; }
/* The em dash is escaped so it renders on servers that send this file without
   a charset (python -m http.server serves it as text/plain). */
.case-deliverables li::before { content: "\2014\00a0"; color: var(--c-ink-mute); }
.case-next { margin-top: var(--stack-lg); padding-top: var(--stack-md); border-top: 1px solid var(--c-rule); }

/* ---------------------------------------------------------------------------
   10. CONTACT — form, standalone page, and dialog overlay  (spec §8)
   ---------------------------------------------------------------------------
   /contact/ is a REAL page. The overlay is layered on top of it by JS.
   Page-first, not dialog-first: with JS off, or on middle-click / open-in-
   new-tab, the contact link simply navigates and the form still works via
   native POST.
   --------------------------------------------------------------------------- */

.contact-intro { max-width: var(--measure); display: grid; gap: var(--stack-sm); }

.form {
  display: grid;
  gap: var(--stack-sm);
  max-width: 34rem;
  margin-top: var(--stack-md);
}
.form label {
  display: block;
  margin-bottom: 0.4rem;
}
.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  background: var(--c-surface);
  color: var(--c-ink);
  border: 1px solid var(--c-rule);
  padding: 0.7rem 0.8rem;
  font-family: var(--font-ui);
  font-size: var(--t-body-lg);
  /* Roman, following Bodycopy. These were italic only to match the old
     italic body style; that rationale is gone. */
  font-style: normal;
  border-radius: 0;
  -webkit-appearance: none;
}
.form textarea { resize: vertical; min-height: 8rem; }
.form input:focus-visible,
.form textarea:focus-visible { outline: 2px solid var(--c-link); outline-offset: 2px; border-color: var(--c-link); }

.btn {
  justify-self: start;
  background: var(--c-link);
  color: var(--c-surface);
  border: 1px solid var(--c-link);
  padding: 0.7rem 1.4rem;
  font-family: var(--font-mono);
  font-size: var(--t-cta);
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 0;
}
.btn:hover { background: var(--c-ink); border-color: var(--c-ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-quiet {
  background: transparent;
  color: var(--c-link);
  border: 1px solid var(--c-rule);
}
.btn-quiet:hover { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }

/* Honeypot — hidden from humans, filled by bots (§8). */
.form .honeypot { display: none; }

/* Submission states (§8). All three live inside the same container so the
   dialog does not resize jarringly between them. */
.form-status { display: grid; gap: var(--stack-sm); max-width: 34rem; }
[hidden] { display: none !important; }

.form-fail {
  border: 1px solid var(--c-link);
  padding: var(--stack-sm);
  margin-top: var(--stack-sm);
}
.form-fail p { margin-bottom: 0.5rem; }

/* Dialog overlay */
.contact-dialog {
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  color: var(--c-ink);
  padding: 0;
  width: min(38rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  max-width: none;
  border-radius: 0;
}
.contact-dialog::backdrop { background: color-mix(in srgb, var(--c-ink) 55%, transparent); }
.contact-dialog-inner { padding: clamp(1.25rem, 4vw, 2.5rem); }
.contact-dialog-head {
  display: flex;
  gap: var(--stack-sm);
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--stack-sm);
}
.dialog-close {
  background: none;
  border: 1px solid transparent;
  color: var(--c-link);
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  line-height: 1;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}
.dialog-close:hover { color: var(--c-ink); }

/* Open/close transition, respected only when motion is welcome (§8). */
@media (prefers-reduced-motion: no-preference) {
  .contact-dialog {
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 180ms ease, transform 180ms ease, overlay 180ms allow-discrete, display 180ms allow-discrete;
  }
  .contact-dialog[open] { opacity: 1; transform: translateY(0); }
  @starting-style {
    .contact-dialog[open] { opacity: 0; transform: translateY(0.5rem); }
  }
}

/* ---------------------------------------------------------------------------
   11. 404
   --------------------------------------------------------------------------- */

.error-page {
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm);
}

/* ---------------------------------------------------------------------------
   11b. MOBILE TYPE SCALE
   ---------------------------------------------------------------------------
   Cargo's Mobile Settings carry "Scale 140%". That is a Cargo rendering
   mechanic, not a CSS property, and the correction is explicit: treat it as
   direction that type should read proportionally larger on mobile, and DO NOT
   multiply every font size by 1.4.

   So this is one root-size bump of 1.15x rather than 17 edited values. Every
   style keeps its exact relative proportion to the others, the whole scale
   moves together, and the multiplier is a single number to retune. 1.4x was
   tried and is far too large once the column goes full width — the hero and
   Heading 1 already grow on their own vw clamps.

   Deliberately narrower than Cargo's figure, and tuned by eye as directed.
   --------------------------------------------------------------------------- */

@media (max-width: 768px) {
  html { font-size: 115%; }

}

/* ---------------------------------------------------------------------------
   11c. HEADER STACKING
   ---------------------------------------------------------------------------
   Deliberately a WIDER breakpoint than the mobile one above. The brand mark
   at 1.3rem cannot share a row with the nav and the cue in a 45.9% column:
   one row fits at 1250px and wraps at 1200px. Letting it wrap on its own made
   the header 114px instead of 67px, which broke --header-h and pushed the
   bottom-aligned hero name below the fold. Forcing the two-row layout keeps
   the height deterministic. 1300px is the measured threshold plus headroom
   for the wider fallback fonts. See the matching note in tokens.css.
   --------------------------------------------------------------------------- */

@media (max-width: 1300px) {
  .site-header { flex-direction: column; align-items: flex-start; }

  /* The nav/cue row spans the full column so the ↓ still lands on the
     column's right edge instead of trailing after "IG". One row, so
     --header-h is unaffected. */
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------------------------------------------------------------------------
   12. REDUCED MOTION  (§10)
   --------------------------------------------------------------------------- */

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