/* ============================================================
   ITZA Diary
   css/style.css
   ------------------------------------------------------------
   Palette rule: gold is reserved. It marks the product word and
   the sealed state - nothing decorative is gold.
   Type rule: all text is black. No grey text anywhere.
   ============================================================ */

/* ---------- 1. Tokens ---------- */

:root {
  --ink:        #000000;
  --paper:      #fbfaf7;
  --slab:       #f2eee6;
  --navy:       #0b2a4a;
  --gold:       #f5c711;
  --gold-deep:  #b8930a;
  --blue:       #0c7ffb;
  --blue-deep:  #0a5fbd;

  /* Wordmark - house standard across every ITZA property. ITZA runs straight
     into the product word with no space. ITZA is the lighter weight in
     corporate blue; the product word is bold in corporate gold. On the light
     paper the gold is deepened to clear the 3:1 contrast floor - brand gold
     #f5c711 on near-white is illegible. Dark-context values are set below,
     scoped to the navy bands and the footer. */
  --wm-blue: #0c7ffb;
  --wm-gold: #ad8009;
  --rule:       #ded8cb;
  --rule-soft:  #ebe6db;

  --serif-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --serif-body:    "Literata", "Iowan Old Style", Georgia, serif;
  --mono:          "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --measure: 34rem;
  --shell: 76rem;
  --rail: 9.5rem;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: 2.75rem;
  --step-5: 4rem;
  --step-6: 5.5rem;

  --pad-y: 6.5rem;
}

/* ---------- 2. Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: var(--step-0);
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

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

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

/* ---------- 3. Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.07;
  letter-spacing: -0.021em;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

h1 { font-size: var(--step-5); font-weight: 700; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.014em; }
h4 { font-size: var(--step-1); letter-spacing: -0.008em; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 38rem;
}

.slug {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin: 0 0 1.1rem;
}

.slug-gold { color: var(--gold-deep); }

.figure-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ink);
  max-width: 32rem;
}

/* ---------- 4. Shell and sections ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.75rem;
}

.band { padding-block: var(--pad-y); }
.band-slab { background: var(--slab); }
.band-navy { background: var(--navy); }
.band-tight { padding-block: 4rem; }

.band-navy,
.band-navy h1,
.band-navy h2,
.band-navy h3,
.band-navy p { color: var(--paper); }
.band-navy .slug { color: var(--gold); }
.band-navy a { color: var(--gold); }

.rule-row {
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* Rail layout: mono slug in a left column, prose on the right */
.rail {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.rail > .slug { margin-top: 0.55rem; }


/* ---------- 4b. Utility classes (replaces all inline style) ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Spacing driven by adjacency rather than one-off inline margins */
.rail + .claims,
.rail + .steps,
.rail + .split,
.rail + .tabular { margin-top: 3.2rem; }

.card .tag + h3 { margin-top: 0.9rem; }

/* Images not yet supplied hide themselves rather than showing a broken icon */
.is-missing { display: none; }

.note-spaced { margin-top: 1rem; }

.hero-compact { padding-bottom: 2.5rem; }
.cta-trailing { margin-top: 4rem; }

/* Hierarchy without colour: all text is black, so weight, size, case and
   letterspacing carry the emphasis instead. */

/* ---------- 5. Header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  height: 30px;
  width: auto;
  /* The mark is a wide-based pyramid, so it optically sits low against
     cap-height text. This nudges it back onto the baseline. */
  margin-bottom: -2px;
}
.brand-word {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
  font-variation-settings: "WONK" 1;
}

/* The wordmark lockup. Structure is the house standard; the serif face is
   ITZA Diary's own. The product name is one word, no gap, no break. */
.wm { white-space: nowrap; }
.wm-itza { color: var(--wm-blue); font-weight: 600; }
.wm-prod { color: var(--wm-gold); font-weight: 800; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { border-bottom-color: var(--gold); color: var(--ink); }
.nav-list a.is-current { border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  padding: 0.5rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- 6. Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { background: var(--navy); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* ---------- 7. Hero ---------- */

.hero { padding-block: 5.5rem 4.5rem; }

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.1rem);
  max-width: 17ch;
  margin-bottom: 0.42em;
}
.hero h1 .line-two { display: block; }

.hero .lede { max-width: 41rem; font-size: clamp(1.1rem, 1.6vw, 1.33rem); }

.hero-reveal { opacity: 0; transform: translateY(14px); animation: rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero-reveal-1 { animation-delay: 0.05s; }
.hero-reveal-2 { animation-delay: 0.22s; }
.hero-reveal-3 { animation-delay: 0.38s; }
.hero-reveal-4 { animation-delay: 0.54s; }

@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- 8. Signature: the provenance console ---------- */

.console {
  border: 1px solid var(--rule);
  background: #ffffff;
  margin-top: 3.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
}

.console-head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  background: var(--slab);
}
.console-head .slug { margin: 0; }

.console-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
.status-live .status-dot { animation: blink 1.15s steps(2, start) infinite; }

@keyframes blink { 50% { opacity: 0.2; } }

.console-page {
  padding: 2rem 1.9rem 2.2rem;
  border-right: 1px solid var(--rule);
  min-height: 21rem;
}

.console-title {
  font-family: var(--serif-display);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  font-variation-settings: "WONK" 1;
  margin: 0 0 0.15em;
}
.console-byline {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule-soft);
}

.console-body {
  font-size: 1.02rem;
  line-height: 1.72;
  margin: 0;
  max-width: none;
  min-height: 11.5rem;
  white-space: pre-wrap;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.06em;
  background: var(--ink);
  vertical-align: -0.16em;
  margin-left: 1px;
  animation: caret 1s steps(2, start) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.pasted { background: rgba(12, 127, 251, 0.13); }

.console-meter { padding: 2rem 1.7rem 2.2rem; }

.meter-chart { width: 100%; height: auto; display: block; margin-bottom: 1.5rem; }

.meter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1rem 1rem;
  border-top: 1px solid var(--rule-soft);
  padding-top: 1.15rem;
}
.meter-cell { padding-block: 0.42rem; }
.meter-key {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
}
.meter-val {
  font-family: var(--mono);
  font-size: 1.16rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.meter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-soft);
}
.legend-item {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}
.legend-swatch { width: 10px; height: 10px; display: inline-block; }
.sw-write { background: var(--navy); }
.sw-session { background: var(--gold); }
.sw-paste { background: var(--blue); }

.console-foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding: 1rem 1.4rem;
  background: var(--slab);
}
.console-foot .figure-note { max-width: 62rem; }


/* ---------- 8b. Network delivery panel (nodes page) ---------- */

.network-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 1.4rem;
}
.network-map { width: 100%; }
.network-map svg { width: 100%; height: auto; display: block; }

.network-heading {
  font-size: 1.16rem;
  margin-bottom: 0.6rem;
}
.network-copy {
  font-size: 0.95rem;
  max-width: none;
  margin-bottom: 1.5rem;
}

.node-dot { transition: fill 0.35s ease, r 0.35s ease; }
.node-link { transition: opacity 0.35s ease; }

/* ---------- 9. Claim grid ---------- */

.claims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.claim {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2.1rem 1.7rem 2.4rem;
  background: transparent;
}
.claim h3 { margin-bottom: 0.55rem; }
.claim p { font-size: 0.97rem; max-width: none; }

/* ---------- 10. Steps (a real sequence, so numbered) ---------- */

.steps { counter-reset: step; border-top: 1px solid var(--rule); }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: 2.6rem;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  padding-top: 0.35rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { max-width: 44rem; }

/* ---------- 11. Split panels ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
}
.split-panel {
  padding: 2.9rem 2.3rem 3.1rem;
  border-right: 1px solid var(--rule);
}
.split-panel:last-child { border-right: 0; }
.split-panel h2 { font-size: var(--step-3); }
.split-panel ul { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.split-panel li {
  padding: 0.62rem 0 0.62rem 1.5rem;
  border-top: 1px solid var(--rule-soft);
  position: relative;
  font-size: 0.98rem;
}
.split-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.32rem;
  width: 8px;
  height: 1px;
  background: var(--gold-deep);
}

/* ---------- 12. Comparison table ---------- */

.tabular {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  margin-top: 2rem;
}
.tabular caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 0.9rem;
}
.tabular th, .tabular td {
  text-align: left;
  padding: 0.95rem 1.1rem 0.95rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink);
}
.tabular thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
}
.tabular tbody th { font-family: var(--serif-body); font-weight: 600; width: 34%; }
.mark-yes { color: var(--ink); font-family: var(--mono); font-size: 0.8rem; }
.mark-no  { color: var(--ink); font-family: var(--mono); font-size: 0.8rem; }

/* ---------- 13. Cards and news ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: 1.6rem;
  margin-top: 2.6rem;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: #ffffff;
  padding: 1.7rem 1.5rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.14s ease, transform 0.14s ease;
}
.card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.94rem; max-width: none; flex: 1; }
.card-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-bottom: 0.85rem;
}
.card-more {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1.3rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink);
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--slab);
}
.tag-product { border-color: var(--gold-deep); }
.tag-protocol { border-color: var(--blue); }
.tag-company { border-color: var(--ink); }

/* News page */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.filter-btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.entry {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: 3rem;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 6rem;
}
.entry-meta { padding-top: 0.4rem; }
.entry-date {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--ink);
  display: block;
  margin-bottom: 0.7rem;
}
.entry-body h2 { font-size: var(--step-3); margin-bottom: 0.55rem; }
.entry-body p { max-width: 44rem; }
.entry-body ul { max-width: 44rem; padding-left: 1.15rem; margin: 0 0 1.15em; }
.entry-body li { margin-bottom: 0.4rem; }
.entry[hidden] { display: none; }

/* ---------- 14. Prose blocks ---------- */

.prose h2 { margin-top: 3.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2.2rem; }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.2rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.45rem; }

.callout {
  border-left: 3px solid var(--gold);
  padding: 0.3rem 0 0.3rem 1.4rem;
  margin: 2rem 0;
}
.callout p { font-size: 1.05rem; }

.limit-list { list-style: none; padding: 0; margin: 2rem 0 0; max-width: 46rem; }
.limit-list li {
  border-top: 1px solid var(--rule);
  padding: 1.2rem 0;
}
.limit-list strong { display: block; font-family: var(--serif-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem; }

/* ---------- 15. Figure frames ---------- */

.frame {
  border: 1px solid var(--rule);
  background: #ffffff;
  padding: 0.8rem;
  margin-top: 2.4rem;
}
.frame img { width: 100%; height: auto; }
.frame-caption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 0.9rem 0.3rem 0.2rem;
  max-width: none;
}
.frame-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--slab);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- 16. CTA ---------- */

.cta-band { text-align: left; }
.cta-band h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 20ch; }
.cta-band p { max-width: 38rem; }

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.2rem;
  max-width: 34rem;
}
.signup input[type="email"] {
  flex: 1 1 16rem;
  font-family: var(--mono);
  font-size: 0.86rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}
.signup input[type="email"]::placeholder { color: var(--ink); opacity: 1; }
.signup-note {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  margin-top: 1rem;
  max-width: 34rem;
}

/* ---------- 17. Footer ---------- */

.colophon {
  background: var(--navy);
  color: var(--paper);
  padding-block: 4.5rem 2.5rem;
}
.colophon a { color: var(--paper); text-decoration: none; }
.colophon a:hover { color: var(--gold); }

.colophon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(9rem, 1fr));
  gap: 2.6rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(251, 250, 247, 0.22);
}
.colophon h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 0.62rem; font-size: 0.92rem; }

.colophon-brand p {
  font-size: 0.95rem;
  max-width: 22rem;
  color: var(--paper);
}
.brand-footer { margin-bottom: 1.15rem; }
.colophon .brand img { height: 34px; }

/* Wordmark on dark: the brand gold reads cleanly on navy, so use it at full
   strength, with a lighter blue to match. */
.band-navy .wm-itza,
.colophon .wm-itza { color: #4d9bff; }
.band-navy .wm-prod,
.colophon .wm-prod { color: #f5c711; }

.social-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.5rem; }
.social-link {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(251, 250, 247, 0.3);
}
.social-link:hover { border-color: var(--gold); }

.colophon-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
}
.colophon-base p {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--paper);
  max-width: 46rem;
  margin: 0;
}

/* ---------- 18. Responsive ---------- */

@media (max-width: 60rem) {
  :root { --pad-y: 4.5rem; --rail: 6.5rem; }
  .console { grid-template-columns: minmax(0, 1fr); }
  .console-page { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 0; }
  .split-panel { border-right: 0; border-bottom: 1px solid var(--rule); }
  .split-panel:last-child { border-bottom: 0; }
}

@media (max-width: 48rem) {
  :root { --rail: 0; }
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1.75rem 1.25rem;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; width: 100%; padding-block: 0.85rem; border-bottom: 1px solid var(--rule-soft); }
  .nav-cta { margin-top: 0.9rem; }

  .rail, .step, .entry { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .step::before { padding-top: 0; }
  .hero { padding-block: 3.5rem 3rem; }
  .console-page, .console-meter { padding: 1.5rem 1.25rem; }
  .meter-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 19. Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-reveal { opacity: 1; transform: none; }
}

/* ---------- 20. Print ---------- */

@media print {
  .masthead, .console-meter, .signup, .nav-toggle { display: none; }
  body { background: #ffffff; }
}
