@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════════
   THE WORKSHOP — wip.youbuybitcoin.com
   Bulletin layout, two-tier (front + deep), two-theme (morning ⇄ evening)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Morning — paper & ink */
  --paper:    #f5ecd5;
  --paper-2:  #ecdfba;
  --paper-3:  #e0d0a3;
  --ink:      #181410;
  --ink-2:    #3a2f24;
  --dim:      #6a5c46;
  --faint:    #95876b;
  --rule:     rgba(24, 20, 16, 0.22);
  --rule-2:   rgba(24, 20, 16, 0.12);
  --rule-3:   rgba(24, 20, 16, 0.06);
  --orange:   #b8420e;
  --orange-2: #d65a1f;
  --green:    #2a6d3c;
  --sky:      #1d5a86;
  --plum:     #6c2c5c;
  --amber:    #8a5e0e;
  --red:      #a8281e;

  /* Type — sans-serif experiment (was Newsreader serif). System UI stack.
     To revert: change back to the Newsreader serif line, and run replace_all
     `font-style: normal` -> `font-style: italic` in style.css. */
  --serif:    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:     "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  /* Layout */
  --max:      72rem;
  --max-tight: 56rem;
  --gutter:   clamp(1.25rem, 3.5vw, 2.5rem);
  --pad-v:    clamp(2rem, 4vw, 3rem);
}

[data-theme="evening"] {
  --paper:    #0e0c0a;
  --paper-2:  #14110e;
  --paper-3:  #1a1611;
  --ink:      #f3e8d0;
  --ink-2:    #d4c7aa;
  --dim:      #8a7d62;
  --faint:    #5d5240;
  --rule:     rgba(243, 232, 208, 0.22);
  --rule-2:   rgba(243, 232, 208, 0.10);
  --rule-3:   rgba(243, 232, 208, 0.05);
  --orange:   #f7931a;
  --orange-2: #ffb84d;
  --green:    #5fb878;
  --sky:      #6ec5f5;
  --plum:     #c98ab4;
  --amber:    #d9a64d;
  --red:      #ff6b6b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper); color: var(--ink);
  font-family: var(--serif);
  font-size: 17px; line-height: 1.58;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 280ms ease, color 280ms ease;
  background-image:
    radial-gradient(rgba(24,20,16,0.028) 1px, transparent 1px),
    radial-gradient(rgba(24,20,16,0.018) 1px, transparent 1.2px);
  background-size: 22px 22px, 7px 7px;
  background-position: 0 0, 11px 13px;
  overflow-x: hidden;
}
[data-theme="evening"] body {
  background-image:
    radial-gradient(rgba(243,232,208,0.045) 1px, transparent 1px),
    radial-gradient(rgba(243,232,208,0.022) 1px, transparent 1.2px);
}

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink-2); transition: color 160ms, border-color 160ms; padding-bottom: 1px; }
a:hover { color: var(--orange); border-bottom-color: var(--orange); }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 1px; }
::selection { background: var(--orange); color: var(--paper); }

.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--orange); color: #fff; padding: 6px 12px; font-family: var(--mono); font-size: 12px; z-index: 100; }

/* ═════════════════════════════════════
   TICKER — sticky project-facts strip
   ═════════════════════════════════════ */
.ticker {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper-2);
  border-bottom: 1px solid var(--ink);
  border-top: 1px solid var(--rule-2);
  display: grid;
  grid-template-columns: auto repeat(5, 1fr) auto auto;
  align-items: stretch;
  min-height: 50px;
  font-family: var(--mono); font-size: 11.5px;
}
.ticker > * {
  padding: 7px 12px;
  border-right: 1px solid var(--rule-2);
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
}
.ticker > *:last-child { border-right: 0; }
.ticker .live {
  background: var(--orange); color: var(--paper);
  font-weight: 700; letter-spacing: 0.16em; font-size: 10.5px;
  display: flex; align-items: center; gap: 7px;
  text-transform: uppercase;
  border: 0; cursor: pointer; font-family: inherit;
}
.ticker .live:hover { filter: brightness(1.08); }
.ticker .live:focus-visible { outline: 2px solid var(--paper); outline-offset: -3px; }
[data-theme="evening"] .ticker .live { color: #0e0c0a; }
.ticker .dot { width: 7px; height: 7px; background: currentColor; border-radius: 50%; animation: tickpulse 1.6s ease-in-out infinite; }
@keyframes tickpulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.35;transform:scale(0.55)} }
@keyframes iconpulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.75;transform:scale(0.92)} }
.ticker .lbl { font-size: 8.5px; color: var(--dim); letter-spacing: 0.18em; text-transform: uppercase; }
.ticker .v { font-size: 13px; color: var(--ink); font-weight: 500; }
.ticker .v.ok { color: var(--green); }

/* Theme toggle — orange box, icon-above-text, slightly pulsing */
.ticker .toggle {
  background: var(--orange); color: var(--paper);
  border: 0; cursor: pointer;
  font-family: var(--mono); font-weight: 700;
  letter-spacing: 0.18em; font-size: 8.5px;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  padding: 4px 14px;
}
[data-theme="evening"] .ticker .toggle { color: #0e0c0a; }
.ticker .toggle:hover { filter: brightness(1.08); }
.ticker .toggle:focus-visible { outline: 2px solid var(--paper); outline-offset: -3px; }
.ticker .toggle > .sun, .ticker .toggle > .moon {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  line-height: 1;
}
.ticker .toggle > .moon { display: none; }
.ticker .toggle .icon {
  font-size: 16px;
  animation: iconpulse 2.4s ease-in-out infinite;
}
.ticker .toggle .lbl { color: inherit; }
[data-theme="evening"] .ticker .toggle > .sun { display: none; }
[data-theme="evening"] .ticker .toggle > .moon { display: flex; }

/* YouBuyBitcoin main-site link — top-right corner */
.ticker .ybb-link {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 0 14px;
}
.ticker .ybb-link:hover { color: var(--orange); }
.ticker .ybb-link .arrow { font-size: 14px; line-height: 1; }
.ticker .ybb-link .lbl { color: inherit; font-size: inherit; letter-spacing: inherit; }

/* ═════════════════════════════════════
   NEWCOMER RIBBON
   ═════════════════════════════════════ */
.newcomer {
  padding: 9px var(--gutter);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.newcomer .badge {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 3px 7px; font-weight: 700;
  background: var(--orange); color: var(--paper);
}
[data-theme="evening"] .newcomer .badge { color: #0e0c0a; }
.newcomer .copy { font-family: var(--serif); font-style: normal; font-size: 15px; color: var(--ink-2); }
.newcomer .copy b { color: var(--ink); font-style: normal; font-weight: 500; }
.newcomer .cta {
  margin-left: auto;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--ink-2); padding-bottom: 2px;
}
.newcomer .rt {
  margin-left: 8px; padding: 2px 6px; border: 1px solid var(--rule);
  font-size: 9.5px;
  white-space: nowrap;
  display: inline-block;
}

/* ═════════════════════════════════════
   TYPOGRAPHY UTILITIES — orphan + line-balance prevention
   `balance` for short headings/ledes (2-4 lines); `pretty` for longer paragraphs.
   Both degrade gracefully on browsers that don't support them.
   ═════════════════════════════════════ */
.mast h1,
.hero h2,
.hero .lede,
.preface,
.dept-head h3,
.toc-head h3,
.toc-card h4,
.toc-card .desc,
.newcomer .copy {
  text-wrap: balance;
}
.dept-blurb,
.founder-mission p,
.founder-entry p,
.op-blurb p {
  text-wrap: pretty;
}

/* ═════════════════════════════════════
   MASTHEAD — centered, double-rule
   ═════════════════════════════════════ */
.mast {
  padding: 32px var(--gutter) 14px;
  border-bottom: 4px double var(--ink);
  text-align: center;
  max-width: var(--max);
  margin: 0 auto;
}
.mast .pre {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 10px;
}
.mast .pre em { color: var(--orange); font-style: normal; font-weight: 600; letter-spacing: 0.32em; }
.mast h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(44px, 8.5vw, 104px); line-height: 0.94;
  letter-spacing: -0.027em;
  font-style: normal;
  font-feature-settings: "liga","dlig","kern";
}
.mast h1 em { font-style: normal; color: var(--orange); }
.mast .sub {
  margin-top: 14px;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  padding: 9px 4px;
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 10px;
}
.mast .sub .l, .mast .sub .r {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dim);
}
.mast .sub .l b, .mast .sub .r b { color: var(--ink); font-weight: 500; }
.mast .sub .mid {
  font-family: var(--serif); font-style: normal; font-size: 17px;
  color: var(--ink);
}

/* ═════════════════════════════════════
   PREFACE — publisher's note between mast and hero
   ═════════════════════════════════════ */
.preface {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.5rem) var(--gutter) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.5;
}
.preface em { font-style: italic; }

/* ═════════════════════════════════════
   HERO
   ═════════════════════════════════════ */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--gutter) clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.hero h2 {
  font-family: var(--serif); font-weight: 500;
  font-style: normal;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 22ch; text-wrap: balance;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero h2 em { font-style: normal; color: var(--orange); font-weight: 700; }
.hero .lede {
  font-size: 17px; color: var(--ink-2); max-width: 38ch;
  margin-bottom: 10px;
}
.hero .lede b { color: var(--ink); font-weight: 500; }
.hero-side {
  border-left: 1px solid var(--rule-2);
  padding-left: clamp(1rem, 2vw, 1.5rem);
  font-family: var(--serif); font-size: 14.5px;
  color: var(--dim);
}
.hero-side .side-lede {
  font-family: var(--serif);
  font-size: 15.5px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule-2);
}
.hero-side .side-lede b {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
}
.hero-side dl { margin: 0; }
.hero-side dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange);
  margin-top: 14px; margin-bottom: 4px; font-weight: 600;
}
.hero-side dl > dt:first-child { margin-top: 0; }
.hero-side dd {
  font-style: normal; color: var(--ink-2); line-height: 1.5;
  margin-left: 0;
}
.hero-side dd b { color: var(--ink); font-style: normal; font-weight: 500; }

/* ═════════════════════════════════════
   TABLE OF CONTENTS — card grid
   ═════════════════════════════════════ */
.toc {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.toc-head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-2);
}
.toc-head h3 {
  font-family: var(--serif); font-weight: 700; font-style: normal;
  font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.015em;
}
.toc-head h3 em { color: var(--orange); font-style: normal; }
.toc-head .help {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim);
}
.toc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.toc-card {
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 18px 20px 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: border-color 220ms, background 220ms, transform 220ms;
  position: relative;
  overflow: hidden;
}
.toc-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--ink-2);
  transition: background 220ms;
}
.toc-card:hover {
  border-color: var(--orange);
  background: var(--paper-3);
  transform: translateY(-2px);
}
.toc-card:hover::before { background: var(--orange); }
.toc-card:focus-visible {
  outline: 2px solid var(--orange); outline-offset: -1px;
}
.toc-card .nm {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px;
}
.toc-card .roman {
  font-family: var(--serif); font-style: normal; font-weight: 700;
  font-size: 26px; color: var(--orange); line-height: 1;
  letter-spacing: -0.01em;
}
.toc-card h4 {
  font-family: var(--serif); font-weight: 600; font-style: normal;
  font-size: 19px; letter-spacing: -0.008em; color: var(--ink);
}
.toc-card .desc {
  font-family: var(--serif); font-style: normal; font-size: 14px;
  color: var(--ink-2); line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}
.toc-card .meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 10px;
  border-top: 1px dotted var(--rule);
}
.toc-card .count {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim);
}
.toc-card .count b { color: var(--ink); font-weight: 500; }
.toc-card .open {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange); font-weight: 600;
}

/* ═════════════════════════════════════
   DEPARTMENTS
   ═════════════════════════════════════ */
.dept {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.25rem, 4vw, 3rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.dept.tight { padding-top: clamp(1.5rem, 3vw, 2rem); padding-bottom: clamp(1.5rem, 3vw, 2rem); }
.dept-head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 14px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--ink);
}
.dept-head .title-block {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.dept-head .roman {
  font-family: var(--serif); font-style: normal; font-weight: 700;
  font-size: clamp(26px, 3vw, 36px); color: var(--orange);
  line-height: 1; letter-spacing: -0.01em;
}
.dept-head h3 {
  font-family: var(--serif); font-weight: 500; font-style: normal;
  font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.012em;
  line-height: 1.1; color: var(--ink);
}
.dept-head .count {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim);
}
.dept-head .count b { color: var(--ink); font-weight: 500; }
.dept-head .count .ok { color: var(--green); }
.dept-blurb {
  font-family: var(--serif); font-style: normal;
  font-size: 16px; color: var(--ink-2);
  max-width: 56ch; margin-top: 8px;
  line-height: 1.5;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule-2);
}
/* When a dept-subtitle follows, suppress the dept-blurb's separator —
   the subtitle's own top rule already serves as the divider. */
.dept-blurb:has(+ .dept-subtitle) {
  padding-bottom: 0;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

/* ─── Status pills (8 states) ───────────────────────────────── */
.status {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; font-weight: 600;
}
.status::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px;
}
.status.s-planned    { color: var(--dim); }
.status.s-planned::before    { background: var(--dim); }
.status.s-research   { color: var(--amber); }
.status.s-research::before   { background: var(--amber); border-radius: 50%; }
.status.s-drafting   { color: var(--plum); }
.status.s-drafting::before   { background: var(--plum); transform: rotate(45deg); }
.status.s-review     { color: var(--sky); }
.status.s-review::before     { background: var(--sky); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--paper); }
.status.s-building   { color: var(--orange); }
.status.s-building::before   { background: var(--orange); }
.status.s-shipped    { color: var(--green); }
.status.s-shipped::before    { background: var(--green); transform: rotate(45deg); }
.status.s-help       { color: var(--sky); }
.status.s-help::before       { background: transparent; border: 2px solid var(--sky); border-radius: 50%; }
.status.s-blocked    { color: var(--red); }
.status.s-blocked::before    { background: var(--red); border-radius: 50%; }
.status.s-parked     { color: var(--faint); }
.status.s-parked::before     { background: transparent; border: 1px solid var(--faint); }

/* ─── Item list ─────────────────────────────────────────────── */
.items { list-style: none; display: grid; gap: 0; }
.item {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-2);
}
.item:last-child { border-bottom: 0; }
.item-meta {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 4px;
}
.item-date {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--dim);
}
.item-body h4 {
  font-family: var(--serif); font-weight: 600; font-style: normal;
  font-size: 18.5px; line-height: 1.25; color: var(--ink);
  margin-bottom: 6px; letter-spacing: -0.005em;
}
.item-body p {
  color: var(--ink-2); font-size: 15.5px; line-height: 1.55;
  margin-bottom: 6px;
}
.item-tail {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--dim);
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 8px;
}
.item-tail a { color: var(--dim); border-bottom-color: var(--rule); }
.item-tail a:hover { color: var(--orange); border-color: var(--orange); }
.item-tail .sep { color: var(--rule); }

/* ─── Substeps + Updates ────────────────────────────────────── */
.substeps {
  list-style: none;
  margin-top: 10px;
  padding-left: 0;
  display: grid; gap: 4px;
}
.substeps li {
  font-family: var(--serif); font-style: normal;
  font-size: 14px; color: var(--dim);
  padding-left: 1.4em; position: relative;
  line-height: 1.5;
}
.substeps li::before {
  content: "↳"; position: absolute; left: 0.2em;
  font-family: var(--mono); font-style: normal;
  color: var(--faint);
}
.substeps li.done { color: var(--green); }
.substeps li.done::before { content: "✓"; color: var(--green); }
.substeps li.blocked { color: var(--red); }
.substeps li.blocked::before { content: "✗"; color: var(--red); }

/* ─── Body bullet lists (leads, inline lists) ───────────────── */
.leads-list {
  list-style: none;
  margin: 8px 0 10px 0;
  padding-left: 0;
  display: grid; gap: 5px;
}
.leads-list li {
  font-family: var(--serif); font-style: normal;
  font-size: 15px; color: var(--ink-2);
  padding-left: 1.4em; position: relative;
  line-height: 1.55;
}
.leads-list li::before {
  content: "·"; position: absolute; left: 0.5em;
  font-family: var(--mono); font-weight: 700;
  color: var(--orange);
}
.leads-list li strong { color: var(--ink); }

.updates {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--paper-2);
  border-left: 2px solid var(--rule);
}
.updates .uh {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 6px; font-weight: 600;
}
.updates ul { list-style: none; display: grid; gap: 3px; }
.updates li {
  font-family: var(--serif); font-style: normal;
  font-size: 13.5px; color: var(--ink-2);
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px;
  line-height: 1.45;
}
.updates li .d {
  font-family: var(--mono); font-style: normal;
  font-size: 10.5px; color: var(--dim); letter-spacing: 0.04em;
  padding-top: 1px;
}

/* ═════════════════════════════════════
   MAP — surface table (NEW)
   ═════════════════════════════════════ */
.map-list { list-style: none; display: grid; gap: 0; }
.map-row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-2);
  align-items: baseline;
}
.map-row:last-child { border-bottom: 0; }
.map-row .surface {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--orange);
  border: 0; border-bottom: 1px dotted transparent;
  padding-top: 2px;
}
.map-row .surface:hover { border-bottom-color: var(--orange); }
/* Virtual surface — MAP label not a real page (see scripts/workshop-build.js
   MAP_URL_VIRTUAL). Tones down the color so the reader's eye doesn't expect
   a click, while keeping the same layout footprint as a real surface link.
   Inline links in the body carry the actual navigation. */
.map-row .surface.virtual {
  color: var(--ink-2);
  cursor: default;
  opacity: 0.75;
}
.map-row .surface.virtual:hover { border-bottom-color: transparent; }
.map-row .intent {
  font-family: var(--serif); font-size: 15px;
  color: var(--ink-2); line-height: 1.55;
}
.map-row .intent b { color: var(--ink); font-weight: 500; }
.map-row .state {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.06em; color: var(--dim);
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 2px;
}
.map-row .state .live {
  font-weight: 600; color: var(--green);
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 9.5px;
}
.map-row .state .live.partial { color: var(--amber); }

/* ═════════════════════════════════════
   RESEARCH ITEMS
   ═════════════════════════════════════ */
.research-list { list-style: none; display: grid; gap: 0; }
.research-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px dashed var(--rule-2);
  align-items: baseline;
}
.research-item:last-child { border-bottom: 0; }
.research-item h4 {
  font-family: var(--serif); font-weight: 600; font-style: normal;
  font-size: 17.5px; color: var(--ink); letter-spacing: -0.005em;
  margin-bottom: 5px;
}
.research-item p {
  font-family: var(--serif); font-style: normal;
  font-size: 14.5px; color: var(--ink-2);
  max-width: 62ch; line-height: 1.55;
}
.research-item .qs {
  list-style: none; margin-top: 8px;
  display: grid; gap: 3px;
}
.research-item .qs li {
  font-family: var(--serif); font-size: 13.5px; color: var(--dim);
  padding-left: 1em; position: relative;
  font-style: normal;
}
.research-item .qs li::before {
  content: "?"; position: absolute; left: 0;
  color: var(--orange); font-weight: 700;
}
.research-item .right {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}

/* ═════════════════════════════════════
   SKILLS
   ═════════════════════════════════════ */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.skill h4 {
  font-family: var(--serif); font-weight: 600; font-style: normal;
  font-size: 17px; color: var(--ink); margin-bottom: 2px;
}
.skill .sub {
  display: block;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); font-weight: 600;
  margin-bottom: 6px;
}
.skill p {
  font-family: var(--serif); font-size: 14.5px;
  color: var(--ink-2); line-height: 1.5;
}
.skill .commit {
  margin-top: 6px;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim);
}
.skill .commit b { color: var(--green); font-weight: 600; }
.skill .cross-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.skill .cross-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* § VI subtitle — italic publisher's-note line under dept-blurb */
.dept-subtitle {
  max-width: 65ch;
  margin: 0.5rem 0 1.25rem 0;
  padding: 0.6rem 0 0.8rem 0;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.55;
}
.dept-subtitle em { font-style: italic; }

.contact-block {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
  padding: 18px 22px;
  margin-top: 1.5rem;
}
.contact-block .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange); font-weight: 600;
  display: block; margin-bottom: 8px;
}
.contact-block .addr {
  font-family: var(--mono); font-size: 18px; color: var(--ink);
  border: 0; letter-spacing: 0.01em; font-weight: 500;
}
.contact-block .addr:hover { color: var(--orange); }
.contact-block p {
  font-family: var(--serif); font-style: normal;
  color: var(--ink-2); font-size: 14.5px; margin-top: 10px;
  line-height: 1.55;
}

.notfor {
  margin-top: 1.5rem;
  padding: 14px 18px;
  border: 1px dashed var(--rule);
  font-family: var(--serif); font-size: 14px; color: var(--dim);
  font-style: normal;
  line-height: 1.55;
}
.notfor b { color: var(--ink-2); font-style: normal; font-weight: 500; }

/* ═════════════════════════════════════
   SOURCE DESK
   ═════════════════════════════════════ */
.source-list { list-style: none; display: grid; gap: 0; }
.source {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-2);
  align-items: start;
}
.source:last-child { border-bottom: 0; }
.source .tier {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600;
  padding-top: 3px;
}
.source .tier.primary    { color: var(--green); }
.source .tier.secondary  { color: var(--sky); }
.source .tier.commentary { color: var(--amber); }

.source h4 {
  font-family: var(--serif); font-weight: 600; font-style: normal;
  font-size: 16px; color: var(--ink); letter-spacing: -0.003em;
  margin-bottom: 4px;
  line-height: 1.3;
}
.source .url {
  font-family: var(--mono); font-size: 11px;
  color: var(--dim); letter-spacing: 0.02em;
  border: 0; border-bottom: 1px dotted var(--rule);
  word-break: break-all;
}
.source .url:hover { color: var(--orange); border-color: var(--orange); }
.source .meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; color: var(--dim);
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 6px;
}
.source .meta .tag {
  padding: 1px 6px; border: 1px solid var(--rule);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.source .note {
  font-family: var(--serif); font-style: normal;
  font-size: 13.5px; color: var(--ink-2);
  line-height: 1.5;
}
.source .note .legal {
  font-family: var(--mono); font-style: normal;
  font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange);
  display: block; margin-top: 6px;
}
.source .note .legal b { color: var(--ink); font-weight: 500; }

/* ═════════════════════════════════════
   FOUNDER NOTE
   ═════════════════════════════════════ */
.founder-inner {
  max-width: var(--max-tight);
  margin: 0 auto;
}
.founder-note {
  font-family: var(--serif); font-style: normal;
  font-size: clamp(17px, 1.2vw, 19px); line-height: 1.7;
  color: var(--ink);
  max-width: 38rem;
  margin: 0 auto;
}
.founder-note p { margin-bottom: 0.9rem; }
.founder-note p:last-child { margin-bottom: 0; }
.founder-note h5 {
  font-family: var(--mono); font-style: normal;
  font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--orange);
  margin: 1.5rem 0 0.5rem; font-weight: 600;
}
.founder-sig {
  margin-top: 1.5rem;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); font-style: normal;
  text-align: right;
}
.founder-sig::before { content: "— "; color: var(--faint); }

/* ─── Founder entries, archive, mission block ──────────────── */
.founder-entry { margin-bottom: 1.5rem; }
.founder-entry:last-child { margin-bottom: 0; }
.founder-entry h5,
.founder-mission h5 {
  font-family: var(--mono); font-style: normal;
  font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 0.6rem; font-weight: 600;
}
.founder-divider {
  border: 0;
  border-top: 1px solid var(--rule-2);
  margin: 2rem 0 1.75rem;
}
.founder-mission {
  /* Mission block — slightly muted vs current week's note */
  color: var(--ink-2);
}
.founder-mission p { color: var(--ink-2); }
.founder-mission p b { color: var(--ink); }

.founder-archive {
  margin-top: 1.5rem;
  border-top: 1px dotted var(--rule);
  padding-top: 0.85rem;
}
.founder-archive > summary {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); cursor: pointer;
  padding: 0.25rem 0;
  list-style: none;
  font-style: normal;
}
.founder-archive > summary::-webkit-details-marker { display: none; }
.founder-archive > summary::before {
  content: "+ "; color: var(--orange); font-weight: 600;
  display: inline-block; width: 1.2em;
}
.founder-archive[open] > summary::before { content: "− "; }
.founder-archive > summary:hover { color: var(--orange); }
.founder-archive > .founder-entry {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-2);
}

/* ─── Orange Pages section blocks ───────────────────────────── */
.op-blurb {
  margin-top: 2rem;          /* breathing room from the dept-blurb above */
  margin-bottom: 1.5rem;
  max-width: 56rem;
}
.op-blurb p {
  font-family: var(--serif); font-size: 16px;
  color: var(--ink-2); line-height: 1.6;
  margin-bottom: 0.85rem;
}
.op-blurb p:last-child { margin-bottom: 0; }
.op-blurb p b { color: var(--ink); font-weight: 500; }

/* First paragraph kicker — when the blurb opens with a bold question
   (e.g., "Remember the Yellow Pages?"), treat it as the editorial hook:
   large italic serif, hairline above, full breathing room around. */
.op-blurb > p:first-child {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-2);
}
.op-blurb > p:first-child b {
  display: block;
  font-family: var(--serif);
  font-style: italic; /* kept italic — the kicker question is the editorial hook */
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.op-submit p {
  font-family: var(--serif); font-style: normal;
  color: var(--ink-2); font-size: 14.5px;
  margin-top: 0.6rem; line-height: 1.55;
}
.op-submit-list {
  list-style: none;
  margin-top: 0.85rem;
  display: grid; gap: 4px;
  padding-left: 0;
}
.op-submit-list li {
  font-family: var(--serif); font-size: 14.5px;
  color: var(--ink-2);
  padding-left: 1.3em; position: relative;
  line-height: 1.55;
}
.op-submit-list li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--orange); font-family: var(--mono);
  font-size: 12px;
}

.op-criteria {
  margin-top: 1.5rem;
  padding: 14px 18px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--orange);
}
.op-criteria p {
  font-family: var(--serif); font-size: 14.5px;
  color: var(--ink-2); line-height: 1.55;
  margin-bottom: 0.6rem;
}
.op-criteria p:last-child { margin-bottom: 0; }
.op-criteria p b { color: var(--ink); font-weight: 500; }

/* ─── Department foot cross-link ────────────────────────────── */
/* Used at bottom of deep-view sections to send readers to fuller sources. */
.dept-foot {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-2);
  text-align: right;
}
.dept-foot a {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); font-weight: 600;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.dept-foot a:hover {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

/* ═════════════════════════════════════
   DEEP-VIEW SCAFFOLD
   ═════════════════════════════════════ */
[data-view] { display: block; }
[data-view][hidden] { display: none; }
.deep-back {
  position: sticky; top: 50px; z-index: 25;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
}
.deep-back .back {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--ink-2); padding-bottom: 2px;
  background: transparent; cursor: pointer;
}
.deep-back .back:hover { color: var(--orange); border-color: var(--orange); }
.deep-back .breadcrumb {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim);
}
.deep-back .breadcrumb b { color: var(--orange); font-weight: 600; }
.deep-back .jumps {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.deep-back .jumps button {
  background: transparent; border: 1px solid var(--rule);
  color: var(--ink); cursor: pointer;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px;
}
.deep-back .jumps button:hover { border-color: var(--orange); color: var(--orange); }
.deep-back .jumps button[aria-current="page"] {
  background: var(--orange); color: var(--paper); border-color: var(--orange);
}
[data-theme="evening"] .deep-back .jumps button[aria-current="page"] { color: #0e0c0a; }

/* View Transitions API */
@supports (view-transition-name: a) {
  [data-view] { view-transition-name: workshop-view; }
}

/* ═════════════════════════════════════
   FOOTER
   ═════════════════════════════════════ */
footer {
  border-top: 4px double var(--ink);
  padding: clamp(2rem, 4vw, 3rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
}
.colophon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.col-block h5 {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); font-weight: 600;
  margin-bottom: 10px;
}
.col-block ul { list-style: none; display: grid; gap: 4px; }
.col-block li {
  font-family: var(--serif); font-size: 14.5px;
  color: var(--ink-2); font-style: normal;
  line-height: 1.5;
}
.col-block li b { color: var(--ink); font-weight: 500; font-style: normal; }
.col-block a {
  color: var(--ink-2); border-bottom-color: var(--rule);
}
.col-block a:hover { color: var(--orange); border-color: var(--orange); }

.foot-social {
  padding: 1rem 0 1.5rem;
  display: flex; justify-content: center; align-items: center;
  gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim);
}
.foot-social__label { color: var(--dim); }
.foot-social__sep { color: var(--rule); }
.foot-social a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.foot-social a:hover { color: var(--ink); border-color: var(--orange); }

.foot-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-2);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim);
}
.foot-bottom .stamp {
  border: 1px solid var(--rule);
  padding: 4px 10px; color: var(--ink);
}
.foot-bottom .stamp em { color: var(--orange); font-style: normal; }
.foot-theme {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--dim);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.foot-theme:hover { border-color: var(--orange); color: var(--orange); }
.foot-theme .moon { display: none; }
[data-theme="evening"] .foot-theme .sun { display: none; }
[data-theme="evening"] .foot-theme .moon { display: inline; }

/* ═════════════════════════════════════
   MOBILE
   ═════════════════════════════════════ */
@media (max-width: 900px) {
  .ticker {
    grid-template-columns: auto repeat(3, 1fr) auto auto;
    overflow-x: auto;
  }
  .ticker .hide-narrow { display: none; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-side { border-left: 0; border-top: 1px solid var(--rule-2); padding-left: 0; padding-top: 1rem; }
  .toc-grid { grid-template-columns: repeat(2, 1fr); }
  .colophon { grid-template-columns: repeat(2, 1fr); }
  .map-row { grid-template-columns: 9rem minmax(0, 1fr); gap: 0.75rem; }
  .map-row .state { grid-column: 1 / -1; flex-direction: row; gap: 12px; }
}

@media (max-width: 600px) {
  .ticker { grid-template-columns: auto 1fr auto auto; }
  .ticker .hide-mob { display: none; }
  .newcomer .cta { margin-left: 0; }
  .mast { padding: 26px var(--gutter) 12px; }
  .mast h1 { font-size: clamp(34px, 11vw, 64px); }
  .toc-grid { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; gap: 0.6rem; }
  .item-meta { flex-direction: row; flex-wrap: wrap; gap: 8px 14px; padding-top: 0; }
  .research-item { grid-template-columns: 1fr; }
  .research-item .right { align-items: flex-start; flex-direction: row; gap: 12px; }
  .source { grid-template-columns: 1fr; gap: 0.5rem; }
  .map-row { grid-template-columns: 1fr; }
  .map-row .state { flex-direction: row; gap: 12px; flex-wrap: wrap; }
  .colophon { grid-template-columns: 1fr; gap: 1.5rem; }
  .deep-back { top: 0; }
  .deep-back .jumps { width: 100%; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  body { background: #fff; color: #000; background-image: none; }
  .ticker, .newcomer, .deep-back, .toc { display: none; }
  [data-view][hidden] { display: block !important; }
  a { color: #000; }
}
