/* =========================================================================
   FIVE BADGERS AI PRODUCT LAB — Design System
   "Experiments in building products with AI"
   Two faces (Fraunces headlines, Inter text) · Ink, Paper, Slate and Ember
   ========================================================================= */

/* ----- Fonts ----------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-italic.woff2") format("woff2");
}
/* Fraunces, the display face: headings only (h1, h2, and the project name
   on a home card, which is the h3 under its question). Upright only — no
   italic file ships, so a heading can't turn italic by accident. The file
   carries two axes, weight and optical size (Fontsource 5.3.0's Latin
   "opsz" file), so headings can use the display design; see h1, h2 below.
   Fonts are cached immutable for a year, so a changed font gets a new
   filename rather than a ?v=. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-opsz.woff2") format("woff2");
}

/* ----- Design tokens --------------------------------------------------- */
:root {
  /* ---------------------------------------------------------------------
     The palette — Ink · Paper · Slate · Ember (Nov 2026; it replaced Ink,
     Ivory, Moss and Honey; the logo files in assets/img/logo/ are drawn in
     it too). This block is the only place in the file a colour is written
     down: every rule below reads a token, never a literal.
     --------------------------------------------------------------------- */
  --ink:        #12161B;
  --paper:      #F4F5F2;
  --slate:      #2E4156;
  --ember:      #F26B3A;

  /* Cool neutrals — Ink stepped back towards Paper */
  --ink-2:      #323A43;
  --ink-soft:   #515B66;
  --ink-mute:   #5F6873;   /* dark enough for 4.5:1 on --paper-2 as well */
  --paper-2:    #EAECE8;
  --white:      #FBFCFA;
  --line:       #D8DCD6;
  --line-2:     #C5CAC3;

  /* Research Mode — slate (depth, focus, long-term thinking) */
  --slate-deep:  #22313F;
  --slate-tint:  #DDE4EB;
  --slate-tint2: #C9D3DE;

  /* Exploration Mode — ember (energy, learning, ideas to life).
     --ember-2 is the lighter ember for Slate and Ink rows (4.5:1 on Slate);
     --ember-deep is the one dark enough for text on Paper (4.5:1). */
  --ember-2:     #FF8A5B;
  --ember-deep:  #B8441A;
  --ember-tint2: #F9CBB6;

  /* Live — the one green (19 Nov 2026). A project that is running wears it
     on its status square, so "Live" is no longer the colour of the buttons
     beside it. --live-2 is the one every chip wears today, on a Slate or
     Ink panel (5:1 on Slate); --live is for a chip on Paper, which no page
     has at the moment. Neither has another job. */
  --live:        #2E7D52;
  --live-2:      #5BD08F;

  /* On a dark panel: the Slate and Ink rows and heads, the footer and code
     blocks. Each is named for its job, as the roles below are. */
  --panel-ink:       var(--ink);    /* an Ink row or head, the footer, a code block */
  --panel-ink-hover: var(--ink-2);  /* an Ink row under the pointer */
  --on-dark-fg:   var(--paper);  /* names and headings */
  --on-dark-body: #D3D8DE;       /* running text and labels */
  --on-dark-soft: #B0B8C1;       /* a note beside a pill */
  --on-dark-mark: #8E97A1;       /* rules, separators, the footer's small print */
  --on-dark-rule: #2C333B;       /* the footer's top edge */

  /* Ember has one job: it signals. That a project is still half built (the
     half square of "Private for now"), what to do next (the arrow and
     links). Don't spend it on decoration. A Live project's square is green, above.
     Roles — a rule on Paper reads these, not the palette, so each says
     what the colour is for and one line changes it everywhere. */
  --accent:       var(--ember);       /* a fill that signals: the button */
  --accent-hover: var(--ember-2);     /* that fill under the pointer */
  --on-accent:    var(--ink);         /* words on that fill */
  --link:         var(--ember-deep);  /* a link's words and its underline: 4.95 to 1 on Paper */
  --focus:        var(--ember-deep);  /* the keyboard's ring */
  --selection:    var(--ember-tint2); /* behind selected words; too faint to draw a line with */
  --rule-control: var(--ink-mute);    /* a control's outline: 5.17 to 1 on Paper */

  /* The ground and what sits on it. These are the roles Night re-points,
     below; a rule for anything on the page's own ground reads them and
     never Paper or Ink by name. A Slate or Ink panel keeps its own. */
  --bg:           var(--paper);     /* the page */
  --bg-sunken:    var(--paper-2);   /* a callout, code in a sentence */
  --bg-raised:    var(--white);     /* a pill or a filter button */
  --fg:           var(--ink);       /* headlines, names, the strongest words */
  --fg-body:      var(--ink-2);     /* running text */
  --fg-soft:      var(--ink-soft);  /* a lead paragraph */
  --fg-muted:     var(--ink-mute);  /* captions, crumbs, small-caps labels */
  --rule:         var(--line);      /* a hairline */
  --rule-strong:  var(--line-2);    /* a ruled list's rows, a pill's outline */
  --callout-rule: var(--slate);     /* a callout's left edge */

  /* Night's own three colours: its ground, the ground of anything raised
     or sunken on it (and of an Ink panel there, so it stands off the
     page), and its firmer hairline. */
  --night:        #0D1014;
  --night-raised: #1B2128;
  --night-line:   #3D4650;
  /* Tells the browser both are drawn, so its own parts (scroll bars, the
     logo file's dark drawing) follow the device as the page does. */
  color-scheme: light dark;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* The type scale (21 Nov 2026). Like a colour, a size is written down
     only here, and every rule reads one of these. Until then the file held
     some 35 sizes, each chosen where it was needed, so two things that
     were meant to match drifted a little apart. Small steps are fixed;
     from --text-lg up a size grows with the window, phone to desk. */
  --text-xs:   .8125rem;                          /* labels, chips, pills */
  --text-sm:   .875rem;                           /* captions, crumbs, meta, footer */
  --text-base: 1rem;                              /* body, card text, buttons */
  --text-lg:   clamp(1.05rem, 1.3vw, 1.2rem);     /* lead paragraphs, the About band */
  --text-xl:   clamp(1.25rem, 1.8vw, 1.45rem);    /* an experiment's question, a name in a list */
  --text-2xl:  clamp(1.45rem, 2.2vw, 1.85rem);    /* write-up h2, the feature's question */
  --text-3xl:  clamp(1.75rem, 3.2vw, 2.55rem);    /* h2, a project's name on its card */
  --text-4xl:  clamp(2rem, 3.2vw, 2.9rem);        /* the home headline */
  --text-5xl:  clamp(2.1rem, 4vw, 3.4rem);        /* a project page's name */
  /* The wordmark beside the logo is part of the logo, so it keeps sizes of
     its own rather than a step of the scale. */
  --wordmark:        1.4rem;
  --wordmark-small:  1.25rem;   /* under 400px */
  --wordmark-footer: 1.15rem;

  /* The spacing scale (21 Nov 2026). As with type and colour, a length of
     air is written down only here: every margin, padding and gap reads a
     step, or a clamp() between two steps that grows with the window. Until
     then the file held 48 lengths of air (.45rem, .5rem, .55rem, .6rem…),
     each picked where it was needed. A length in em travels with its own
     text (a pill's padding), so it stays an em. */
  --space-3xs: .125rem;  /* a nudge */
  --space-2xs: .25rem;
  --space-xs:  .5rem;
  --space-sm:  .75rem;
  --space-md:  1rem;
  --space-lg:  1.25rem;
  --space-xl:  1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 2.5rem;
  --space-4xl: 3rem;
  /* The container's side padding, and so the reading column's edge. */
  --gutter: clamp(var(--space-lg), 4vw, var(--space-4xl));
  /* The width of a write-up list's lead-in column: a column, not air. */
  --lead-in: 11rem;

  /* Scale & rhythm */
  --container: 1200px;
  /* The reading column: the prose's 70ch measure plus the container's own
     side padding, so a narrow container's content is exactly 70ch wide. */
  --container-narrow: calc(70ch + 2 * var(--gutter));
  --header-h: 66px;            /* sticky header height — one source */
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(18,22,27,.06), 0 2px 8px rgba(18,22,27,.05);
  --shadow-md: 0 4px 14px rgba(18,22,27,.08), 0 12px 34px rgba(18,22,27,.09);
  --shadow-lg: 0 10px 30px rgba(18,22,27,.10), 0 30px 70px rgba(18,22,27,.13);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----- Night ----------------------------------------------------------- */
/* The page on a dark ground, for a visitor whose device asks for one (22
   Nov 2026). There is no switch and nothing is stored: the device's own
   setting chooses. Night re-points roles and nothing else, so no rule
   below knows about it. The Slate rows and heads are as by day; an Ink
   panel moves to --night-raised, or it would vanish into the page. A test
   holds each pair of words and ground to 4.5 to 1, by day and at night. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           var(--night);
    --bg-sunken:    var(--night-raised);
    --bg-raised:    var(--night-raised);
    --fg:           var(--paper);
    --fg-body:      var(--on-dark-body);
    --fg-soft:      var(--on-dark-soft);
    --fg-muted:     var(--on-dark-mark);
    --rule:         var(--on-dark-rule);
    --rule-strong:  var(--night-line);
    --rule-control: var(--on-dark-mark);
    --callout-rule: var(--slate-tint2);
    --link:         var(--ember-2);
    --focus:        var(--ember-2);
    --panel-ink:    var(--night-raised);
  }
}


/* ----- Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* No smooth scrolling. A page that opens on a fragment (a breadcrumb's
   /index.html#go-bag) would open at the top and glide down to the card
   after the page transition had already played, so the card's picture
   would fly to a spot off-screen. It jumps instead, and so does the skip
   link, the only in-page jump left. (:focus-within doesn't rescue it:
   Chrome focuses the card the fragment names, since a card is a link.) */
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss03" 1;
}
/* clip, not hidden: hidden makes the root a scroll container, which can
   quietly break the sticky header; clip just cuts off any overflow. */
html, body { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--selection); color: var(--on-accent); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* ----- Typography ------------------------------------------------------ */
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; }
/* Two voices: Fraunces carries the headlines, Inter everything else.
   The large headings (a page's h1, a project's name on its card) use
   Fraunces's finest display design (optical size 144) at a medium weight,
   560, drawn a little closer: the cut the home headline took on 20 Nov
   2026, a step firmer because these are set smaller than it. They were 700
   at optical size 72 until then, which under the lighter headline read as
   a second, heavier voice. A project's name is always in Fraunces: a
   card's h2 when the card has no experiment yet, the h3 under its question
   when it does. */
h1, h2, .project-card .result h3 {
  font-family: var(--font-display); font-weight: 560; letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
}
/* A heading set small (a write-up's sections, the About band's) keeps
   optical size 72 and a firmer 600: the 144 design's hairlines go thin and
   spindly under about 30px. */
.prose h2, .about h2 { font-weight: 600; letter-spacing: -0.005em; font-variation-settings: "opsz" 72; }
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-lg); letter-spacing: -0.015em; }
h4 { font-size: var(--text-base); letter-spacing: 0; }
p  { text-wrap: pretty; }

.lead { font-size: var(--text-lg); color: var(--fg-soft); line-height: 1.6; }
/* The home headline stresses no word (24 Nov 2026). "Experiments" was a
   <mark>: a highlighter stroke until 20 Nov 2026, then a fine Ember rule,
   which looked like a link under the pointer on a page that draws its
   links that way. The word comes first and every card repeats it; that is
   stress enough. */

/* ----- Layout ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
/* A project page reads down one centred column: crumbs, title, picture and
   prose share its left edge, instead of hugging the left of a 1200px
   container with the right side empty. */
.container.narrow { max-width: var(--container-narrow); }
/* The shared vertical rhythm, two steps. No page uses the larger one today,
   but the tests hold inline padding to both, so it stays as the scale. */
.section-sm { padding-block: clamp(var(--space-2xl), 3vw, var(--space-4xl)); }
.grid { display: grid; gap: clamp(var(--space-sm), 1.5vw, var(--space-lg)); }
.cols-1 { grid-template-columns: minmax(0, 1fr); }

/* ----- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
/* Scrolled, the header firms up: near-opaque paper and a soft shadow, so it
   stays distinct over the dark project rows instead of tinting to grey. */
.site-header.scrolled {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; gap: var(--space-xl); height: var(--header-h); }
/* The header lockup is the mark and the name, set as live text in the
   site's own Fraunces rather than drawn into an SVG (an <img> SVG can't
   load the page's fonts). No "AI PRODUCT LAB" line: at header size it
   would be a few pixels tall, and the lead says it in readable type. */
.brand {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  color: var(--fg); text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; display: block; flex: none; }
.brand-name {
  font-family: var(--font-display); font-variation-settings: "opsz" 72;
  font-weight: 560; font-size: var(--wordmark); line-height: 1; letter-spacing: -0.01em;
}
@media (max-width: 400px) {
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: var(--wordmark-small); }
}

/* ----- Marquee (home hero) --------------------------------------------- */
/* The headline is the whole hero: no illustration, no label above it.
   Less padding above than below. The sticky header already leaves air over
   the headline, while the descenders of "products" hang below its last line,
   so even padding left them nearly touching the first row. */
.marquee { padding-block: clamp(var(--space-xs), .75vw, var(--space-sm)) clamp(var(--space-xl), 2.5vw, var(--space-3xl)); }
.marquee-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(var(--space-lg), 3vw, var(--space-3xl)); align-items: center; }
@media (max-width: 820px) { .marquee-grid { grid-template-columns: minmax(0, 1fr); } }
/* Compact on purpose: two lines on a laptop, beside a three-line intro, so
   the first project row shows without scrolling. Small enough that the
   longest word ("Experiments") never has to break, even on a phone. */
/* Set lighter than the other headlines (20 Nov 2026): weight 500 in
   Fraunces's largest optical size (144), whose finer strokes want a closer
   fit and more room between the lines. At 700 and a leading of .98 the two
   lines read as a block; the project names below stay the bold anchors. */
.marquee-title {
  font-size: var(--text-4xl);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
/* The intro is the size of a card's description at least (19 Nov 2026): at
   a flat 1rem it was the smallest running text on the page, smaller than
   the descriptions under it, though it is the one paragraph that says what
   the lab is. Beside the headline it sets in three lines. */
.marquee .lead { font-size: var(--text-lg); line-height: 1.5; }

/* ----- Project panels -------------------------------------------------- */
/* The projects, edge to edge on the home page: every one a full-width row,
   its words beside a picture of it. The rows alternate Slate and Ink so no
   two of one colour touch; the status chip, not the colour, says whether a
   project is live. The last row runs straight into the footer: a band of
   Paper between them read as a gap left by mistake. */
.project-card {
  position: relative;
  display: flex; flex-direction: column; gap: var(--space-md);
  min-height: clamp(15rem, 30vw, 22rem);
  padding: clamp(var(--space-lg), 2.5vw, var(--space-2xl));
  color: var(--on-dark-fg);
  transition: background .2s var(--ease);
}
.project-card.slate { background: var(--slate); }
.project-card.slate:has(.go:hover) { background: var(--slate-deep); }
.project-card.ink { background: var(--panel-ink); }
.project-card.ink:has(.go:hover) { background: var(--panel-ink-hover); }
.project-card h2 { font-size: var(--text-3xl); color: var(--on-dark-fg); }
.project-card p { color: var(--on-dark-body); max-width: 60ch; font-size: var(--text-base); }
/* A card whose experiment is written down leads with it: the question is
   the headline, and the project is the result it produced. A card without
   one yet keeps the project name as its headline.
   The label is set like the wordmark, in small tracked capitals, so
   "Experiment" reads as a label rather than as a word in the copy. It is
   the card's only label (11 Nov 2026): the result had a "Result" label of
   its own under the rule, and the rule already says where the question ends
   and what it produced begins. Two dividers for one division, seven times
   down the page. The project page's head sets it the same way, on the same
   band (#106). */
.project-card .card-label, .article-head.ink .card-label, .article-head.slate .card-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-body); }
.project-card .card-label + h2 { margin-top: calc(-1 * var(--space-xs)); }
/* The question is a sentence, so it sits a step lighter (450) than the
   project name (560), which is the row's anchor.
   It is also the smaller of the two (10 Nov 2026): the question asks, and
   the project is the answer, so the name below it carries the display size
   and the question reads as the lead-in to it. It takes the size it has on
   the project's own page, where the same words appear again. */
.project-card h2.experiment-question { font-size: var(--text-xl); line-height: 1.25; font-weight: 450; font-variation-settings: "opsz" 72; letter-spacing: -0.008em; }
.project-card .card-label + h2.experiment-question { margin-top: calc(-1 * var(--space-2xs)); }
.project-card .result {
  display: flex; flex-direction: column; gap: var(--space-2xs);
  margin-top: var(--space-2xs); padding-top: var(--space-md); border-top: 1px solid var(--on-dark-mark);
}
/* The name is the card's headline, at the size the card's h2 takes when a
   project has no experiment written down yet, so both kinds of row read
   with the same weight in the list. */
.project-card .result h3 {
  font-size: var(--text-3xl); color: var(--on-dark-fg);
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs);
}
/* A project that has a logo of its own wears it beside its name (10 Nov
   2026); the three that don't have one yet carry the name alone, which is
   why the mark sits beside the name rather than replacing it. The files are
   each project's own mark, self-hosted in img/logo/projects/ — the site
   makes no third-party request for one. Sized in em, so a mark grows with
   the headline it sits beside, and square-cornered marks get the same
   rounding their own apps give them. The page's h1 wears the same mark. */
.project-card .project-logo, .article-head.ink .project-logo, .article-head.slate .project-logo { flex: none; width: .92em; height: .92em; border-radius: .2em; }
/* The facts about a project, in one line at the foot of the card (11 Nov
   2026): what state it is in, where it runs, and its address. They were two
   rows, the pills under the description and the status with the address
   below them, which made nine separate things to read on a card. The line
   wraps where it must: on a phone the address usually takes a second line,
   and so it does on a laptop when a project runs in three places.
   The list of pills dissolves (display: contents) so each pill is an item
   of this line and can wrap on its own. Kept as one box, three pills are
   wider than a phone and the list dropped under the status, leaving "Live"
   alone on a line. The wider space after the status and after the last pill
   is a right margin, not a gap, so nothing that starts a line is indented. */
.project-card .meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.project-card .meta .surfaces { display: contents; }
.project-card .meta .status-dot,
.project-card .meta .surfaces li:last-child { margin-right: var(--space-xs); }
/* The project's name is the card's link, and its ::after stretches it over
   the whole row, so a click anywhere on the card still opens the write-up.
   It was a "Read the write-up" row of its own until 10 Nov 2026, which said
   twice what one link does once. The name is the link's name now, so six
   otherwise identical links tell themselves apart for a screen reader and a
   voice user can still say what they see; the arrow after it is what says
   the name goes somewhere.
   The card isn't one big <a> because the project's own address (.card-url)
   is a link too, and a link can't sit inside another. Hover is keyed to
   the name, so pointing at the address doesn't light the card. */
/* The name balances its lines, so a name too long for one line on a
   phone breaks early enough to keep the arrow on the last
   line rather than leaving it alone on one of its own. */
.project-card .go { color: inherit; text-wrap: balance; transition: color .2s var(--ease); }
/* The arrow runs inline with the name rather than sitting beside it as a
   flex item, so a name that takes two lines on a phone
   keeps the arrow after its last word instead of parking it at the
   far right of the first line. It has to say display: inline-block against
   the blanket `img, svg { display: block }` above, which would otherwise
   drop it onto a line of its own. */
.project-card .go .go-arrow {
  display: inline-block; vertical-align: baseline;
  width: .62em; height: .62em; margin-left: .28em;
}
.project-card .go::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project-card .go svg { flex: none; transition: transform .2s var(--ease); }
.project-card .go:hover { color: var(--ember-2); }
.project-card .go:hover svg { transform: translateX(4px); }
.project-card .go:focus-visible { outline: none; }
.project-card:has(.go:focus-visible) { outline: 2.5px solid var(--ember-2); outline-offset: -6px; }
.project-card .meta .status-dot, .article-head .glance .status-dot { flex: none; }
/* "Private for now" and "Museum Piece" are the lab's own words, so each
   carries a title that says it plainly (19 Nov 2026). On a card the chip
   sits above the stretched write-up link, as the address does, or the
   pointer would never reach it and the title would never show. A title
   doesn't show on a touch screen, so the chip is raised only where there
   is a pointer to rest on it; on a phone it stays under the link and a
   tap on it opens the write-up like the rest of the card, and the page's
   "Where it stands" has to say it in words. */
@media (hover: hover) {
  .status-dot[title], .status-now[title] { cursor: help; }
  .project-card .meta .status-dot[title] { position: relative; z-index: 2; }
  .project-card .meta .status-now[title] { position: relative; z-index: 2; }
}
/* The link to the project itself, the last thing on the line, in the words
   of its page's button ("Open Go Bag"). It sits above the stretched write-up
   link, so it takes its own clicks. It never grows wider than the line, so
   the ellipsis below can cut a long one. */
.project-card .card-url {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: .3em; min-width: 0; max-width: 100%;
  font-size: var(--text-sm); font-weight: 600; color: var(--ember-2);
  border-bottom: 1.5px solid var(--on-dark-mark);
  transition: border-color .2s var(--ease);
}
.project-card .card-url:hover { border-bottom-color: var(--ember-2); }
.project-card .card-url:focus-visible { outline-color: var(--ember-2); }
/* Words too long for the row are cut with an ellipsis rather than wrapped;
   none are today. */
.project-card .card-url span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card .card-url svg { flex: none; }
/* The card a breadcrumb lands on (/index.html#<slug>) is the :target: a ring
   says "you were here", then fades. No fill-mode, so once it has played
   the ring is gone and can't mask a later keyboard focus ring. */
.project-card:target { animation: arrived-ring 2s var(--ease); }
@keyframes arrived-ring {
  0%, 60% { outline: 2.5px solid var(--ember-2); outline-offset: -6px; }
  100% { outline: 2.5px solid transparent; outline-offset: -6px; }
}
.project-list { gap: 0; }
/* The colour runs edge to edge, but the words and the picture sit inside
   the same 1200px column as the header and the headline. On a wide screen
   each kind of row has a split of its own, below; the even split here shows
   only where no such rule reaches. That keeps the picture from growing with the window, which is what made
   each row taller than a laptop screen. */
.project-card.wide {
  --column-edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(var(--space-lg), 3vw, var(--space-3xl));
  min-height: 0;
  padding-inline: var(--column-edge);
}
/* Every row is laid out the same way, all the way down: the words at the
   left, the picture at the right (23 Nov 2026). The picture swapped sides
   on every other row until then, so the list wouldn't read as one row
   stamped six times; what it actually cost was a reader's place. Each row
   asks a question and answers it, and with the sides swapping, the eye had
   to find where the question started again on every row. One layout lets
   it fall down a single column. The feature row is still set apart by how
   it is split, below, which is enough variation for a list this short. */
/* Seven equal rows gave the eye no way to tell what is current (19 Nov
   2026). The first row is the newest project, so it is the feature: its
   picture takes the larger share of the row, it has more air, and its
   question is set a step up. Every row below it is a plain row, the same
   size and the same shape. A project that was set down (the Museum Piece
   chip) was quieter than the rest until 23 Nov 2026 — a smaller picture, a
   smaller name, and no picture at all on a phone — but it is a project
   like any other and now reads like one; the grey square on its chip is
   what says it is finished. So the feature is told apart by where it sits,
   never by a class of its own, and a new top card becomes the feature by
   being first. On a phone every row is one column and none of this
   applies. */
/* Compacted on 22 Nov 2026, after the cards' words were cut. A row is as
   tall as its picture, and at an even split the picture stood a third
   taller than the words beside it, so every row carried air it had no use
   for. Now the words take the larger share of a plain row (three parts to
   the picture's two), and the feature's picture is only a little the
   larger share. Since the picture stopped swapping sides (23 Nov 2026)
   each split is written once, words first. */
@media (min-width: 761px) {
  .project-list > .project-card.wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .project-list > .project-card.wide:first-child {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    padding-block: clamp(var(--space-xl), 3vw, var(--space-3xl));
  }
  .project-list > .project-card.wide:first-child h2.experiment-question { font-size: var(--text-2xl); }
}
.project-copy { display: flex; flex-direction: column; gap: var(--space-sm); align-self: stretch; }
/* The faint fill shows where a picture goes while it loads, instead of a
   hole in the row. */
.project-shot {
  display: block; width: 100%; height: auto;
  background: color-mix(in srgb, var(--on-dark-fg) 8%, transparent);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease);
}
.project-card:has(.go:hover) .project-shot { transform: translateY(-3px); }
/* A card whose detail is too small to read at phone width has a tighter
   crop for it, <slug>-card-phone.webp, offered by a <source> in a <picture>
   round the img (11 Nov 2026). The wrapper has no box of its own, so the
   img is still the grid item the rules here and below place. */
.project-card picture { display: contents; }
/* Dissolving the <picture> makes its <source> a grid item too: nothing in a
   browser's own stylesheet hides a <source>, so the empty box took the
   first cell and pushed the picture and the words onto separate rows. Hiding
   it doesn't change which file the img loads. */
.project-card picture source { display: none; }
/* On a phone the row is one column, and the picture moves up between the
   question and its result: the copy's box dissolves (display: contents) so
   its parts and the picture are siblings in one grid and `order` can place
   them. Left in source order, the picture came after 400px of words and sat
   nearer the next row's question than its own. The picture now does the
   dividing, so the result drops its rule. */
@media (max-width: 760px) {
  /* Tighter between the parts, and the description at text size (19 Nov
     2026): the seven rows ran to five and a half phone screens. Compacted
     again on 22 Nov 2026: less padding above and below a row, the name a
     step smaller, and the picture drawn 2:1, not its own 16:10. That
     trims only the picture's bottom fifth (cover, anchored at the top), so
     no picture loses a side edge, which a tighter crop of the file would. */
  .project-card.wide { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); padding-block: var(--space-md); }
  .project-card.wide .result h3 { font-size: var(--text-2xl); }
  .project-card.wide .result p { line-height: 1.5; }
  .project-card.wide .project-copy { display: contents; }
  .project-card.wide .project-copy > .card-label { order: 1; }
  .project-card.wide .experiment-question { order: 2; }
  .project-card.wide .project-shot { order: 3; margin-block: var(--space-2xs) var(--space-2xs); aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
  .project-card.wide .result { order: 4; margin-top: 0; padding-top: 0; border-top: 0; }
  .project-card.wide .meta { order: 5; margin-top: var(--space-2xs); }
}

/* Status chip — the brand's own square on a slate-tint pill. A full green
   square reads "Live"; the half-filled one, in slate, reads "Private for
   now", so the half-built mark sits on the thing that is actually half
   built. */
.status-dot {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .02em;
  color: var(--slate-deep);
  background: var(--slate-tint);
  border: 1px solid var(--slate-tint2);
  border-radius: 999px;
  padding: .3em .8em;
}
.status-dot::before {
  content: ""; width: 11px; height: 11px; flex: none;
  border: 1.5px solid var(--live); border-radius: 2px;
  background: var(--live);
}
.status-dot.draft::before {
  border-color: var(--slate);
  background: linear-gradient(to right, var(--slate) 50%, transparent 50%);
}
/* A project that was finished and then set down ("Museum Piece") keeps the
   full square, because it isn't half built, but the square goes grey: it
   wore Live's colour until 19 Nov 2026 and the two couldn't be told apart
   at a glance. */
.status-dot.retired::before { border-color: var(--ink-mute); background: var(--ink-mute); }
/* A project being worked on now says "Active" beside its status (19 Nov
   2026), on its home card only. The status says how built a thing is and
   this says whether anyone is building it, so it is drawn as a different
   kind of mark: an open ring in the words' own colour, not a square and
   not one of the signal colours. */
.status-now {
  display: inline-flex; align-items: center; gap: var(--space-xs); flex: none;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .02em;
  color: var(--on-dark-fg);
}
.status-now::before {
  content: ""; width: 9px; height: 9px; flex: none;
  border: 1.5px solid currentColor; border-radius: 50%;
}
.project-card .meta .status-now { margin-right: var(--space-xs); }
/* On a Slate or Ink panel the chip drops its pill and the square takes the
   lighter colours, so the mark still reads against the colour block: green
   for Live, a half square of Ember for Private for now. A project page's
   head is one of those panels too. */
.project-card .status-dot, .article-head.ink .status-dot, .article-head.slate .status-dot { color: var(--on-dark-fg); background: transparent; border-color: transparent; padding-inline: 0; }
.project-card .status-dot::before, .article-head.ink .status-dot::before, .article-head.slate .status-dot::before { border-color: var(--live-2); background: var(--live-2); }
.project-card .status-dot.draft::before, .article-head.ink .status-dot.draft::before, .article-head.slate .status-dot.draft::before { border-color: var(--ember-2); background: linear-gradient(to right, var(--ember-2) 50%, transparent 50%); }
.project-card .status-dot.retired::before, .article-head.ink .status-dot.retired::before, .article-head.slate .status-dot.retired::before { border-color: var(--on-dark-mark); background: var(--on-dark-mark); }

/* ----- Surfaces (where a project runs) ---------------------------------- */
/* One pill per surface, its icon and its name: the web, an iPhone, Claude
   Code as a plugin. A card carries the list on its status line, between the
   status and the address, and the page repeats it on its own status
   line, between the status and the button, word for word. Neutral, not Ember: a
   surface is a fact about the product, not its state or the next thing to
   do. One still on its way (an app in testing) gets a dashed outline and
   says so in words, so the dash is never the only sign of it. That outline
   shows only on Paper: every list on the site today sits on a Slate or Ink
   row, where the rule further down takes the outline away. */
.surfaces { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.surfaces li {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: var(--text-xs); font-weight: 600; line-height: 1.2;
  color: var(--fg-body); background: var(--bg-raised);
  border: 1px solid var(--rule-strong); border-radius: 999px;
  padding: .3em .8em .3em .65em;
}
.surfaces svg { flex: none; }
.surfaces .soon { border-style: dashed; }
.surfaces .surface-note { font-weight: 500; color: var(--fg-muted); }
/* On a Slate or Ink row the pill drops its fill, as the status chip does,
   and its outline too (19 Nov 2026): a square chip, outlined pills, a
   dashed pill and an underlined link were four kinds of thing on one line.
   Now a surface is an icon and its name. One still on its way is told
   apart by its note ("in testing"), which was always the sign that
   counted. */
.project-card .surfaces li, .article-head.ink .surfaces li, .article-head.slate .surfaces li {
  color: var(--on-dark-body); background: transparent;
  border-color: transparent; padding-inline: 0 var(--space-xs);
}
.project-card .surfaces .surface-note, .article-head.ink .surfaces .surface-note, .article-head.slate .surfaces .surface-note { color: var(--on-dark-soft); }

/* ----- Prose (article body) ------------------------------------- */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: var(--space-md); }
.prose h2 { margin-top: var(--space-xl); font-size: var(--text-2xl); }
.prose h3 { margin-top: var(--space-lg); }
/* An experiment's question reads the same here as on its home card: the
   same words, in the same face and weight, so a reader knows it again.
   The page opens with it (11 Nov 2026), the way the card does: the label,
   the question, a rule, then the project that answers it. It sat under the
   title, the button and the picture before, so a reader who followed the
   card's question lost it on arriving. A further experiment on the same
   project is an h3 in the write-up's "The experiment" section. */
.article-head .experiment-question, .prose h3.experiment-question {
  font-family: var(--font-display); font-variation-settings: "opsz" 72; font-weight: 450;
  font-size: var(--text-xl); line-height: 1.2; letter-spacing: -0.008em;
}
.article-head .experiment-question {
  margin-top: var(--space-xs); color: var(--fg); line-height: 1.25; text-wrap: balance;
  padding-bottom: var(--space-sm); margin-bottom: var(--space-sm); border-bottom: 1px solid var(--rule);
}
.article-head.ink .experiment-question, .article-head.slate .experiment-question { color: var(--on-dark-fg); border-bottom-color: var(--on-dark-mark); }
.prose p, .prose li { color: var(--fg-body); line-height: 1.6; }
.prose ul, .prose ol { display: grid; gap: var(--space-xs); padding-left: var(--space-lg); }
.prose ul li { list-style: disc; }
/* A list whose items each open with a bold lead-in ("Inputs:", "Kickoff:")
   is a table of parts, not a run of bullets, and every list in the
   write-ups is one. It is set as ruled rows with the lead-in on a line of
   its own (19 Nov 2026), which gives a page of prose something to scan. A
   plain list, should one be written, keeps its bullets. From 700px wide
   the lead-in stands in a column of its own at the left with its text
   beside it (20 Nov 2026), so the labels can be read straight down; on a
   phone it keeps its own line above. The lead-in is floated into the
   item's left padding, not made a grid cell: an item's text may hold a
   link or code, and each of those would become a cell of its own. */
.prose ul:has(> li > strong:first-child) { padding-left: 0; gap: 0; border-top: 1px solid var(--rule-strong); }
.prose ul:has(> li > strong:first-child) > li { list-style: none; padding-block: var(--space-xs) var(--space-xs); border-bottom: 1px solid var(--rule-strong); }
.prose ul:has(> li > strong:first-child) > li > strong:first-child { display: block; color: var(--fg); margin-bottom: var(--space-3xs); }
@media (min-width: 700px) {
  .prose ul:has(> li > strong:first-child) > li { display: flow-root; padding-left: var(--lead-in); }
  .prose ul:has(> li > strong:first-child) > li > strong:first-child { float: left; width: 9.5rem; margin-left: calc(-1 * var(--lead-in)); margin-bottom: 0; }
}
.prose ol { counter-reset: li; }
.prose ol li { list-style: decimal; }
/* A link in a sentence is underlined in its own colour. The line was a pale
   tint of Ember until 22 Nov 2026, 1.35 to 1 on Paper: too faint to see, so
   the words' colour alone said "link". The button and the picture's way back
   are links in the prose too, and draw no line. */
.prose a:not(.action):not(.shot-link) { color: var(--link); border-bottom: 1.5px solid var(--link); transition: color .16s var(--ease), border-color .16s var(--ease); }
.prose a:not(.action):not(.shot-link):hover { color: var(--fg); border-bottom-color: var(--accent); }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: var(--space-2xs) 0 var(--space-2xs) var(--space-xl);
  font-size: var(--text-lg); color: var(--fg); font-style: italic;
}
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em;
  background: var(--bg-sunken); padding: .12em .4em; border-radius: 4px; border: 1px solid var(--rule);
}
.prose pre {
  background: var(--panel-ink); color: var(--on-dark-fg); padding: var(--space-lg) var(--space-xl); border-radius: var(--radius-lg);
  overflow-x: auto; font-size: var(--text-sm); line-height: 1.6;
}
.prose pre code { background: none; border: none; padding: 0; color: inherit; }
.prose figure { margin: var(--space-xl) 0; }
.prose > figure:first-child { margin-top: 0; }
/* The card's detail, shown again partway down the write-up (19 Nov 2026):
   a little narrower than the column, so it reads as an aside and not as a
   second lead picture. */
.prose figure.detail { margin: var(--space-xl) auto; max-width: 34rem; }
/* The picture is the best thing a project page has, so on a wide screen it
   steps out of the 70ch reading column: up to 4.5rem a side,
   and never nearer than 3rem to the window's edge. The words keep their measure; only the
   picture takes the room. Its caption stays centred under it. No media
   query: the clamp is zero until the window is 6rem wider than the column,
   then grows with it, so the picture never jumps at a breakpoint. */
.prose > figure:first-child {
  --breakout: clamp(0rem, (100vw - 100% - 6rem) / 2, 4.5rem);
  margin-inline: calc(-1 * var(--breakout));
}
.prose figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
/* The picture goes home (10 Nov 2026). It is the same shot the card on the
   home page shows, and both carry the same data-shot, so clicking it reverses
   the view transition the card played on the way in: the whole picture shrinks
   back into the card it came from. The destination is the card, the same one
   the breadcrumb and "All projects" use, so this adds a way to go, not a place
   to go. The link's aria-label says where it leads; without it the name would
   be the img's alt, a paragraph describing the screenshot, which tells a
   screen-reader user everything except where they would land. */
.prose figure .shot-link { display: block; border-radius: var(--radius-lg); }
.prose figure .shot-link img { transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.prose figure .shot-link:hover img { border-color: var(--link); box-shadow: var(--shadow-lg); }
.prose figure .shot-link:focus-visible { outline-offset: 5px; }
/* The picture straddles the band's lower edge (#106): the band runs on, edge
   to edge, behind the picture's top half, and the bottom half and the
   caption sit on Paper. It is drawn from the picture's own link, so it is
   always exactly half the picture's height at any width, and it sits
   under the picture in the figure's own stacking layer. The page's section
   after the head carries no top padding, so no strip of Paper opens
   between the two. */
.article-head + section .prose > figure:first-child { position: relative; isolation: isolate; }
.article-head + section .prose > figure:first-child .shot-link { position: relative; }
.article-head + section .prose > figure:first-child .shot-link::before {
  content: ""; position: absolute; z-index: -1;
  top: 0; height: 50%; left: -100vw; right: -100vw;
  background: var(--panel-ink);
}
.article-head.slate + section .prose > figure:first-child .shot-link::before { background: var(--slate); }
.prose figcaption { font-size: var(--text-sm); color: var(--fg-muted); margin-top: var(--space-xs); text-align: center; }
.prose hr { border: none; border-top: 1px solid var(--rule); margin: var(--space-3xl) 0; }
/* An aside, set off by a Slate rule. Not Ember: Ember signals state and
   what to do next, and a callout is neither. No icon either. */
.callout {
  background: var(--bg-sunken); border-left: 3px solid var(--callout-rule);
  border-radius: 0 var(--radius) var(--radius) 0; padding: var(--space-md) var(--space-lg);
}
.callout p { color: var(--fg-body); }

/* ----- Article header -------------------------------------------------- */
/* The band (12 Nov 2026, #106). A project page's head is the card it was
   opened from: the page's first section, edge to edge in its card's own
   Slate or Ink (a `slate` or `ink` class matching the card's), with the
   card's on-dark label, rule, chip and pills. The words stay in the 70ch
   reading column, so they start where the prose starts. The band runs on
   behind the top half of the picture (see "Prose" below) and the write-up
   below it stays on Paper. Until then the head was Ink type on the Paper
   page, so the view transition dissolved a dark card into a pale page
   around the growing picture; now the dark is under the picture at both
   ends of the trip. The 404 page's head wears no colour and stays on Paper. */
.article-head { max-width: 72ch; }
.article-head.ink { background: var(--panel-ink); }
.article-head.slate { background: var(--slate); }
.article-head.ink, .article-head.slate { max-width: none; color: var(--on-dark-fg); }
/* The band and the write-up were compacted on 22 Nov 2026, as the home
   page's rows were: the pictures are most of a project page and are
   already as small as their text can be read, so this takes out air. The
   band has less padding than a plain section, and on a phone its
   description is set at text size, as a home card's is. */
.article-head.ink, .article-head.slate { padding-block: clamp(var(--space-xl), 2.5vw, var(--space-2xl)); }
@media (max-width: 760px) {
  .article-head.ink .lead, .article-head.slate .lead { font-size: var(--text-base); line-height: 1.5; }
}
.article-head.ink h1, .article-head.slate h1 { color: var(--on-dark-fg); display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs); }
.article-head.ink .lead, .article-head.slate .lead { color: var(--on-dark-body); }
.article-head.ink .crumbs, .article-head.slate .crumbs { color: var(--on-dark-body); }
.article-head.ink .crumbs a:hover, .article-head.slate .crumbs a:hover { color: var(--on-dark-fg); }
.article-head.ink .crumbs .sep, .article-head.slate .crumbs .sep { color: var(--on-dark-mark); opacity: 1; }
/* The site's focus ring is Ember-deep, which is for Paper; on the band it
   takes the card's Ember-2. */
.article-head.ink :focus-visible, .article-head.slate :focus-visible { outline-color: var(--ember-2); }
/* The page's status line reads as its card's does: the status, a pill per
   surface, then the button. The list dissolves here too, so each pill
   wraps on its own, and the wider space after the status and the last pill
   is a right margin for the same reason as on the card. */
.article-head .glance { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.article-head .glance .surfaces { display: contents; }
.article-head .glance .status-dot,
.article-head .glance .surfaces li:last-child { margin-right: var(--space-xs); }
/* The way to the thing itself: the one place a reader leaves for the
   product. It is what to do next, so it is the page's one filled Ember
   button, with the up-right arrow that says it goes off this site. It
   appears twice, beside the status and again as the write-up's last line
   (.closing-action), so a reader who has read to the end needn't scroll
   back up for it. It says what it does ("Open Home Manual") rather than
   printing the address; the write-up's "Where it stands" still spells the
   address out. Tall enough to tap: 44px at least. A private project has no
   public address, so it has neither. */
.article-head .glance a.action, .prose a.action {
  display: inline-flex; align-items: center; gap: .45em; min-width: 0; min-height: 2.75rem;
  font-size: var(--text-base); font-weight: 650; line-height: 1.3;
  color: var(--on-accent); background: var(--accent);
  border: 0; border-radius: 999px; padding: .75em 1.25em;
  transition: background .2s var(--ease);
}
.article-head .glance a.action:hover, .prose a.action:hover { background: var(--accent-hover); }
.action span { min-width: 0; overflow-wrap: anywhere; }
.action svg { flex: none; transition: transform .2s var(--ease); }
.action:hover svg { transform: translate(2px, -2px); }
.prose .closing-action { margin-top: var(--space-xl); }
.article-head .meta { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); align-items: center; margin-top: var(--space-xl); color: var(--fg-muted); font-size: var(--text-sm); }

/* ----- Related experiments (after a write-up) -------------------------- */
/* The other projects that ask about the same ground, each by its name and
   its card's question. A row is a link, tall enough for a thumb. */
.related { margin-top: clamp(var(--space-xl), 2.5vw, var(--space-2xl)); padding-top: var(--space-lg); border-top: 1px solid var(--rule); }
.related h2 { font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.related ul { margin-top: var(--space-xs); }
.related a { display: block; min-height: 2.75rem; padding: var(--space-xs) 0; color: var(--fg-body); line-height: 1.45; }
.related li + li a { border-top: 1px solid var(--rule); }
/* A project's name, so Fraunces, like everywhere else a name appears. */
.related-name {
  display: block; color: var(--fg);
  font-family: var(--font-display); font-variation-settings: "opsz" 72; font-weight: 600;
  font-size: var(--text-xl); letter-spacing: -0.005em; line-height: 1.2;
}
.related-question { display: block; margin-top: var(--space-3xs); }
.related a:hover .related-name { color: var(--link); }

/* ----- More projects (the end of a project page) ----------------------- */
/* A write-up ends with somewhere to go: back to the list, landing on this
   project's card as the breadcrumb does, or on to the next project in the
   home page's order. The last one wraps round to the first. */
.more-projects {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-lg) var(--space-2xl);
  margin-top: clamp(var(--space-xl), 2.5vw, var(--space-2xl)); padding-top: var(--space-lg); border-top: 1px solid var(--rule);
}
.more-projects a { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--fg-body); }
.more-projects svg { flex: none; transition: transform .2s var(--ease), color .2s var(--ease); }
.more-projects .all-projects { font-size: var(--text-sm); font-weight: 600; }
.more-projects .all-projects svg { transform: scaleX(-1); }
.more-projects .all-projects:hover { color: var(--fg); }
.more-projects .all-projects:hover svg { transform: scaleX(-1) translateX(4px); color: var(--link); }
.more-projects .next-project { flex-direction: column; align-items: flex-end; gap: var(--space-2xs); margin-left: auto; text-align: right; }
.more-projects .label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
/* A project's name, so Fraunces, like everywhere else a name appears. */
.more-projects .next-name {
  display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--fg);
  font-family: var(--font-display); font-variation-settings: "opsz" 72; font-weight: 600;
  font-size: var(--text-xl); letter-spacing: -0.005em; line-height: 1.15;
}
.more-projects .next-project:hover svg { transform: translateX(4px); color: var(--link); }

/* ----- Contact (the last line of a project page) ---------------------- */
/* The About band's sentence, said again under "More projects" for a reader
   who arrived straight on a project and never sees the home page. Quiet,
   like the breadcrumb; its link sits in the sentence, so it needs no button. */
.contact { margin-top: var(--space-xl); font-size: var(--text-sm); line-height: 1.55; color: var(--fg-muted); }
.contact a { color: var(--link); font-weight: 600; border-bottom: 1.5px solid var(--link); transition: color .16s var(--ease), border-color .16s var(--ease); }
.contact a:hover { color: var(--fg); border-bottom-color: var(--accent); }

/* ----- Breadcrumb ------------------------------------------------------ */
.crumbs { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--fg-muted); margin-bottom: var(--space-md); }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { opacity: .6; }

/* ----- About (home) ---------------------------------------------------- */
/* The home page's last band, on Paper between the last project row and the
   footer: who runs the lab and how to reach them. Its heading stands in a
   column of its own beside the words, the hero's two columns turned round. */
.about { padding-block: clamp(var(--space-2xl), 3vw, var(--space-4xl)); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(var(--space-md), 3vw, var(--space-3xl)); align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
.about-copy { max-width: 62ch; font-size: var(--text-lg); line-height: 1.55; color: var(--fg-body); }
.about-copy p + p { margin-top: .9em; }
.about-copy a { color: var(--link); font-weight: 600; border-bottom: 1.5px solid var(--link); transition: color .16s var(--ease), border-color .16s var(--ease); }
.about-copy a:hover { color: var(--fg); border-bottom-color: var(--accent); }

/* ----- Tap targets ----------------------------------------------------- */
/* Four links are drawn smaller than a thumb: the logo in the header, a
   breadcrumb's "Home", "All projects" at the end of a page, and a card's
   link to its project. Each keeps its size on the page and takes taps on
   an unseen area around it instead: 44px tall (2.75rem) and .5rem wider
   each side. Nothing on the page moves, and nothing else that can be
   tapped sits inside one of those areas. A new small link joins the list
   below rather than growing its own padding. */
.brand, .crumbs a, .more-projects .all-projects { position: relative; }
.brand::after,
.crumbs a::after,
.more-projects .all-projects::after,
.project-card .card-url::after {
  content: ""; position: absolute; top: 50%; left: -.5rem; right: -.5rem;
  height: 2.75rem; transform: translateY(-50%);
}

/* ----- Filter bar ------------------------------------------------------ */
.filterbar { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.filterbar button {
  padding: .5em 1em; border-radius: 999px; border: 1.5px solid var(--rule-control);
  font-size: var(--text-sm); font-weight: 600; color: var(--fg-body); background: var(--bg-raised);
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.filterbar button:hover { border-color: var(--fg); }
.filterbar button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ----- Footer ---------------------------------------------------------- */
/* The top rule keeps the footer apart from an Ink project row above it,
   since the home page's last row now touches the footer. */
.site-footer { background: var(--panel-ink); color: var(--on-dark-fg); padding-block: clamp(var(--space-xl), 2.5vw, var(--space-2xl)) var(--space-xl); border-top: 1px solid var(--on-dark-rule); }
.site-footer a { color: var(--on-dark-body); transition: color .16s var(--ease); }
.site-footer a:hover { color: var(--on-dark-fg); }
/* One row: the logo and the copyright. */
.footer-row { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-2xl); align-items: center; justify-content: space-between; font-size: var(--text-sm); color: var(--on-dark-mark); }
/* The footer lockup: the same mark on its Slate disc (on Ink an Ink disc
   would vanish) and the name in Paper. */
.footer-brand {
  display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--on-dark-fg);
  font-family: var(--font-display); font-variation-settings: "opsz" 72;
  font-weight: 560; font-size: var(--wordmark-footer); line-height: 1; letter-spacing: -0.01em;
}
.footer-mark { width: 28px; height: 28px; display: block; flex: none; }

/* ----- Reveal on scroll (JS-gated so content shows without JS) --------- */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

/* ----- Page transitions (cross-document View Transitions) ---------------
   Moving between the home page and a project page animates instead of
   cutting. CSS only: a browser without View Transitions (Firefox today)
   just loads the page. The block sits inside no-preference because the
   reduced-motion rule above matches *, ::before and ::after, and the
   ::view-transition-* pseudo-elements are none of those.
   The shared picture: a card's picture and its project page's figure
   carry the same data-shot, and one line below gives both the same
   view-transition-name, so the card's detail grows into the whole
   picture and shrinks back on the way home. Both are 16:10, so the frame
   keeps its shape while it moves. A name must be unique on a page: one
   line per project, and a new project adds its own. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .38s; animation-timing-function: var(--ease); }
}
/* The header is the same on every page: named, it holds still while the
   page under it changes, instead of fading out and back in. */
.site-header { view-transition-name: site-header; }
[data-shot="home-manual"] { view-transition-name: shot-home-manual; }
[data-shot="go-bag"] { view-transition-name: shot-go-bag; }
[data-shot="agent-fiduciary"] { view-transition-name: shot-agent-fiduciary; }
[data-shot="build-coach"] { view-transition-name: shot-build-coach; }
[data-shot="stock-up"] { view-transition-name: shot-stock-up; }
[data-shot="ai-trend-tracker"] { view-transition-name: shot-ai-trend-tracker; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--fg); color: var(--bg); padding: .7em 1.1em; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* The header is sticky, so anything the skip link (or any fragment) jumps to
   has to clear it — same single source as the header's own height. */
main, :target { scroll-margin-top: calc(var(--header-h) + var(--space-md)); }
