/* Sploitly: one stylesheet, system fonts only, dark first. */
:root {
  --bg: #0f110d;
  --surface: #171a14;
  --line: #2b2f25;
  --text: #ece8dc;
  --muted: #a9a796;
  --accent: #f2b134;
  --accent-ink: #1a1405;
  --hot: #ff7a5c;
  --ok: #9fd27a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 68rem;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f3ea;
    --surface: #ffffff;
    --line: #d8d3c2;
    --text: #1a1c16;
    --muted: #55574a;
    --accent: #8a5a00;
    --accent-ink: #fffaf0;
    --hot: #b0361b;
    --ok: #3f6e1f;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 0.9rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none; font: 600 1.2rem/1 var(--serif); letter-spacing: 0.01em; }
.brand img { width: 28px; height: 28px; }
.site-head nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--text); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.kicker { font: 500 0.78rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 1rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }
code, kbd { font-family: var(--mono); font-size: 0.92em; }
:not(pre) > code { background: var(--surface); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 4px; }

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6rem); border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }

/* Hero */
.hero { display: grid; gap: 3rem; align-items: center; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hero h1 em { font-style: italic; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn { display: inline-block; padding: 0.8rem 1.25rem; border-radius: 6px; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }

/* Example alert readout */
.readout { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font: 0.86rem/1.6 var(--mono); overflow: hidden; }
.readout figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.readout dl { margin: 0; padding: 1rem; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.3rem 1rem; }
.readout dt { color: var(--muted); }
.readout dd { margin: 0; overflow-wrap: anywhere; }
.tag { display: inline-block; padding: 0 0.45em; border-radius: 3px; border: 1px solid currentColor; font-size: 0.78rem; }
.tag-hot { color: var(--hot); }
.tag-ok { color: var(--ok); }

/* Copyable line */
.paste { position: relative; margin: 0; border-top: 1px dashed var(--line); padding: 1rem; padding-right: 5rem; }
.paste .label { display: block; color: var(--accent); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.35rem; }
.paste pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
pre { overflow-x: auto; }
.copy { position: absolute; right: 0.8rem; top: 0.8rem; font: 600 0.75rem var(--mono); background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 0.3rem 0.6rem; cursor: pointer; }
.copy:hover { border-color: var(--accent); }

/* Grids */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; background: var(--surface); }
.card p:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 1.1rem; }
.steps li::before { content: "0" counter(step); display: block; font: 500 0.8rem var(--mono); color: var(--accent); letter-spacing: 0.12em; margin-bottom: 0.6rem; }

.agents { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.agents li { font: 0.9rem var(--mono); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; }

.ledger { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.ledger ul { padding-left: 1.2rem; margin: 0; }
.ledger li { margin-bottom: 0.45rem; }
.ledger .never h3 { color: var(--hot); }
.ledger .keep h3 { color: var(--ok); }

.soon { font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 0.05rem 0.4rem; vertical-align: 0.15em; white-space: nowrap; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding-block: 1rem; max-width: 46rem; }
.faq summary { cursor: pointer; font: 600 1.1rem/1.4 var(--serif); list-style-position: outside; }
.faq details p { margin: 0.75rem 0 0; color: var(--muted); }

/* CTA */
.cta { text-align: center; }
.cta .lede { margin-inline: auto; }
.cta .actions { justify-content: center; }

/* Pricing */
.plan h2 { font-size: 1.6rem; }
.plan .price { font: 500 0.85rem var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }

/* Prose pages */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: 0.9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-foot a { color: var(--muted); }

@media (max-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 26rem) {
  body { font-size: 1rem; }
  .readout dl { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .readout dd { margin-bottom: 0.5rem; }
  .site-head nav ul { gap: 0.9rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .copy, a { transition: color 0.15s, border-color 0.15s, filter 0.15s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
