/* ============================================================================
   GREISSON — site v2 "Letterpress v2"  ·  ONE shared design system

   A printer's-specimen treatment of a house of tools, on the locked SLATE look
   (M 2026-10-06). The old A/B look switcher is gone: :root is slate, and the
   page needs no js/look.js class.

   THE RULE this system exists to keep: in any section with a screenshot, the
   screenshot is the brightest, most distinct thing. So screenshots stay the
   "light"/"sepia" theme and always sit in an .exhibit — the slate ground itself —
   so they read as light UI on a darker ground, always.

   ---------------------------------------------------------------------------
   COMPONENT / CLASS API for the Quill · Sable · Assistants page builders
   ---------------------------------------------------------------------------
   PAGE SHELL
     .sheet                    the ruled page (max-width, side rules); wrap all
     .pad                      horizontal page padding; put on reading blocks
     header.masthead + nav     see markup in any page's <header>; set
                               aria-current="page" on the current nav link and
                               add class .is-current (styling hook)
     footer.colophon           shared footer

   TYPE / HELPERS
     .label                    mono-caps kicker (accent color)
     .rule .rule-heavy .rule-double   hairline / 2px / 3px-double rules
     em inside headlines       -> true-italic Caslon cut, accent color

   READING SECTIONS
     .hero  .house-rules       the house intro + its four rules
     .entry (+ .flip)          numbered specimen entry: .entry-head(.entry-no,
                               .entry-title) + .entry-body(.entry-text, plate)
     .entry-text h3 / p / .margin-note
     .notice / .agents / .cli / .filetree   optional letterpress set-pieces

   THE SCREENSHOT SYSTEM  (this is the important part)
     .exhibit                  FULL-BLEED band that holds a plate: the slate
                               ground itself, darkened. Put ONLY plates inside;
                               keep headings/prose in .pad blocks around it. Text
                               inside uses the on-stage tokens automatically.
     .exhibit-inner            centres + width-limits the plate in the band
     figure.plate              a screenshot, "lit print" (soft shadow, hairline)
       > img (srcset/sizes, width/height, loading, decoding)
       > figcaption            caption; <b> is the accented plate number
     .plate--hero              add for the frontispiece (gentle 3D tilt, eager)
     .plate--pending           a CAPTURE-PENDING placeholder plate (Sable /
                               Assistants) — never fake a UI. Put the label text
                               as its child; holds a 16:10 box.

   PRODUCT DOORS
     .doors  > .door           short doors to other product pages
       .door-media (plate or pending) · .door-body (.label,h3,p,.door-link)

   BUY MOMENT
     .price > .price-head + .price-list(.price-row[.accent]) + .price-actions
     .btn  .btn-ghost          the two printed buttons (work on every look)

   IMAGES: derive with tools/make-images.py; reference img/<shot>-<theme>-<w>.webp
   via srcset. Use "light" theme unless you have a reason not to.
   ========================================================================== */

/* Typefaces are the files Quill itself bundles (OFL) — the site is set in type
   the app can set your book in. */
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/JetBrainsMono-latin.woff2) format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; } /* OFL; self-hosted, latin subset */
@font-face { font-family: "Yeseva One"; src: url(../fonts/YesevaOne-Regular.ttf) format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Display"; src: url(../fonts/LibreCaslonDisplay-Regular.ttf) format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url(../fonts/LibreCaslonText-Regular.ttf) format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url(../fonts/LibreCaslonText-Italic.ttf) format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url(../fonts/LibreCaslonText-Bold.ttf) format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url(../fonts/LibreCaslonText-BoldItalic.ttf) format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(../fonts/EBGaramond-Regular.ttf) format("truetype"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(../fonts/EBGaramond-Italic.ttf) format("truetype"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(../fonts/EBGaramond-Bold.ttf) format("truetype"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(../fonts/EBGaramond-BoldItalic.ttf) format("truetype"); font-weight: 600 800; font-style: italic; font-display: swap; }

/* ============================================================================
   TOKENS — the slate look, in :root. (The old A/B/green/oxblood look blocks and
   js/look.js were removed when slate was locked, M 2026-10-06.)
   Token API used by everything below:
     grounds  --ground --ground-deep
     ink      --ink --ink-soft --ink-faint
     rules    --line --line-soft
     accent   --gold(fill) --gold-deep(hover) --accent(text-safe on ground)
     stage    --stage(exhibit bg) --stage-ink --stage-soft --stage-faint
              --stage-accent --stage-line   (text/lines placed ON the exhibit)
   ========================================================================== */
/* SLATE — the locked look (M 2026-10-06). */
:root {
  --ground:#2e3a45;  --ground-deep:#37434e;
  --ink:#eceae3;     --ink-soft:#c2c9cf;   --ink-faint:#a7b0b7;
  --line:rgba(255,255,255,.16);  --line-soft:rgba(255,255,255,.09);
  --gold:#e6a24a;    --gold-deep:#efb469;   --accent:#edb267;
  --stage:var(--ground);  --stage-ink:var(--ink);  --stage-soft:var(--ink-soft);
  --stage-faint:var(--ink-faint);  --stage-accent:var(--accent);  --stage-line:rgba(255,255,255,.14);
  --sel:rgba(237,178,103,.26);
  --btn-ink:#1b1611;
  --vignette:rgba(0,0,0,.26);
}

:root {
  --serif:   "EB Garamond", Georgia, "Times New Roman", serif;
  --display: "Libre Caslon Text", Georgia, serif;                  /* labels, small caps, italics, UI */
  --headline:"Yeseva One", "Libre Caslon Display", Georgia, serif; /* large sizes only — single weight */
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --measure: 1400px;   /* wide enough that the 1320px plates sit inside the ruled margins */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.62;
  font-feature-settings: "onum" 1, "liga" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--sel); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ground); color: var(--ink);
  border: 1px solid var(--ink); padding: 10px 16px;
  font-family: var(--display); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* the sheet: a printed page with ruled margins */
.sheet {
  max-width: var(--measure);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.pad { padding-left: clamp(20px, 5vw, 68px); padding-right: clamp(20px, 5vw, 68px); }

/* shared type helpers */
.label {
  font-family: var(--display);
  font-size: .82rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 0;
}
.rule       { border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule-heavy { border: 0; border-top: 2px solid var(--ink);  margin: 0; }
.rule-double{ border: 0; border-top: 3px double var(--ink); margin: 0; }

/* ============================================================================
   MASTHEAD / NAV
   ========================================================================== */
.masthead { border-top: 4px solid var(--ink); }
.mast-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; padding-top: 16px; padding-bottom: 16px;
}
.wordmark {
  font-family: var(--display); font-weight: 900; font-size: 1.9rem;
  color: var(--ink); letter-spacing: .01em; line-height: 1;
}
.wordmark .stop { color: var(--gold); }
.byline {
  font-family: var(--display); font-style: italic; font-size: .95rem;
  color: var(--ink-soft); margin-left: 12px;
}
.nav-links { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--display); font-size: .86rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink); font-weight: 500;
  padding-bottom: 2px; border-bottom: 1.5px solid transparent;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.is-current,
.nav-links a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--gold); }
.nav-links a.btn-nav {
  border: 1px solid var(--ink); padding: 8px 16px; color: var(--ink); border-bottom-width: 1px;
}
.nav-links a.btn-nav:hover { background: var(--ink); color: var(--ground); }
/* Language switch (EN <-> /br/ twin): the quietest item in the row. */
.nav-links a.lang-switch { color: var(--ink-soft); }
.nav-links a.lang-switch:hover { color: var(--accent); }

.mast-strip {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 9px; padding-bottom: 9px;
  font-family: var(--display); font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-soft);
}
.mast-strip span:nth-child(2) { color: var(--accent); }

/* Single-column body text uses a wide ~94ch measure (author, 10-31; was 56–72ch).
   Two-column copy and captions keep their own. */
/* ============================================================================
   HERO — the house / title page
   ========================================================================== */
.hero { padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(30px, 4vw, 52px); }
.hero-kicker { text-align: center; margin-bottom: 28px; }
.hero h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.7rem, 7.4vw, 5.9rem); line-height: .98; letter-spacing: -.015em;
  text-align: center; margin: 0 auto; max-width: 17ch; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 1.95rem); line-height: 1.3; text-align: center;
  color: var(--ink-soft); margin: 24px auto 0; max-width: 50ch; text-wrap: balance;
}
.hero-lede {
  text-wrap: pretty; max-width: 94ch; margin: 30px auto 0;
  font-size: 1.18rem; line-height: 1.66; text-align: center; color: var(--ink);
}
.hero-actions {
  display: flex; gap: 18px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin: 32px 0 0;
}
.hero-note {
  text-align: center; margin: 20px auto 0; max-width: 78ch;
  font-family: var(--display); font-style: italic; font-size: .98rem;
  color: var(--ink-faint); text-wrap: balance;
}

/* the four house rules — a printed list */
.house-rules {
  list-style: none; margin: clamp(30px,4vw,48px) auto 0; padding: 0;
  max-width: 900px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(30px,4vw,56px);
  border-top: 2px solid var(--ink);
}
.house-rules li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline;
  padding: 18px 2px; border-bottom: 1px solid var(--line);
}
.house-rules .rn {
  font-family: var(--headline); font-size: 1.5rem; line-height: 1;
  color: var(--accent); white-space: nowrap;
}
.house-rules p { margin: 0; font-size: 1.04rem; line-height: 1.5; color: var(--ink-soft); }
.house-rules b { color: var(--ink); font-weight: 600; }

/* buttons — "printed" blocks (work on every look) */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: .9rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 30px; border: 1.5px solid var(--gold); background: var(--gold);
  color: var(--btn-ink);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--btn-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }

/* ============================================================================
   EXHIBIT BAND + PLATE — the screenshot system
   --stage == --ground, so the band is the slate stock itself, with a soft
   vignette for depth. The light/sepia screenshot is the brightest, most distinct
   thing on it, mounted like a lit print.
   ========================================================================== */
.exhibit {
  position: relative;
  /* full-bleed to the viewport out of the centered .sheet */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  background: var(--stage);
  padding: clamp(24px, 3.6vw, 56px) clamp(10px, 2.8vw, 40px);
  overflow: hidden;
}
/* soft top/bottom vignette gives the band depth (deepens colored stock in B) */
.exhibit::before,
.exhibit::after {
  content: ""; position: absolute; left: 0; right: 0; height: 90px; pointer-events: none;
}
.exhibit::before { top: 0;    background: linear-gradient(to bottom, var(--vignette), transparent); }
.exhibit::after  { bottom: 0; background: linear-gradient(to top,    var(--vignette), transparent); }
.exhibit-inner { max-width: 1320px; margin: 0 auto; position: relative; }   /* wider than the sheet: plates break out of the margins */

.plate { margin: 0; }
.plate img {
  border: 0; width: 100%; height: auto; display: block;
  box-shadow:
    0 0 0 1px var(--stage-line),
    0 2px 0 rgba(0,0,0,.15),
    0 34px 66px -30px rgba(0,0,0,.72);
}
.plate figcaption {
  margin-top: 18px; font-family: var(--display); font-size: 1rem; line-height: 1.5;
  color: var(--stage-soft); text-wrap: pretty; max-width: 62ch;
}
.plate figcaption b { font-style: italic; font-weight: 700; color: var(--stage-accent); }

/* hero frontispiece — a gentle 3D tilt (a "lit print"); motion-safe only */
.plate--hero { perspective: 2200px; }
.plate--hero img {
  transform: rotateX(2.2deg) rotateY(-3.6deg);
  transform-origin: 60% 50%;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  box-shadow:
    0 0 0 1px var(--stage-line),
    0 3px 0 rgba(0,0,0,.18),
    0 46px 90px -34px rgba(0,0,0,.8);
}
.plate--hero:hover img { transform: rotateX(0deg) rotateY(0deg); }

/* CAPTURE-PENDING placeholder — never a fake UI, just a labelled 16:10 hold */
.plate--pending .pending-box {
  aspect-ratio: 16 / 10; width: 100%;
  display: grid; place-content: center; text-align: center; gap: 10px;
  border: 1.5px dashed var(--stage-line);
  background:
    repeating-linear-gradient(-45deg,
      rgba(127,127,127,.05) 0 14px, rgba(127,127,127,0) 14px 28px);
  box-shadow: 0 0 0 1px var(--stage-line);
}
.plate--pending .pending-mark {
  font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--stage-ink);
}
.plate--pending .pending-note {
  font-family: var(--display); font-size: .74rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--stage-accent);
}

/* ============================================================================
   SPECIMEN ENTRIES — a product / feature entry
   ========================================================================== */
.entry { padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(44px, 6vw, 76px); }
.entry-head {
  display: flex; align-items: baseline; gap: 22px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 46px);
}
.entry-no {
  font-family: var(--headline); font-size: clamp(2rem, 4vw, 3rem); line-height: .9;
  color: var(--accent); white-space: nowrap;
}
.entry-title {
  font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1; color: var(--ink); margin: 0;
}
.entry-body {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start;
}
.entry-body > * { min-width: 0; }  /* a pre (.filetree) must scroll, not widen the column */
.entry.flip .entry-text { order: 2; }
.entry.flip .plate      { order: 1; }
.entry-text h3 {
  font-family: var(--headline); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.01em;
  margin: 0 0 20px; text-wrap: balance;
}
.entry-text p { margin: 0 0 18px; color: var(--ink); }
.entry-text p:last-child { margin-bottom: 0; }
.margin-note {
  margin: 26px 0 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--gold);
  font-family: var(--display); font-style: italic; font-size: 1.02rem; line-height: 1.5;
  color: var(--ink-soft);
}
.margin-note::before { content: "Note. "; font-weight: 700; font-style: normal; color: var(--accent); letter-spacing: .02em; }

/* verbs — a compact "what it lets you do" grid */
.verbs {
  list-style: none; margin: clamp(28px,4vw,44px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--ground); border: 1px solid var(--line);
}
/* Each cell draws its own hairline, so an unfilled last row reads as a plain empty box, not a lit one. */
.verbs li { background: var(--ground); padding: 20px 22px; box-shadow: 0 0 0 1px var(--line); }
.verbs h4 {
  font-family: var(--display); font-weight: 700; font-size: 1.12rem; margin: 0 0 6px; color: var(--ink);
}
.verbs p { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--ink-soft); }
.verbs--two { grid-template-columns: repeat(2, 1fr); }   /* four items: 2x2, no orphan cell */

/* ============================================================================
   PRODUCT DOORS — short doors to Sable / Assistants
   ========================================================================== */
.doors { padding-top: clamp(20px,3vw,40px); padding-bottom: clamp(30px,4vw,56px); }
.door {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center;
  padding: clamp(34px,5vw,64px) 0; border-top: 1px solid var(--line);
}
.door:last-child { border-bottom: 1px solid var(--line); }
.door.flip .door-media { order: 2; }
.door.flip .door-body  { order: 1; }
.door-body h3 {
  font-family: var(--headline); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.04; margin: 12px 0 6px;
}
.door-tag {
  font-family: var(--display); font-style: italic; font-size: 1.24rem;
  color: var(--ink-soft); margin: 0 0 18px;
}
.door-body p { margin: 0 0 16px; font-size: 1.06rem; line-height: 1.6; color: var(--ink-soft); }
.door-body p b { color: var(--ink); font-weight: 600; }
.door-link {
  display: inline-block; margin-top: 4px;
  font-family: var(--display); font-weight: 700; font-size: .86rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  border-bottom: 1.5px solid var(--gold); padding-bottom: 3px;
}
.door-link:hover { color: var(--ink); }
/* a door's media sits in its own compact exhibit */
.door-media .exhibit { margin: 0; width: auto; padding: clamp(18px,2.4vw,30px); }
.door-media .exhibit-inner { max-width: none; }

/* ============================================================================
   BUY MOMENT — the printed price list
   ========================================================================== */
.price { padding-top: clamp(50px, 7vw, 96px); padding-bottom: clamp(50px, 7vw, 96px); }
.price-head { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.price-head .label { margin-bottom: 16px; }
.price-head h2 {
  font-family: var(--headline); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1; margin: 0; text-wrap: balance;
}
/* One shared label column (subgrid): every row's text starts on the same line, labels centered in their row. */
.price-list {
  border-top: 2px solid var(--ink); max-width: 760px; margin: 0 auto 40px;
  display: grid; grid-template-columns: max-content 1fr; column-gap: 28px;
}
.price-row {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.price-amt {
  font-family: var(--headline); font-weight: 400; font-size: 1.9rem; line-height: 1;
  color: var(--ink); white-space: nowrap;
}
.price-row.accent .price-amt { color: var(--gold); }
.price-term {
  font-family: var(--display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 6px;
}
.price-copy { font-size: 1.08rem; line-height: 1.55; color: var(--ink-soft); }
.price-copy b { color: var(--ink); font-weight: 600; }
.price-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: center; }
.price-fine {
  text-align: center; margin: 22px auto 0; max-width: 94ch;
  font-family: var(--display); font-style: italic; font-size: .98rem; color: var(--ink-faint);
}

/* ============================================================================
   OPTIONAL SET-PIECES — notice broadside / agents / cli / filetree
   ========================================================================== */
.notice { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(48px, 7vw, 92px); }
.notice-card { border: 1px solid var(--ink); padding: clamp(28px, 4vw, 56px); background: var(--ground-deep); }
.notice-head { text-align: center; padding-bottom: 22px; margin-bottom: 30px; border-bottom: 3px double var(--ink); }
.notice-head .label { margin-bottom: 14px; }
.notice-head h2 {
  font-family: var(--headline); font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.02; margin: 0; text-wrap: balance;
}
.notice-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 4vw, 56px); align-items: center; }
.notice-grid p { font-size: 1.2rem; line-height: 1.7; margin: 0; }
.dropcap::first-letter {
  font-family: var(--headline); font-size: 3.9em; line-height: .78; float: left;
  margin: .04em .09em -.02em 0; color: var(--gold);
}
.filetree {
  font-family: var(--mono); font-size: .92rem; line-height: 1.85; color: var(--ink);
  background: var(--ground); border: 1px solid var(--line); padding: 22px 24px;
  white-space: pre; overflow-x: auto;
}
.filetree b { color: var(--ink); font-weight: 700; }
.filetree .hl { color: var(--accent); }
.filetree .comment { color: var(--ink-faint); font-style: italic; }
.filetree-cap { margin: 16px 0 0; font-family: var(--display); font-style: italic; font-size: .98rem; color: var(--ink-faint); }

.agents { padding-top: clamp(42px, 6vw, 72px); padding-bottom: clamp(42px, 6vw, 72px); }
.agents-inner { max-width: 94ch; margin: 0 auto; text-align: center; }
.agents .label { color: var(--ink-soft); }
.agents h2 {
  font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.16; margin: 16px 0 20px; text-wrap: balance;
}
.agents p { color: var(--ink-soft); font-size: 1.12rem; margin: 0 auto 22px; max-width: 94ch; }
.cli {
  font-family: var(--mono); font-size: .9rem; line-height: 1.9; text-align: left; color: var(--ink);
  background: var(--ground-deep); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  padding: 18px 22px; margin: 0 auto 24px; max-width: 92ch; white-space: pre-wrap; word-break: break-word;
}
.cli .prompt { color: var(--accent); }
.cli .comment { color: var(--ink-faint); }

/* stub-page "in progress" body */
.stub { padding-top: clamp(52px,8vw,110px); padding-bottom: clamp(60px,9vw,130px); text-align: center; }
.stub h1 {
  font-family: var(--headline); font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.02; margin: 14px 0 0; text-wrap: balance;
}
.stub p { max-width: 94ch; margin: 22px auto 0; font-size: 1.16rem; color: var(--ink-soft); }
.stub .rule-double { max-width: 260px; margin: 30px auto 0; }

/* ============================================================================
   FOOTER / COLOPHON
   ========================================================================== */
.colophon { border-top: 4px solid var(--ink); padding-top: 40px; padding-bottom: 56px; }
.colophon-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.colophon .fm { font-family: var(--headline); font-weight: 400; font-size: 1.5rem; }
.colophon .fm .stop { color: var(--gold); }
.colophon p { margin: 12px 0 0; font-size: 1rem; color: var(--ink-soft); max-width: 46ch; }
.colophon .set-in { font-family: var(--display); font-style: italic; color: var(--ink-faint); font-size: .95rem; }
.colophon .copyright { color: var(--ink-faint); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.footer-links a {
  font-family: var(--display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.footer-links a:hover { color: var(--accent); }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  body { font-size: 18px; }
  .entry-body { grid-template-columns: 1fr; gap: 28px; }
  .entry.flip .entry-text, .entry.flip .plate { order: 0; }
  .door { grid-template-columns: 1fr; gap: 26px; }
  .door.flip .door-media, .door.flip .door-body { order: 0; }
  .house-rules { grid-template-columns: 1fr; }
  .verbs, .verbs--two { grid-template-columns: 1fr; }
  .notice-grid { grid-template-columns: 1fr; gap: 28px; }
  .colophon-inner { grid-template-columns: 1fr; gap: 24px; }
  .plate--hero img { transform: none; }   /* keep the hero flat on smaller screens */
}
@media (max-width: 560px) {
  .sheet { border-left: 0; border-right: 0; }
  .mast-top { flex-wrap: wrap; gap: 12px; }
  /* at ~390px the inline byline wrapped and orphaned "imprint"; give it its own line */
  .byline { display: block; margin-left: 0; margin-top: 2px; }
  .nav-links { gap: 12px 14px; width: 100%; }
  .nav-links a { font-size: .74rem; letter-spacing: .1em; }
  .mast-strip { flex-direction: column; gap: 4px; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .entry-head { flex-wrap: wrap; gap: 10px; }
  .price-list { display: block; }
  .price-row { grid-template-columns: 1fr; gap: 8px; }
  .price-actions { flex-direction: column; align-items: stretch; }
  .price-actions .btn { text-align: center; }
  .footer-links { gap: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .plate--hero img { transform: none; }   /* no resting tilt when motion is reduced */
}

/* Yeseva One headline cut (single heavy weight, no synthetic styles) */
.wordmark, .hero h1, .colophon .fm { font-family: var(--headline); font-weight: 400; font-synthesis: none; }
.hero h1 { letter-spacing: -.01em; line-height: 1.14; } /* air between lines (author, 10-31) */
.hero h1 em, .entry-text h3 em, .notice-head h2 em, .price-head h2 em, .door-body h3 em {
  font-family: var(--display); font-style: italic; font-weight: 700;
}

/* ==========================================================================
   CAROUSEL — one plate at a time, for sections with more than one screenshot.
   Uses js/carousel.js (progressive enhancement: without JS the slides stack,
   all visible). Lives inside an .exhibit, so it uses the on-stage slate tokens.
   Markup: .carousel[data-carousel] > .carousel-viewport > .carousel-track >
           figure.plate.carousel-slide … + .carousel-controls
           (button[data-carousel-prev] · .carousel-dots · button[data-carousel-next])
   ========================================================================== */
.carousel:not(.is-ready) .carousel-slide + .carousel-slide { margin-top: clamp(34px, 5vw, 56px); }
.carousel:not(.is-ready) .carousel-controls { display: none; }
.carousel:focus-visible { outline: 2px solid var(--stage-accent); outline-offset: 10px; }
.carousel.is-ready .carousel-viewport { overflow: hidden; }
.carousel.is-ready .carousel-track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.carousel.is-ready .carousel-slide { flex: 0 0 100%; min-width: 100%; }
.carousel-slide { margin: 0; }
.carousel-slide figcaption { min-height: 3.2em; }
/* italic caption swashes (the J of "Job", the P of "Plate") overhang left of their box — keep the
   next slide's first glyph from peeking into the viewport */
.carousel.is-ready .carousel-slide figcaption { padding-left: 10px; }
.slide-lead { display: block; margin-bottom: 8px; color: var(--stage-ink); font-style: normal; }
.carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: clamp(18px, 2.4vw, 28px);
}
.carousel-arrow {
  width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center;
  background: transparent; color: var(--stage-ink);
  border: 1px solid var(--stage-line); border-radius: 0;
  font: 400 19px/1 var(--display);
  transition: border-color .15s, color .15s, background .15s;
}
.carousel-arrow:hover { border-color: var(--stage-accent); color: var(--stage-accent); }
.carousel-arrow:focus-visible { outline: 2px solid var(--stage-accent); outline-offset: 2px; }
.carousel-dots { display: flex; gap: 12px; }
.carousel-dot {
  width: 9px; height: 9px; padding: 0; cursor: pointer; border-radius: 999px;
  border: 1px solid var(--stage-soft); background: transparent;
  transition: background .15s, border-color .15s;
}
.carousel-dot.is-active { background: var(--stage-accent); border-color: var(--stage-accent); }
.carousel-dot:focus-visible { outline: 2px solid var(--stage-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .carousel.is-ready .carousel-track { transition: none; } }

/* ==========================================================================
   CONTINUOUS MARGIN RULES. The exhibit band is the same slate ground as the
   page, so the sheet's ruled margins run straight through it instead of stopping
   and restarting. (Unconditional since slate was locked — this was look-B-only.)
   The exhibit is 100vw and centered on the sheet, so the sheet edges sit at
   50% ± measure/2 of the band.
   ========================================================================== */
.exhibit {
  background-image:
    linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line));
  background-size: 1px 100%, 1px 100%;
  background-repeat: no-repeat;
  background-position:
    max(0px, calc(50% - var(--measure) / 2)) 0,
    min(100%, calc(50% + var(--measure) / 2 - 1px)) 0;
}

/* Plates are wider than the sheet (1320 vs --measure), so a caption flush with the plate
   would start outside the ruled margin — and the continuous margin rule would cut
   through it. Indent captions to sit just inside the sheet margin. The percentage is
   of the plate's width, so on narrow screens (plate < measure) this falls back to 10px. */
.plate figcaption,
.carousel.is-ready .carousel-slide figcaption {
  --cap-indent: max(10px, calc((100% - var(--measure)) / 2 + 28px));
  padding-left: var(--cap-indent);
  max-width: calc(62ch + var(--cap-indent));   /* keep the text measure; the indent is extra */
}

/* ==========================================================================
   CAROUSEL THUMBNAILS — replace the dots, so every plate in a carousel is seen
   (Gray, 2026-09-28: most visitors never click the arrows). js/carousel.js fills
   .carousel-dots with .carousel-thumb buttons and adds .carousel-thumbs.
   ========================================================================== */
.carousel-thumbs { gap: clamp(6px, 1vw, 12px); flex-wrap: wrap; justify-content: center; }
.carousel-thumb {
  width: clamp(48px, 8.5vw, 116px); height: auto; aspect-ratio: 16 / 10;
  padding: 0; border-radius: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--stage-line); background: rgba(255,255,255,.04);
  opacity: .5; transition: opacity .2s, border-color .2s, transform .2s;
}
.carousel-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.carousel-thumb:hover { opacity: .85; }
.carousel-thumb.is-active {
  opacity: 1; background: transparent;
  border-color: var(--stage-accent); box-shadow: 0 0 0 1px var(--stage-accent);
}
.carousel-thumb--text {
  display: grid; place-items: center; padding: 4px;
  font: italic 400 clamp(9px, 1vw, 12px)/1.15 var(--display); color: var(--stage-ink);
  text-align: center;
}
.carousel-thumb:focus-visible { outline: 2px solid var(--stage-accent); outline-offset: 3px; }
@media (max-width: 560px) { .carousel-controls { gap: 10px; } .carousel-arrow { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .carousel-thumb { transition: none; } }

/* ==========================================================================
   SECTION INTRO SPLIT (Gray/M 2026-09-28): a numbered section's intro fills the
   column instead of leaving the right half empty. Left: the big heading (under
   the full-width No./title rule). Right: body + Note, top-aligned with the
   heading, keeping a ~65–75ch line. A section with a natural companion (file
   tree, CLI sample) puts that in the right column and keeps its text left.
   Mobile: one column.
   ========================================================================== */
.entry-split {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  gap: clamp(28px, 4.5vw, 72px); align-items: start;
}
.entry-split > * { min-width: 0; }
.entry-split .entry-lead h3 { margin-top: 0; }
.entry-split .entry-copy { max-width: 68ch; }
.entry-split .entry-copy > :first-child { margin-top: 0; }
.entry-split--companion { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.entry-split--companion .filetree { margin: 0; }
.agents--split .agents-inner {
  max-width: none; text-align: left;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 4.5vw, 72px); align-items: center;
}
.agents--split .agents-inner p { margin-left: 0; margin-right: 0; }
.agents--split .cli { margin: 0; max-width: none; }
@media (max-width: 900px) {
  .entry-split, .entry-split--companion, .agents--split .agents-inner { grid-template-columns: 1fr; }
}


/* ============================================================================
   APP HERO — a free app's About plate beside the copy (author 11-01: "in the
   hero, like the inkwell + quill on /quill/"). The static form of Quill's beat 1:
   the plate large on the left, the copy on the right; stacked under 900px.
   The plates are the apps' own About SVGs, rendered once to WebP with alpha
   (their feTurbulence grain draws unevenly across browsers). No motion.
   ========================================================================== */
.hero--app {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
.hero--app .hero-art { width: 100%; max-width: 470px; height: auto; justify-self: center; }
.hero--app > picture { display: block; width: 100%; max-width: 470px; justify-self: center; }   /* animated art + reduced-motion still */
.hero--app > picture .hero-art { max-width: none; }
.hero--app .hero-copy > * { text-align: left; margin-left: 0; margin-right: 0; }
.hero--app h1 { font-size: clamp(2.6rem, 5.2vw, 4.9rem); max-width: 15ch; }
.hero--app .hero-sub { max-width: 34ch; }
.hero--app .hero-lede { max-width: 62ch; font-size: 1.12rem; }
.hero--app .hero-actions { justify-content: flex-start; }
@media (max-width: 900px) {
  .hero--app { grid-template-columns: 1fr; gap: 8px; }
  .hero--app .hero-art { max-width: min(240px, 60vw); }
  .hero--app > picture { max-width: min(240px, 60vw); }
  .hero--app .hero-copy > * { text-align: center; margin-left: auto; margin-right: auto; }
  .hero--app .hero-actions { justify-content: center; }
}

/* ============================================================================
   HOME — two major products on the same level (author 11-01, for the
   Assistants Early Access launch 11-04): a PAIR band of two equal doors under
   the hero, a section of equal depth each, then the free apps in a compact
   back-seat row ("Also from the house").
   ========================================================================== */
.pair { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.pair-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(28px,4vw,52px) clamp(18px,3vw,44px);
}
.pair-card + .pair-card { border-left: 1px solid var(--line); }
.pair-art { display: block; width: clamp(150px, 17vw, 220px); height: auto; margin: 0 auto 20px; }
.pair-art img { display: block; width: 100%; height: auto; }
.pair-art--ink { filter: drop-shadow(0 0 1.2px rgba(234,240,241,.55)) drop-shadow(0 0 26px rgba(214,226,234,.26)); }
.pair-card h2 {
  font-family: var(--headline); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.06; margin: 12px auto 10px; max-width: 18ch; text-wrap: balance;
}
.pair-card h2 em { font-family: var(--display); font-style: italic; font-weight: 700; color: var(--gold); }
.pair-sub { font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.35; color: var(--ink-soft); margin: 0 auto 14px; max-width: 34ch; }
.pair-body { margin: 0 auto 24px; max-width: 46ch; font-size: 1.04rem; line-height: 1.6; color: var(--ink-soft); }
.pair-card .btn { margin-top: auto; }
@media (max-width: 900px) {
  .pair { grid-template-columns: 1fr; }
  .pair-card + .pair-card { border-left: 0; border-top: 1px solid var(--line); }
}
.house-row { list-style: none; padding: 0; margin: clamp(22px,3vw,36px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(18px,3vw,36px); }
.house-card { border-top: 1px solid var(--line); padding-top: 18px; }
.house-card img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px var(--stage-line), 0 18px 40px -24px rgba(0,0,0,.7); }
.house-card h3 { font-family: var(--headline); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.1; margin: 16px 0 4px; }
.house-card .door-tag { font-size: 1.05rem; margin: 0 0 8px; }
.house-card p { margin: 0 0 12px; color: var(--ink-soft); }
