:root {
  --paper: #FAFAF6;
  --ink: #1A1D1E;
  --verified: #1B4B66;
  --miss: #9C6B2E;
  --muted: #6E7A80;
  --line: color-mix(in srgb, var(--ink) 22%, var(--paper));
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --radius: 2px;
  --space: 0.5rem;
  --measure: 70ch;

  /* W2 visual-overhaul tokens (2026-08-29, Rocky ruling — depth
     and contrast, decorative chrome ONLY: never applied to a
     HIT/MISS/verified data marker, never a differential between
     the two donation doors). Rust hue extends the locked
     cta-color-proposal family below; ink gradients stay within
     the paper/ink pair already in this file. */
  --ink-2: #2B2F31;
  --ink-3: #14181A;
  --paper-deep: #F1EEE3;
  --rust: #A93A17;
  --rust-deep: #6E240A;

  --surface-ink-gradient: linear-gradient(
    165deg,
    var(--ink-3) 0%,
    var(--ink) 55%,
    var(--ink-2) 100%
  );
  --surface-paper-gradient: linear-gradient(
    180deg,
    var(--paper) 0%,
    var(--paper-deep) 100%
  );
  --rule-rust-gradient: linear-gradient(
    90deg,
    var(--rust) 0%,
    var(--rust-deep) 100%
  );

  --shadow-card: 0 1px 2px rgba(20, 24, 26, 0.08),
    0 10px 28px rgba(20, 24, 26, 0.10);
  --shadow-card-deep: 0 2px 4px rgba(20, 24, 26, 0.14),
    0 18px 44px rgba(20, 24, 26, 0.16);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: var(--verified);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--miss);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: var(--space);
  left: var(--space);
  padding: calc(var(--space) * 1.5);
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.surface {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 1.25rem max((100% - 76rem) / 2 + 1rem, 1rem);
  color: var(--paper);
  background: var(--surface-ink-gradient);
  border-bottom: 3px solid transparent;
  border-image: var(--rule-rust-gradient) 1;
  box-shadow: var(--shadow-card);
}

.wordmark {
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-size: 0.875rem;
}

.site-header nav a {
  color: color-mix(in srgb, var(--paper) 88%, var(--rust) 12%);
}

.site-header nav a:hover {
  color: var(--paper);
}

.surface {
  padding-block: clamp(2.5rem, 8vw, 7rem);
}

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--ink);
  font-size: 0.875rem;
}

h1,
h2,
h3 {
  margin-block: 0 0.65em;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 6.5rem);
}

h2 {
  font-size: clamp(1.65rem, 4vw, 3rem);
}

p,
ul,
ol,
dl {
  margin-block: 0 1em;
}

.deck-copy {
  max-width: var(--measure);
}

.deck-copy > :last-child {
  margin-bottom: 0;
}

.deck-copy,
.deck-copy * {
  overflow-wrap: anywhere;
}

.eyebrow,
.rule-number,
.record-label,
.proof-module,
.proof-rail,
.definition-list,
.verifier,
.guestbook-entry,
.class-three {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow,
.rule-number,
.record-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-intro {
  margin-bottom: clamp(3rem, 8vw, 7rem);
}

.disclosure,
.accusation-audit,
.proof-module,
.checkout-block,
.proof-rail,
.email-capture,
.methodology,
.verifier,
.guestbook-rules {
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--surface-paper-gradient);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.disclosure {
  margin-bottom: 1rem;
}

.accusation-audit {
  border-color: var(--muted);
  box-shadow: none;
  background: var(--paper);
}

.proof-module {
  position: relative;
  box-shadow: var(--shadow-card-deep);
}

.proof-module::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--rule-rust-gradient);
  border-radius: var(--radius) var(--radius) 0 0;
}

.opening-grid,
.sales-layout {
  display: grid;
  gap: 2rem;
}

.proof-module {
  align-self: start;
}

.proof-module h1 {
  font-family: var(--mono);
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.verify-inline {
  margin-top: 1.5rem;
  padding-top: 1rem;
  color: var(--verified);
  border-top: 1px solid var(--verified);
}

.scroll-stop {
  margin-top: max(18vh, 7rem);
}

.email-capture {
  max-width: 50rem;
  margin-inline: auto;
}

form {
  margin-top: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.field-row {
  display: grid;
  gap: 0.6rem;
}

input,
textarea,
button {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font: inherit;
}

input,
textarea {
  padding: 0.85rem;
  color: var(--ink);
  background: var(--paper);
}

textarea {
  resize: vertical;
  font-family: var(--mono);
  font-size: 0.82rem;
  white-space: pre;
  overflow: auto;
}

button {
  padding: 0.85rem 1.1rem;
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: var(--verified);
}

.parity-grid,
.door-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.record-card,
.door {
  min-width: 0;
  padding: 1.25rem;
  background: var(--surface-paper-gradient);
  border: 2px solid;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.record-card:hover,
.door:hover {
  box-shadow: var(--shadow-card-deep);
  transform: translateY(-2px);
}

.record-hit {
  border-color: var(--verified);
}

.record-miss {
  border-color: var(--miss);
}

.record-hit,
.record-miss {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  justify-content: flex-start;
}

.sales-opening {
  max-width: 62rem;
  margin-bottom: 4rem;
}

.sales-lead {
  margin-block: 3rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.sales-narrative {
  min-width: 0;
}

.sales-narrative > section + section {
  margin-top: 4rem;
}

.proof-rail {
  align-self: start;
}

.checkout-block {
  border-width: 2px;
}

.rule-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-bottom: 5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.rule {
  min-height: min(75vh, 45rem);
  padding-block: clamp(3rem, 9vw, 8rem);
  border-top: 1px solid var(--ink);
}

.rule h2 {
  max-width: 15ch;
  font-family: var(--mono);
  font-size: clamp(2rem, 7vw, 4.5rem);
  letter-spacing: -0.055em;
}

.rule .deck-copy {
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.donation-module {
  margin-top: 5rem;
}

.door-grid {
  align-items: stretch;
}

.door {
  border-color: var(--ink);
}

.ladder-audit {
  max-width: var(--measure);
  margin-bottom: 6rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
}

.milestone-history,
.thresholds,
.rule-statement {
  margin-top: 6rem;
}

.thresholds {
  padding-block: 4rem;
  border-block: 1px solid var(--ink);
}

.thresholds .deck-copy {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.rule-statement {
  font-family: var(--mono);
}

.definition-list {
  display: grid;
  gap: 1px;
  margin-block: 2rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.definition-list > div {
  min-width: 0;
  padding: 1rem;
  background: var(--paper);
}

.definition-list dt {
  color: var(--ink);
  font-weight: 600;
}

.definition-list dd {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.methodology + .verifier {
  margin-top: 2rem;
}

.verification-result {
  display: block;
  min-height: 5rem;
  margin-top: 1rem;
  padding: 1rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  border-left: 4px solid var(--muted);
}

.verification-result.is-confirmed {
  color: var(--verified);
  border-color: var(--verified);
}

.verification-result.is-failed {
  color: var(--miss);
  border-color: var(--miss);
}

.guestbook-frame {
  max-width: var(--measure);
  margin-bottom: 4rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 3.8rem);
  line-height: 1.08;
}

.guestbook-entries {
  margin-top: 3rem;
}

.guestbook-entry {
  padding-block: 1.5rem;
  border-block: 1px solid var(--ink);
}

.class-three {
  color: var(--ink);
  font-size: 0.8rem;
}

/* W2 visual-overhaul (2026-08-29): hero band, section rhythm,
   and the home stakes module. Decorative surface treatment
   only — no data-classification color is touched. */

.hero-frame {
  padding: clamp(1.75rem, 5vw, 3.5rem);
  color: var(--paper);
  background: var(--surface-ink-gradient);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-deep);
}

.hero-frame .deck-copy h1,
.hero-frame h1 {
  color: var(--paper);
}

.hero-frame a {
  color: color-mix(in srgb, var(--paper) 78%, var(--rust) 22%);
}

.hero-caveat {
  margin-top: 1rem;
  color: #D8D5C8;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.opening-copy {
  display: grid;
  gap: 1.5rem;
}

/* Section rhythm: alternate paper depth so the page reads as
   bands rather than one flat scroll. */
.surface-home > .opening-grid {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.home-stakes {
  position: relative;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface-paper-gradient);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-deep);
}

.home-stakes::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--rule-rust-gradient);
  border-radius: var(--radius) var(--radius) 0 0;
}

.home-stakes .page-intro {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.home-stakes .milestone-history {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.home-stakes .ladder-audit {
  margin-bottom: 2rem;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
}

.email-capture {
  background: var(--surface-paper-gradient);
}

@media (min-width: 42rem) {
  .field-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .field-row button {
    width: auto;
  }

  .parity-grid,
  .door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .definition-list > div {
    display: grid;
    grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
    gap: 2rem;
  }

  .definition-list dd {
    margin-top: 0;
  }
}

@media (min-width: 58rem) {
  .opening-grid {
    grid-template-columns: minmax(0, 3fr) minmax(20rem, 2fr);
    align-items: start;
  }

  .sales-layout {
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 0.8fr);
  }

  .proof-rail {
    position: sticky;
    top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* CTA family — cta-color-proposal-2026-08-29 (recommended option).
   PREVIEW-STAGED: pending Hughes/Voss pass + art-direction lock
   amendment before deploy. No existing token modified or reused. */
:root {
  --cta-flat-fallback: #A93A17;
  --cta-gradient: linear-gradient(165deg, #C2481F 0%, #96330E 100%);
  --cta-gradient-hover: linear-gradient(165deg, #AA3D1B 0%, #832C0C 100%);
  --cta-gradient-active: linear-gradient(165deg, #8F3417 0%, #6E240A 100%);
  --cta-text: var(--paper);
  --cta-focus-ring: var(--ink);
}

.cta-buy {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  color: var(--cta-text);
  background: var(--cta-flat-fallback);
  background: var(--cta-gradient);
}

.cta-buy:hover {
  background: var(--cta-gradient-hover);
  text-decoration: none;
}

.cta-buy:active {
  background: var(--cta-gradient-active);
}

.cta-buy:focus-visible {
  outline: 3px solid var(--cta-focus-ring);
  outline-offset: 3px;
}

@media (forced-colors: active) {
  .cta-buy,
  .cta-buy:hover,
  .cta-buy:active {
    background: CanvasText;
    color: Canvas;
    forced-color-adjust: none;
  }
}

.record-pet-placement { color: var(--ink); }

.record-pet-placement--home {
  display: flex;
  justify-content: flex-end;
  margin-top: calc(var(--space) * 2);
  padding-inline: var(--space);
}

.record-pet { width: calc(var(--space) * 12); height: auto; overflow: visible; }

.record-pet__base,
.record-pet__milestone {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: bevel;
  vector-effect: non-scaling-stroke;
}

.record-pet__active {
  fill: var(--rust);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.55s ease;
}

.record-pet__milestone {
  opacity: 0;
  transform: scale(0.96);
  transform-box: fill-box;
  transform-origin: bottom center;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.record-pet__flag { fill: var(--rust); stroke: var(--rust-deep); }

.record-pet--ledger-active .record-pet__active,
.record-pet--milestone-1000 .record-pet__active {
  opacity: 1;
  animation: record-pet-pulse 5s ease-in-out infinite;
}

.record-pet--milestone-1000 .record-pet__milestone {
  opacity: 1;
  transform: scale(1);
  animation: record-pet-reveal 0.55s ease-out both;
}

.threshold-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 calc(var(--space) * 2);
}

.threshold-record > .deck-copy { display: contents; }

.threshold-record > .deck-copy > * {
  grid-column: 1;
  max-width: var(--measure);
}

.record-pet-placement--ladder {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
}

@keyframes record-pet-pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@keyframes record-pet-reveal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .record-pet__active,
  .record-pet__milestone {
    animation: none;
    transition: none;
  }
}
