/* =========================================================
   Vaporwave Text Generator — handcrafted design system
   Identity: "Closed Mall at Midnight" — CRT warmth, ticket
   stubs, mono readouts. Not a SaaS gradient template.
   ========================================================= */

:root {
  --void: #07060c;
  --ink: #0e0c16;
  --panel: #12101c;
  --panel-2: #181524;
  --line: rgba(232, 220, 200, 0.12);
  --line-strong: rgba(232, 220, 200, 0.22);
  --cream: #ebe4d6;
  --cream-dim: #b8b0a0;
  --mute: #7d7688;
  --hot: #ff3d8a;
  --hot-dim: #c42a68;
  --mint: #5ef0c8;
  --mint-dim: #2a9f84;
  --amber: #f0c15e;
  --glow-hot: 0 0 40px rgba(255, 61, 138, 0.18);
  --glow-mint: 0 0 32px rgba(94, 240, 200, 0.12);
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", "Consolas", monospace;
  --radius: 2px;
  --max: 1120px;
  --measure: 38rem;
  --header-h: 58px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 140ms;
  --med: 280ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle CRT grain + horizon — pure CSS, zero image weight */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255, 61, 138, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(94, 240, 200, 0.05), transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(7, 6, 12, 0.4) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
}

a {
  color: var(--mint);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--fast) var(--ease);
}
a:hover { color: var(--cream); }
a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--hot);
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 0; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 6, 12, 0.82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--cream);
}
.brand:hover { color: var(--cream); text-decoration: none; }

.brand-mark {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hot);
  border: 1px solid var(--hot);
  padding: 0.2rem 0.4rem;
  line-height: 1.2;
}

.brand-name {
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1rem;
}
.brand-name span {
  color: var(--mute);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav a:hover { color: var(--cream); }
.nav a[aria-current="page"] { color: var(--mint); }

/* ---------- Hero / stage ---------- */
.stage {
  padding: 2.75rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.stage-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.stage-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.stage-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 860px) {
  .stage-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.stage h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.2vw, 3.65rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--cream);
}

.stage h1 em {
  font-style: normal;
  color: var(--hot);
}

.lede {
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--cream-dim);
  line-height: 1.7;
}

.hero-aside {
  border-left: 2px solid var(--hot);
  padding: 0.25rem 0 0.25rem 1.15rem;
}

.hero-aside p {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--mint);
  letter-spacing: 0.02em;
  line-height: 1.5;
  word-break: break-word;
}

.hero-aside .caption {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--mute);
  letter-spacing: 0;
}

/* ---------- Generator shell ---------- */
.tool {
  padding: 2rem 0 2.5rem;
}

.tool-shell {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--glow-hot);
  position: relative;
}

.tool-shell::before,
.tool-shell::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--mint);
  pointer-events: none;
}
.tool-shell::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}
.tool-shell::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.tool-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.tool-bar strong {
  color: var(--cream-dim);
  font-weight: 500;
}

.kbd {
  display: inline-block;
  border: 1px solid var(--line-strong);
  padding: 0.1rem 0.35rem;
  color: var(--cream-dim);
  font-size: 0.68rem;
}

.tool-body { padding: 1.15rem 1rem 1.25rem; }

@media (min-width: 640px) {
  .tool-body { padding: 1.35rem 1.35rem 1.5rem; }
}

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  font-family: var(--font-mono);
}

#char-count { color: var(--cream-dim); }

.input-area {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.5;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  transition: border-color var(--fast) var(--ease), box-shadow var(--med) var(--ease);
}
.input-area::placeholder { color: var(--mute); }
.input-area:hover { border-color: rgba(232, 220, 200, 0.32); }
.input-area:focus {
  outline: none;
  border-color: var(--hot);
  box-shadow: 0 0 0 3px rgba(255, 61, 138, 0.15);
}

.live-strip {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(94, 240, 200, 0.04);
  border: 1px dashed rgba(94, 240, 200, 0.28);
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--mint);
  word-break: break-word;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  letter-spacing: 0.04em;
}

.live-strip span {
  color: var(--mute);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
  align-items: center;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition:
    background var(--fast) var(--ease),
    color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--hot);
  color: #fff;
  border-color: var(--hot);
}
.btn-primary:hover {
  background: var(--hot-dim);
  border-color: var(--hot-dim);
  box-shadow: var(--glow-hot);
}

.btn-ghost {
  background: transparent;
  color: var(--cream-dim);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  color: var(--cream);
  border-color: var(--cream-dim);
  background: rgba(232, 220, 200, 0.04);
}

.btn-mint {
  background: transparent;
  color: var(--mint);
  border-color: rgba(94, 240, 200, 0.35);
}
.btn-mint:hover {
  background: rgba(94, 240, 200, 0.08);
  border-color: var(--mint);
}

.btn.copied {
  background: var(--mint-dim) !important;
  border-color: var(--mint) !important;
  color: #fff !important;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.25rem 0 0.9rem;
  align-items: center;
}

.chip {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  border-radius: 999px;
  transition: all var(--fast) var(--ease);
}
.chip:hover {
  border-color: var(--cream-dim);
  color: var(--cream);
}
.chip.active {
  background: var(--cream);
  color: var(--void);
  border-color: var(--cream);
}
.chip:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--ink);
}

.result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background var(--fast) var(--ease);
  animation: rowIn 0.35s var(--ease) both;
}
.result-row:last-child { border-bottom: 0; }
.result-row:hover { background: rgba(255, 61, 138, 0.04); }

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

@media (min-width: 720px) {
  .result-row {
    grid-template-columns: minmax(140px, 180px) 1fr auto;
  }
}

.result-meta { min-width: 0; }
.result-name {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 0.2rem;
}
.result-desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--mute);
  line-height: 1.35;
}

.result-preview {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.4;
  color: var(--cream);
  word-break: break-word;
  font-variant-ligatures: none;
  min-width: 0;
}

.result-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
  align-items: center;
}

.icon-btn {
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cream-dim);
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1;
  transition: all var(--fast) var(--ease);
}
.icon-btn:hover {
  color: var(--hot);
  border-color: var(--hot);
}
.icon-btn[aria-pressed="true"] {
  color: var(--hot);
  border-color: var(--hot);
  background: rgba(255, 61, 138, 0.1);
}
.icon-btn:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--mute);
  font-size: 0.95rem;
}

.tool-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.hint {
  font-size: 0.8rem;
  color: var(--mute);
}

/* ---------- Content prose ---------- */
.prose-section {
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
}

.prose-section .wrap {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .prose-section .wrap {
    grid-template-columns: 200px 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.section-rail {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hot);
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
}

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

.prose h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--cream);
  font-weight: 700;
}

.prose h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--cream);
  font-weight: 650;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--cream-dim);
}

.prose ul, .prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
  color: var(--cream-dim);
}
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--hot); }

.prose strong { color: var(--cream); font-weight: 650; }

.compare {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 1.5rem;
}
@media (min-width: 560px) {
  .compare { grid-template-columns: 1fr 1fr; }
}

.compare-cell {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
}
.compare-cell .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.45rem;
}
.compare-cell .val {
  font-size: 1.05rem;
  color: var(--cream);
  word-break: break-word;
  line-height: 1.4;
}

.use-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}
@media (min-width: 640px) {
  .use-grid { grid-template-columns: 1fr 1fr; }
}

.use-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel) 0%, var(--ink) 100%);
  padding: 1.1rem 1.15rem;
  transition: border-color var(--fast) var(--ease);
}
.use-card:hover { border-color: rgba(255, 61, 138, 0.35); }
.use-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--cream);
}
.use-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.55;
}
.use-card .tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}

.platform-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}
.platform-table th,
.platform-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.platform-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.platform-table td { color: var(--cream-dim); }
.platform-table td:first-child {
  color: var(--cream);
  font-weight: 600;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--line-strong);
}
.badge-good { color: var(--mint); border-color: rgba(94, 240, 200, 0.4); }
.badge-mid { color: var(--amber); border-color: rgba(240, 193, 94, 0.4); }
.badge-low { color: var(--hot); border-color: rgba(255, 61, 138, 0.4); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item {
  border: 1px solid var(--line);
  background: var(--panel);
}
.faq-item summary {
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  font-weight: 600;
  color: var(--cream);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--hot);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: rgba(232, 220, 200, 0.03); }
.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

/* Related chips */
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.related a {
  text-decoration: none;
  color: var(--cream-dim);
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  background: var(--panel);
  transition: all var(--fast) var(--ease);
}
.related a:hover {
  color: var(--cream);
  border-color: var(--hot);
}

/* Trust strip */
.trust {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.trust-item {
  border-top: 2px solid var(--line-strong);
  padding-top: 0.85rem;
}
.trust-item strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--cream);
}
.trust-item span {
  font-size: 0.82rem;
  color: var(--mute);
  line-height: 1.45;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.75rem;
  position: relative;
  z-index: 1;
  background: var(--ink);
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
  }
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hot);
  margin: 0 0 0.65rem;
}
.footer-blurb {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mute);
  max-width: 22rem;
  line-height: 1.55;
}
.footer-col h2 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: var(--mute);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--mute);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  background: var(--panel-2);
  border: 1px solid var(--mint);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.15rem;
  box-shadow: var(--glow-mint);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Inner pages */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--cream-dim);
}
.page-body {
  padding: 2rem 0 3rem;
  max-width: var(--measure);
}
.page-body h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.2rem;
  color: var(--cream);
}
.page-body p, .page-body li { color: var(--cream-dim); }

/* 404 */
.err-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}
.err-page h1 {
  font-size: clamp(4rem, 15vw, 7rem);
  margin: 0;
  letter-spacing: -0.04em;
  color: var(--hot);
  line-height: 1;
  font-family: var(--font-mono);
}
.err-page p {
  color: var(--cream-dim);
  max-width: 24rem;
  margin: 1rem auto 1.75rem;
}

/* Utility */
.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;
}

@media (max-width: 520px) {
  .result-row {
    grid-template-columns: 1fr;
  }
  .result-actions {
    justify-content: flex-start;
  }
  .nav { gap: 0.75rem; }
  .nav a { font-size: 0.72rem; }
}
