/* ============================================================
   site.css, the practice.directcreate.com site layer (stage 4, 2026-09-06)
   ------------------------------------------------------------
   Sits on top of the locked brand bundle (colors_and_type.css, dc-brand.css).
   Brand tokens are never redefined here; this file adds the site's own
   tokens, the page anatomy (SITE_MAP.md 4.1), the navigation separated from
   narration (section 3), the evidence block (4.2), the rails, and the
   reading-first layout (8.3). Light theme only, per the brand.
   ============================================================ */

:root{
  /* Accent as TEXT fails AA on white (2.77:1). Text takes this tone; rules,
     marks and panels keep the brand terracotta. 5.85:1 on white. */
  --accent-ink: #9C4E45;
  --measure: 66ch;
  --site-max: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --step-h2-site: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  --step-h3-site: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --step-title: clamp(2.2rem, 1.4rem + 4vw, 4.4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: hidden; max-width: 100%; }
body { font-size: var(--step-body); line-height: 1.65; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper);
  padding: 8px 12px; font-family: var(--font-grotesque); font-size: var(--step-cap);
  text-transform: uppercase; letter-spacing: var(--track-caption); z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---- shell ---- */
.site-shell { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--gutter); }
.site-main { padding-bottom: var(--space-6); }

/* ---- header and navigation (section 3) ---- */
.site-header { border-bottom: 1px solid var(--ink); background: var(--paper); position: relative; z-index: 40; }
.site-header .site-shell { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; flex-wrap: wrap; }
.site-logo { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: 1.05rem;
  letter-spacing: 0.04em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.site-logo .dot { color: var(--terracotta); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; align-items: center; }
.site-nav li { position: relative; }
.site-nav a, .site-nav button { font-family: var(--font-grotesque); font-weight: var(--w-bold);
  font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption);
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 22px 12px; display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.site-nav a:hover, .site-nav button:hover, .site-nav a[aria-current="page"] { color: var(--accent-ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--terracotta); }
.site-nav button[aria-expanded="true"] { color: var(--accent-ink); }
.site-nav .chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -4px; }
.site-nav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--paper);
  border: 1px solid var(--ink); padding: 8px 0; z-index: 50; }
.site-nav li.open > .sub { display: block; }
.site-nav .sub a { display: block; padding: 10px 16px; text-transform: none; letter-spacing: 0; font-weight: var(--w-medium);
  font-size: var(--step-meta); }
.site-nav .sub a:hover { background: var(--pale-grey); color: var(--ink); }
.site-tools { display: flex; align-items: center; gap: 10px; margin-left: 8px; flex-wrap: wrap; max-width: 100%; min-width: 0; }  /* reflows at 200% zoom on 375 px (WCAG 1.4.10) */
.site-search-link { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap);
  text-transform: uppercase; letter-spacing: var(--track-caption); color: var(--ink); text-decoration: none; padding: 10px 6px; }
.site-search-link:hover { color: var(--accent-ink); }
.site-action { display: inline-flex; align-items: center; font-family: var(--font-grotesque); font-weight: var(--w-bold);
  font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); text-decoration: none;
  padding: 11px 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); line-height: 1; white-space: nowrap; }
.site-action:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--ink); }
.site-menu-toggle { display: none; font-family: var(--font-grotesque); font-weight: var(--w-bold);
  font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption);
  background: none; border: 1px solid var(--ink); color: var(--ink); padding: 10px 14px; cursor: pointer; }
@media (max-width: 900px) {
  .site-header .site-shell { min-height: 56px; gap: 8px; }
  .site-tools { margin-left: auto; gap: 6px; }
  .site-menu-toggle { display: inline-block; padding: 9px 10px; }
  .site-action { padding: 10px 10px; font-size: 0.66rem; }
  .site-search-link { padding: 9px 4px; }
  .site-nav { display: none; width: 100%; margin: 0; order: 10; }
  .site-header.open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; border-top: 1px solid var(--ink); }
  .site-nav li { border-bottom: 1px solid var(--mid-neutral); }
  .site-nav a, .site-nav button { width: 100%; padding: 14px 4px; justify-content: space-between; }
  .site-nav .sub { position: static; border: 0; border-left: 3px solid var(--terracotta); margin: 0 0 8px 8px; }
}
@media (max-width: 420px) { .site-logo { font-size: 0.92rem; } .site-search-link { display: none; } }

/* ---- breadcrumb and eyebrow (orient) ---- */
.crumbs { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase;
  letter-spacing: var(--track-caption); color: var(--slate); margin: var(--space-4) 0 var(--space-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--mid-neutral); }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.eyebrow { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap);
  text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--accent-ink); display: block; margin-bottom: 10px; }

/* ---- page header (orient + state) ---- */
.page-head { margin-bottom: var(--space-4); }
.page-head h1 { font-family: var(--font-display-serif); font-weight: var(--w-bold); font-size: var(--step-title);
  line-height: 1.02; letter-spacing: 0; margin: 0 0 var(--space-3); max-width: 22ch; text-wrap: balance; }
.page-head h1.grot { font-family: var(--font-grotesque); font-weight: var(--w-black); letter-spacing: var(--track-tight);
  line-height: 0.95; text-transform: uppercase; }
.lead { font-family: var(--font-serif); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); line-height: 1.5;
  max-width: var(--measure); margin: 0 0 var(--space-3); }
.meta { font-family: var(--font-grotesque); font-size: var(--step-meta); color: var(--slate);
  display: flex; flex-wrap: wrap; gap: 4px 20px; margin: var(--space-3) 0; line-height: 1.4; }
@media (max-width: 700px) { .meta { font-size: 0.8rem; gap: 2px 16px; } .meta b { font-size: 0.62rem; } }
.meta b { color: var(--ink); text-transform: uppercase; letter-spacing: var(--track-caption); font-size: var(--step-cap); margin-right: 6px; }
.meta a { color: var(--ink); }
.rule-accent { border: 0; border-top: 4px solid var(--terracotta); margin: var(--space-3) 0 var(--space-4); width: 88px; }

/* ---- hero (prove) ---- */
.hero { margin: 0 0 var(--space-5); }
.hero img { display: block; width: 100%; height: auto; }
.hero.cover img { aspect-ratio: 16 / 9; object-fit: cover; }
.hero.contain { background: var(--warm-paper); padding: var(--space-3); }
.hero.contain img { max-height: 70vh; width: auto; margin: 0 auto; object-fit: contain; }
/* Decision 711 (applied on the recommended answer, 2026-09-10): a source narrower than 900 px is never
   stretched to the measure; it sits as a contained evidence figure at its own size on warm paper. */
.hero.small img { max-width: min(100%, 600px); max-height: 60vh; }
.hero figcaption, .fig figcaption { font-family: var(--font-grotesque); font-size: var(--step-meta); color: var(--slate);
  margin-top: 10px; line-height: 1.45; max-width: var(--measure); }
.hero figcaption .prov, .fig figcaption .prov { display: block; font-size: var(--step-cap); text-transform: uppercase;
  letter-spacing: var(--track-caption); margin-top: 4px; }

/* ---- body (prove): one reading measure, never two columns ---- */
.body { max-width: var(--measure); }
.body h2 { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-h2-site);
  letter-spacing: var(--track-tight); line-height: 1.05; margin: var(--space-5) 0 var(--space-3); scroll-margin-top: 80px; }
.body h2:first-child { margin-top: 0; }
.body h3 { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-h3-site);
  line-height: 1.15; margin: var(--space-4) 0 var(--space-2); }
.body p { margin: 0 0 var(--space-3); }
.body ul, .body ol { padding-left: 1.3em; margin: 0 0 var(--space-3); }
.body li { margin-bottom: 6px; }
.body blockquote { margin: var(--space-4) 0; padding: var(--space-3) var(--space-4); border-left: 4px solid var(--terracotta);
  background: var(--warm-paper); }
.body blockquote p { margin-bottom: 8px; }
.body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.body a:hover { color: var(--accent-ink); }
.body a.term { text-decoration-style: dotted; text-decoration-color: var(--accent-ink); }
.body a.link-pending { color: var(--slate); text-decoration: none; border-bottom: 1px dashed var(--mid-neutral); cursor: help; }
.body table { border-collapse: collapse; width: 100%; font-size: var(--step-meta); margin: 0 0 var(--space-3); }
.body th, .body td { border-bottom: 1px solid var(--mid-neutral); padding: 8px; text-align: left; vertical-align: top; }
.body th { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); }
.tablewrap { overflow-x: auto; }
.section-anchor { font-family: var(--font-grotesque); font-size: var(--step-cap); color: var(--mid-neutral);
  text-decoration: none; margin-left: 8px; }
.body h2:hover .section-anchor { color: var(--accent-ink); }

/* two-column page layout: body + aside rails on wide screens */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.page-grid > * { min-width: 0; }
.body, .lead, .meta, .evidence, .block { overflow-wrap: anywhere; }
@media (min-width: 1000px) { .page-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.aside { position: sticky; top: 24px; display: grid; gap: var(--space-4); }
@media (max-width: 999px) {
  /* the anatomy in reading order on one column: contents, body, evidence,
     questions, related, terms, cite, read next, the door */
  .page-main, .page-rails { display: contents; }
  .page-grid { gap: var(--space-4); }
  .page-grid .contents { order: 1; } .page-grid .body { order: 2; } .page-grid .evidence { order: 3; }
  .page-grid .body + section, .page-grid section.body { order: 4; } .page-grid .related { order: 5; }
  .page-grid .terms { order: 6; } .page-grid .cite { order: 7; } .page-grid .sec { order: 8; }
  .page-grid .door { order: 9; } .page-grid .door-essay { order: 5; } .page-grid .readnext { order: 10; } .page-grid .contact { order: 3; }
  .page-grid .evidence { margin: 0; }
}

/* ---- blocks: evidence, terms, related, cite, contents (trust, relate, act) ---- */
.block { border-top: 1px solid var(--ink); padding-top: var(--space-3); }
.block h2, .block h3 { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap);
  text-transform: uppercase; letter-spacing: var(--track-wide); margin: 0 0 var(--space-3); color: var(--ink); }
.block ul { list-style: none; margin: 0; padding: 0; }
.block li { margin: 0 0 10px; font-size: var(--step-meta); line-height: 1.45; }
.block li a { text-decoration: none; color: var(--ink); }
.block li a:hover { color: var(--accent-ink); text-decoration: underline; }
.block .kind { display: block; font-family: var(--font-grotesque); font-size: var(--step-cap); color: var(--slate);
  text-transform: uppercase; letter-spacing: var(--track-caption); }
.contents li a { font-family: var(--font-grotesque); }
.terms dt { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-meta); margin-top: 8px; }
.terms dd { margin: 2px 0 0; font-size: var(--step-meta); color: var(--slate); line-height: 1.45; }
.terms dt a { text-decoration: none; color: var(--ink); }
.evidence { background: var(--warm-paper); padding: var(--space-4); border-top: 4px solid var(--terracotta); margin: var(--space-5) 0; max-width: var(--measure); }
.evidence h2 { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-wide); margin: 0 0 var(--space-3); }
.evidence dl { display: grid; grid-template-columns: 1fr; gap: 10px 0; margin: 0; }
@media (min-width: 640px) { .evidence dl { grid-template-columns: 150px 1fr; } }
.evidence dt { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); color: var(--slate); padding-top: 3px; }
.evidence dd { margin: 0; font-size: var(--step-meta); line-height: 1.5; }
.evidence dd ul { margin: 0; padding-left: 1.1em; }
.evidence .pending { color: var(--accent-ink); font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); }
.cite pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-serif); font-size: var(--step-meta); background: var(--pale-grey);
  padding: 12px; margin: 0 0 8px; line-height: 1.45; }
.cite button { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase;
  letter-spacing: var(--track-caption); background: none; border: 1px solid var(--ink); padding: 8px 12px; cursor: pointer; }
.cite button:hover { background: var(--ink); color: var(--paper); }

/* ---- read next / prev-next (act) ---- */
.readnext { margin: var(--space-6) 0 0; border-top: 4px solid var(--ink); padding-top: var(--space-4); }
.readnext .pos { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--slate); margin-bottom: 8px; }
.readnext p { font-family: var(--font-serif); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: var(--measure); margin: 0 0 var(--space-3); }
.readnext .pn { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; }
.readnext .pn a { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-meta); text-decoration: none; color: var(--ink); border: 1px solid var(--ink); padding: 12px 16px; }
.readnext .pn a:hover { background: var(--ink); color: var(--paper); }
.readnext .pn a.next { margin-left: auto; background: var(--ink); color: var(--paper); }
.readnext .pn a.next:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--ink); }

/* ---- cards and lists (landings, home) ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-4); }
.card { border-top: 1px solid var(--ink); padding-top: var(--space-3); display: flex; flex-direction: column; min-width: 0; }
.card .media { margin: 0 0 var(--space-3); }
.card .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card .media.contain img { object-fit: contain; background: var(--warm-paper); padding: 12px; }
.card .kicker { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); color: var(--accent-ink); margin-bottom: 6px; }
.card h3 { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-h3-site); letter-spacing: var(--track-tight); line-height: 1.05; margin: 0 0 8px; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--accent-ink); }
.card p { font-size: var(--step-meta); color: var(--slate); margin: 0; line-height: 1.5; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--mid-neutral); padding: 14px 0; display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 700px) { .list li { grid-template-columns: 1fr 2fr; gap: var(--space-4); } }
.list a { text-decoration: none; color: var(--ink); font-family: var(--font-grotesque); font-weight: var(--w-bold); }
.list a:hover { color: var(--accent-ink); }
.list .desc { font-size: var(--step-meta); color: var(--slate); }

/* ---- sections on landings and home ---- */
.sec { margin: var(--space-6) 0 0; }
.sec > h2 { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-h2-site); letter-spacing: var(--track-tight); line-height: 1.05; margin: 0 0 var(--space-3); }
.sec > .intro { max-width: var(--measure); margin: 0 0 var(--space-4); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.sec-head a.more { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); text-decoration: none; color: var(--ink); }
.sec-head a.more:hover { color: var(--accent-ink); }

/* ---- Start here route ---- */
.start { border: 1px solid var(--ink); padding: var(--space-4); margin: var(--space-5) 0; }
.start .label { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--accent-ink); margin-bottom: var(--space-3); }
.start ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--space-3); counter-reset: s; }
.start li { counter-increment: s; border-top: 3px solid var(--terracotta); padding-top: 10px; }
.start li::before { content: counter(s); display: block; font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: 1.6rem; line-height: 1; margin-bottom: 6px; }
.start li .role { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); color: var(--slate); display: block; }
.start li a { font-family: var(--font-grotesque); font-weight: var(--w-bold); text-decoration: none; color: var(--ink); font-size: var(--step-meta); }
.start li a:hover { color: var(--accent-ink); }

/* ---- home statement ---- */
.home-head { padding: var(--space-6) 0 var(--space-4); }
.home-head h1 { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: clamp(2.6rem, 1.4rem + 7vw, 7rem); line-height: 0.92; letter-spacing: var(--track-tight); text-transform: uppercase; margin: 0 0 var(--space-4); max-width: 12ch; overflow-wrap: break-word; }
.home-head .lead { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); max-width: 60ch; }
.home-banner { margin: var(--space-4) 0 0; position: relative; }
.home-banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; }
@media (max-width: 700px) { .home-banner img { aspect-ratio: 4 / 3; } }
.home-banner figcaption { font-family: var(--font-grotesque); font-size: var(--step-meta); color: var(--slate); margin-top: 10px; max-width: var(--measure); }
.moves { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-4); counter-reset: m; }
.moves div { counter-increment: m; border-top: 1px solid var(--ink); padding-top: var(--space-3); }
.moves div::before { content: counter(m, upper-roman); font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-cap); letter-spacing: var(--track-wide); color: var(--accent-ink); display: block; margin-bottom: 8px; }
.moves h3 { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-h3-site); letter-spacing: var(--track-tight); line-height: 1.05; margin: 0 0 8px; }
.moves h3 a { text-decoration: none; color: var(--ink); }
.moves h3 a:hover { color: var(--accent-ink); }
.moves p { font-size: var(--step-meta); color: var(--slate); margin: 0; }
.door { background: var(--ink); color: var(--paper); padding: var(--space-5) var(--space-4); margin: var(--space-6) 0 0; }
.door h2 { color: var(--paper); font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-h2-site); letter-spacing: var(--track-tight); margin: 0 0 var(--space-3); }
.door p { max-width: var(--measure); margin: 0 0 var(--space-3); color: var(--pale-grey); }
.door a { color: var(--paper); }
.door .btn { display: inline-block; font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); text-decoration: none; border: 1px solid var(--paper); padding: 12px 18px; }
.door .btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--ink); }

/* ---- contact block (about) ---- */
.contact { border: 1px solid var(--ink); padding: var(--space-4); margin: var(--space-4) 0; max-width: var(--measure); scroll-margin-top: var(--space-4); }
.contact h2 { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-h3-site); margin: 0 0 var(--space-2); }
.contact ul { list-style: none; margin: 0; padding: 0; }
.contact li { margin: 6px 0; font-family: var(--font-grotesque); font-size: var(--step-meta); }

/* ---- footer: compact ---- */
.site-footer { border-top: 4px solid var(--ink); margin-top: var(--space-5); padding: var(--space-4) 0 var(--space-4);
  font-family: var(--font-grotesque); font-size: var(--step-meta); color: var(--slate); }
.foot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.6fr); gap: var(--space-3) var(--space-4); }
.foot-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.foot-col a { color: var(--ink); text-decoration: none; font-size: 0.82rem; line-height: 1.35; }
.foot-col a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot-h { font-size: 0.66rem !important; text-transform: uppercase; letter-spacing: var(--track-wide); font-weight: var(--w-bold); color: var(--ink); margin-bottom: 4px; }
.foot-door a { overflow-wrap: normal; word-break: keep-all; }
.foot-door a[href^="mailto:"] { word-break: normal; }   /* wraps only at the <wbr> after the @ (2026-09-09, 375 px overflow) */
.site-footer .imprint { margin-top: var(--space-3); padding-top: 10px; border-top: 1px solid var(--mid-neutral);
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: var(--track-caption); display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-3); } .site-footer { margin-top: var(--space-5); } }

/* ---- search ---- */
.search-form { display: flex; gap: 8px; max-width: var(--measure); margin: 0 0 var(--space-4); }
.search-form input { flex: 1; font-family: var(--font-serif); font-size: var(--step-body); padding: 12px; border: 1px solid var(--ink); }
.search-form button { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 0 18px; cursor: pointer; }
.search-results .group { margin: var(--space-4) 0; }
.search-results .group h2 { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-wide); margin: 0 0 8px; }

/* ---- print ---- */
@media print {
  .site-header, .site-footer, .aside, .readnext, .start, .door, .skip-link { display: none !important; }
  .page-grid { display: block; }
  .body, .lead { max-width: none; }
  a { color: inherit; text-decoration: none; }
}

/* WCAG 2.2 AA 2.5.8 target size (axe target-size, 850 nodes on 50 pages,
   2026-09-06): every footer link renders 17.7px tall. Give links in the
   footer columns and the door row a 24px minimum box without changing the
   type size. */
.foot-col > a, .foot-door > a { display: inline-block; min-height: 24px; line-height: 24px; padding: 0 2px; }

/* Stage 4 check at exactly 375 px (2026-09-07): the Home display heading broke
   "Intelligence" mid-word. At the phone width the black grotesque needs about
   34 px for the longest word in the 327 px column; below 420 px the size is
   fixed rather than fluid so the word never fractures. */
@media (max-width: 420px) { .home-head h1 { font-size: 2rem; letter-spacing: -0.01em; } }

/* Follow the work (Public Depth piece 5): the return path block. */
.follow p { margin: 0 0 var(--space-2); }
.follow .latest { list-style: none; padding: 0; margin: 0; }
.follow .latest li { padding: 4px 0; border-top: 1px solid var(--rule, #ddd); }
.follow .latest time { font-family: var(--font-grotesque); font-size: 0.8rem; letter-spacing: 0.02em; margin-right: 0.6em; color: var(--ink); }

/* Human Discovery Layer (2026-09-09): intents, the trail hand-off, print. Restrained: state
   changes only, no motion beyond the page's own smooth scroll. */
.intents { margin: var(--space-6) 0; }
.intents h2 { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 var(--space-3); }
.intent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 999px) { .intent-grid { grid-template-columns: 1fr; } }
.intent { display: flex; flex-direction: column; gap: 6px; padding: var(--space-3); border: 1px solid var(--ink); text-decoration: none; color: inherit; min-height: 150px; }
.intent:hover, .intent:focus-visible { background: var(--warm-paper); outline: 2px solid var(--ink); outline-offset: 2px; }
.intent-title { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: 1.25rem; line-height: 1.2; }
.intent-line { font-family: var(--font-serif); font-size: 1rem; line-height: 1.45; }
.intent-go { margin-top: auto; font-family: var(--font-grotesque); font-size: 0.85rem; letter-spacing: 0.02em; }
.handoff { border-top: 1px solid var(--ink); padding-top: var(--space-3); margin: var(--space-5) 0; }
.handoff .trail-name { font-family: var(--font-grotesque); font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: var(--space-2); }
.handoff-card { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-3); text-decoration: none; color: inherit; align-items: start; }
@media (max-width: 700px) { .handoff-card { grid-template-columns: 1fr; } }
.handoff-card .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.handoff-card .text { display: flex; flex-direction: column; gap: 6px; }
.handoff-card .why { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.45; }
.handoff-card .next-title { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: 1.1rem; }
.handoff-card .learn { font-family: var(--font-serif); font-size: 0.95rem; color: var(--ink-soft, #444); }
.handoff-card:hover .next-title, .handoff-card:focus-visible .next-title { text-decoration: underline; }
.trail-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--space-3); }
.trail-tools button { font-family: var(--font-grotesque); font-size: 0.85rem; padding: 10px 12px; border: 1px solid var(--ink); background: transparent; cursor: pointer; min-height: 44px; }
.trail-tools button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.trail-tools button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media print {
  .site-nav, .site-footer, .page-rails, .handoff .trail-tools, .follow, .door, .readnext { display: none !important; }
  body { color: #000; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* Increment 1.1: intents first; the four moves compact; on a trail the hand-off is primary. */
.moves.compact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 999px) { .moves.compact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .moves.compact { grid-template-columns: 1fr; } }
.moves.compact h3 { font-size: 1rem; margin: 0 0 4px; }
.moves.compact p { font-size: 0.95rem; line-height: 1.45; margin: 0; }
.readnext.secondary { border-top: 0; padding-top: 0; }
.readnext.secondary .pos { font-size: 0.8rem; color: var(--ink); }
body.on-trail .readnext { display: none; }
body.on-trail .related li:nth-child(n+4) { display: none; }
body.on-trail .related h3::after { content: " (a few)"; font-weight: normal; }
.trail-end .end-actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-top: var(--space-2); }
.trail-end .alt { font-family: var(--font-grotesque); font-size: 0.9rem; }
.resume-bar { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; padding: 8px var(--gutter); border-bottom: 1px solid var(--ink); font-family: var(--font-grotesque); font-size: 0.9rem; margin-bottom: var(--space-3); }
.resume-bar .resume-go { font-weight: var(--w-bold); display: inline-flex; align-items: center; gap: 0.3em; min-height: 44px; }
.resume-bar .resume-remove { font-family: inherit; font-size: 0.85rem; padding: 8px 12px; border: 1px solid var(--ink); background: transparent; cursor: pointer; min-height: 44px; margin-left: auto; }
.resume-bar .resume-remove:focus-visible, .resume-bar .resume-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-live { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Human Discovery Layer, Phase 1: visual chapters inside the argument. */
.chapters { margin: var(--space-5) 0; }
.chapters .sec-head h2, .sec-head h2 { overflow-wrap: anywhere; }
.chapters-intro { font-size: var(--step-meta); color: var(--slate); max-width: var(--measure); margin: 0 0 var(--space-4); }
.chapter-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-4); align-items: start; padding: var(--space-4) 0; border-top: 1px solid var(--rule, #ddd); }
.chapter:last-child { border-bottom: 1px solid var(--rule, #ddd); }
.chapter-n { display: inline-block; font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); letter-spacing: 0.08em; border: 1px solid var(--ink); padding: 2px 8px; margin-bottom: 8px; }
.chapter-text h3 { margin: 0 0 6px; font-size: 1.25rem; }
.chapter-text .claim { margin: 0; max-width: 36ch; }
.chapter-fig { margin: 0; }
.chapter-fig img { width: 100%; height: auto; display: block; background: var(--paper-deep, #eee); }
@media (max-width: 999px) { .chapter { grid-template-columns: 1fr; gap: var(--space-3); } .chapter-text .claim { max-width: var(--measure); } }
@media print { .chapter { break-inside: avoid; } }

/* printable edition link (Field Guide) */
.print-edition { font-family: var(--font-grotesque); font-size: var(--step-meta); margin: 0 0 var(--space-4); }
.print-edition a { font-weight: var(--w-bold); }
.print-edition .note { color: var(--slate); }
@media print { .print-edition { display: none; } }

/* Gate 2 named defect (2026-09-11): every chapter figure opens at full size; diagrams keep a large derivative. */
.chapter-fig .fig-full { display: block; }
.chapter-fig .fig-open { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); white-space: nowrap; }

/* Rajeev, 2026-09-11: a card with no image shows a palette block, never a hole (operations/site_images_needed.md). */
.card .media.placeholder { aspect-ratio: 4 / 3; background: var(--poster-ground); }
