/* itsdns.wtf — Built on the Hardcut design system.
   Tokens, typography, and cut-mark ornament mirror hardcut.io so the
   funnel reads as a coherent thing, not a paid placement. */

@layer base {
  :root {
    --bg: #f4f4f1;
    --surface: #fbfbf8;
    --surface-2: #ecebe5;
    --ink: #0c0c0c;
    --ink-2: #2c2c29;
    --muted: #5e5e5a;
    --muted-2: #a3a39d;
    --border: #e0dfd9;
    --border-strong: #c8c7c0;

    --accent: #88a48d;
    --accent-soft: #c8d6cb;
    --accent-deep: #3f5a44;
    --on-accent: #0c0c0c;
    --link-accent: var(--accent-deep);

    --danger: #9a3324;

    --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --pad-x: 32px;
    --pad-section: 128px;
    --max-w: 1100px;
    --max-w-prose: 680px;
    --radius: 24px;
    --radius-sm: 12px;
    --radius-pill: 9999px;

    color-scheme: light;
  }

  [data-theme="dark"] {
    --bg: #0e0f0e;
    --surface: #1a1c1a;
    --surface-2: #232520;
    --ink: #f4f4f1;
    --ink-2: #d2d3cb;
    --muted: #8d8e87;
    --muted-2: #7a7b75;
    --border: #2f322e;
    --border-strong: #44473f;

    --accent: #a4c0a9;
    --accent-soft: #2a3a2d;
    --accent-deep: #6a8a70;
    --on-accent: #0c0c0c;
    --link-accent: var(--accent);

    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
  font-kerning: normal;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}
[data-theme="dark"] :focus-visible { outline-color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(52px, 6.8vw, 96px); line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 24px; line-height: 1.22; letter-spacing: -0.02em; font-weight: 600; }
p  { margin: 0; text-wrap: pretty; }

/* — Eyebrow / mono micro-type — */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "calt";
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "calt";
}

.container-shell {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
}

/* — Cut-marks (signature ornament) — */
.cut-mark {
  position: absolute;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  pointer-events: none;
}
.cut-tl { top: 18px; left: 18px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; }
.cut-tr { top: 18px; right: 18px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
.cut-bl { bottom: 18px; left: 18px; border-bottom: 1px solid currentColor; border-left: 1px solid currentColor; }
.cut-br { bottom: 18px; right: 18px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; }

/* — Buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
  font-family: inherit;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover {
  background: color-mix(in oklab, var(--ink) 88%, var(--accent-deep) 12%);
  transform: translateY(-1px);
}
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* — Icon button (theme toggle) — */
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--surface); color: var(--ink); }

/* — Nav — */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.025em;
  cursor: pointer;
  background: none; border: 0; padding: 0; color: inherit;
}
.brand-stamp {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background-color .15s ease, color .15s ease;
  background: none; border: 0; cursor: pointer;
  font-family: inherit;
}
.nav-link:hover { background: var(--surface); color: var(--ink); }
.nav-link.is-active { color: var(--ink); background: var(--surface); }
.nav-right { display: flex; align-items: center; gap: 10px; }

@media (max-width: 720px) {
  .nav-inner { gap: 12px; padding: 0 20px; }
  .nav-links { display: none; }
  .brand-stamp { display: none; }
}

/* — Hero — */
.hero {
  padding: 112px 0 72px;
  position: relative;
  text-align: center;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  animation: reveal 600ms 0ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-deep) 18%, transparent);
}
.hero h1 {
  margin: 0 auto;
  max-width: 920px;
  animation: reveal 700ms 120ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-deep);
}
.hero-sub {
  max-width: 540px;
  margin: 24px auto 0;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-2);
  animation: reveal 700ms 260ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero-meta-band {
  margin: 32px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "calt";
  animation: reveal 700ms 380ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero-meta-band .sep {
  width: 4px;
  height: 4px;
  background: var(--muted-2);
  border-radius: 50%;
}
.diag-section { animation: reveal 700ms 500ms cubic-bezier(0.22, 1, 0.36, 1) backwards; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* — Viewport cut-marks (signature ornament, fixed at corners) — */
.viewport-cuts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.viewport-cuts .cut-mark {
  position: absolute;
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  opacity: 0.7;
}
.viewport-cuts .cut-tl { top: 14px; left: 14px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; }
.viewport-cuts .cut-tr { top: 14px; right: 14px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
.viewport-cuts .cut-bl { bottom: 14px; left: 14px; border-bottom: 1px solid currentColor; border-left: 1px solid currentColor; }
.viewport-cuts .cut-br { bottom: 14px; right: 14px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; }

/* — Card surface (dossier panel) — */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.card-head .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
}
.card-head .tag.solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.card-head .head-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.card-head .head-right { margin-left: auto; }
.card-body { padding: 22px 22px 18px; }
.card-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  flex-wrap: wrap;
}

/* — Diagnostic form — */
.diag-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 64px;
}
.diag-ta {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 132px;
  letter-spacing: -0.005em;
}
.diag-ta::placeholder { color: var(--muted); font-style: italic; }
.diag-counter { margin-left: auto; }

/* — Verdict — */
.verdict-section {
  max-width: 720px;
  margin: 0 auto 96px;
  padding: 0;
  animation: fadeUp 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* — Sage drench: the moment the verdict lands.
   Sage stays light in both themes, so ALL text/borders inside use fixed
   dark values (--on-accent / #0c0c0c). Never use --ink here — it flips
   light in dark mode and disappears against sage. */
.verdict-section .card.is-resolved {
  background: var(--accent);
  border-color: var(--accent);
  transition: background-color .35s ease, border-color .35s ease;
}
.verdict-section .card.is-resolved .card-head {
  background: color-mix(in srgb, var(--accent) 72%, #000 28%);
  border-bottom-color: color-mix(in srgb, var(--accent) 50%, #000 50%);
}
.verdict-section .card.is-resolved .card-head .head-title { color: var(--on-accent); }
.verdict-section .card.is-resolved .card-head .tag {
  color: var(--on-accent);
  border-color: rgba(12, 12, 12, 0.32);
}
.verdict-section .card.is-resolved .card-head .tag.solid {
  background: var(--on-accent);
  color: var(--accent);
  border-color: var(--on-accent);
}
.verdict-section .card.is-resolved .stamp-label { color: rgba(12, 12, 12, 0.7); }
.verdict-section .card.is-resolved .stamp-big { color: var(--on-accent); }
.verdict-section .card.is-resolved .dx-body { color: var(--on-accent); }
.verdict-section .card.is-resolved .dx-label {
  background: var(--on-accent);
  color: var(--accent);
}
.verdict-section .card.is-resolved .dx-label span { color: rgba(164, 192, 169, 0.75); }
.verdict-section .card.is-resolved .eng-toggle {
  border-color: rgba(12, 12, 12, 0.32);
  color: var(--on-accent);
}
.verdict-section .card.is-resolved .eng-toggle:hover {
  background: rgba(12, 12, 12, 0.08);
  border-color: var(--on-accent);
  color: var(--on-accent);
}
.verdict-section .card.is-resolved .eng-toggle.is-on {
  background: var(--on-accent);
  color: var(--accent);
  border-color: var(--on-accent);
}
.verdict-section .card.is-resolved .quote { color: var(--on-accent); }
.verdict-section .card.is-resolved .quote .q-mark { color: rgba(12, 12, 12, 0.6); }
.verdict-section .card.is-resolved .attrib .rule { background: rgba(12, 12, 12, 0.32); }
.verdict-section .card.is-resolved .attrib-name { color: var(--on-accent); }
.verdict-section .card.is-resolved .attrib-title { color: rgba(12, 12, 12, 0.7); }
.verdict-section .card.is-resolved .card-foot {
  background: color-mix(in srgb, var(--accent) 72%, #000 28%);
  border-top-color: color-mix(in srgb, var(--accent) 50%, #000 50%);
  color: rgba(12, 12, 12, 0.78);
}

.loading-lines {
  padding: 8px 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.loading-lines > div {
  opacity: 0;
  animation: typeIn 1.2s ease-out forwards;
}
.loading-lines > div:nth-child(1) { animation-delay: 0ms; }
.loading-lines > div:nth-child(2) { animation-delay: 320ms; }
.loading-lines > div:nth-child(3) { animation-delay: 640ms; }
@keyframes typeIn { to { opacity: 1; } }

.stamp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 20px;
}
.stamp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.stamp-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 7.6vw, 88px);
  line-height: 0.9;
  color: var(--accent-deep);
  letter-spacing: -0.05em;
}

.dx-body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 18px;
}
.dx-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.dx-label span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  opacity: 0.6;
  text-transform: uppercase;
}
.dx-label b {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eng-toggle {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.eng-toggle:hover { color: var(--ink); border-color: var(--ink); background: var(--surface-2); }
.eng-toggle.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.eng-box { font-family: var(--font-mono); }

blockquote.quote {
  margin: 22px 0 12px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
  text-wrap: balance;
  position: relative;
}
.quote .q-mark {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent-deep);
  font-weight: 700;
  margin-right: 4px;
}
.attrib {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 14px;
}
.attrib .rule { width: 36px; height: 1px; background: var(--border-strong); }
.attrib-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.attrib-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.share-wrap {
  margin-left: auto;
  position: relative;
  display: inline-flex;
}
.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.share-btn svg { width: 15px; height: 15px; }
.share-btn:hover,
.share-btn.is-open {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
  background: var(--accent-soft);
}
[data-theme="dark"] .share-btn:hover,
[data-theme="dark"] .share-btn.is-open {
  color: var(--ink);
}
.verdict-section .card.is-resolved .share-btn {
  background: transparent;
  border-color: color-mix(in srgb, var(--ink) 25%, transparent);
  color: rgba(12, 12, 12, 0.85);
}
.verdict-section .card.is-resolved .share-btn:hover,
.verdict-section .card.is-resolved .share-btn.is-open {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-color: color-mix(in srgb, var(--ink) 45%, transparent);
  color: var(--on-accent);
}

.share-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 100;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: sharePopIn .12s ease-out;
  text-transform: none;
  letter-spacing: normal;
}
[data-theme="dark"] .share-pop {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}
@keyframes sharePopIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.share-pop button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: normal;
  text-transform: none;
  transition: background-color .12s ease, color .12s ease;
}
.share-pop button:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
[data-theme="dark"] .share-pop button:hover { color: var(--ink); }
.share-pop button svg { width: 16px; height: 16px; flex-shrink: 0; }
.share-pop hr { border: 0; border-top: 1px solid var(--border); margin: 4px 2px; }
.share-pop .sp-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 8px 12px 4px;
}

.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s ease, transform .2s ease;
}
.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.share-toast svg { width: 14px; height: 14px; color: var(--accent); }

/* — Example chips (click-to-fill the diagnostic) — */
.example-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 4px;
  margin-top: 10px;
  border-top: 1px dashed var(--border);
}
.example-chips .eyebrow {
  margin-right: 4px;
  color: var(--muted);
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover {
  background: var(--surface-2);
  border-color: var(--accent-deep);
  color: var(--ink);
}

/* — Sage toast (refined easter-egg badge) — */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  z-index: 5000;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--ink) 30%);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-deep) 30%, transparent);
  animation: toastIn 420ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* — Hall of Fame — */
.hall-hero {
  max-width: 820px;
  margin: 0 auto 48px;
  padding: 80px 0 0;
  text-align: center;
}
.hall-hero h1 em {
  font-style: normal;
  color: var(--accent-deep);
}
.hall-hero p {
  margin: 22px auto 0;
  max-width: 540px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.55;
}
.hall-grid {
  max-width: var(--max-w);
  margin: 0 auto 96px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.incident {
  position: relative;
  padding: 28px 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s ease, transform .15s ease;
  overflow: hidden;
}
.incident::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 2px;
  width: 0;
  background: var(--accent-deep);
  transition: width .45s cubic-bezier(0.22, 1, 0.36, 1);
}
.incident:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.incident:hover::before { width: 100%; }
.inc-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.inc-year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  margin-bottom: 6px;
}
.inc-org {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 18px;
}
.inc-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.inc-meta > div { display: flex; flex-direction: column; gap: 4px; }
.inc-meta span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.inc-meta b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.inc-meta .verdict-dns { color: var(--accent-deep); }
.inc-summary {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 720px) {
  .hall-grid { grid-template-columns: 1fr; }
}

/* — Lore essay — */
.essay {
  max-width: var(--max-w-prose);
  margin: 80px auto 96px;
  padding: 0 var(--pad-x);
}
.essay-head {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.essay h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  margin-bottom: 32px;
}
.essay h1 em {
  font-style: normal;
  color: var(--accent-deep);
}
.essay-body { font-size: 17.5px; line-height: 1.65; color: var(--ink); }
.essay-body p { margin: 0 0 20px; }
.essay-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 78px;
  line-height: 0.82;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--accent-deep);
  letter-spacing: -0.04em;
}
.essay-body em { font-style: italic; color: var(--ink-2); }
.essay-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
  letter-spacing: -0.02em;
}
.essay-body ol {
  padding-left: 24px;
  margin: 0 0 24px;
}
.essay-body ol li { margin-bottom: 8px; }
.sig {
  font-style: italic;
  color: var(--muted);
  margin-top: 36px !important;
}

/* — Footer = standalone Hardcut endcap — */
.footer {
  margin-top: auto;
  padding: 80px 0 80px;
  background: var(--bg);
}

.funnel-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.funnel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 55%),
    linear-gradient(135deg, transparent 0%, color-mix(in srgb, var(--accent) 6%, transparent) 100%);
  pointer-events: none;
}
.funnel-text { flex: 1; position: relative; }
.funnel-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.funnel-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}
.funnel-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 8px;
  max-width: 520px;
  text-wrap: balance;
}
.funnel-sub {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
  max-width: 480px;
  line-height: 1.55;
}
.funnel-card .btn { position: relative; flex-shrink: 0; }

@media (max-width: 840px) {
  .footer { padding: 56px 0 56px; }
  .funnel-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 28px;
    gap: 24px;
  }
  .funnel-head { font-size: 22px; }
}

/* — Reduced motion — */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .incident:hover { transform: none; }
  .verdict-section,
  .hero-meta, .hero h1, .hero-sub, .hero-meta-band, .diag-section,
  .toast { animation: none; }
  .loading-lines > div { animation: none; opacity: 1; }
  .incident::before { transition: none; }
}

/* — Touch targets — */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 44px; padding-top: 11px; padding-bottom: 11px; }
  .icon-btn { width: 44px; height: 44px; }
  .nav-link { min-height: 44px; padding-top: 12px; padding-bottom: 12px; }
}
