:root {
  --paper: #f5f1ea;
  --paper-deep: #ece6db;
  --ink: #16140f;
  --ink-soft: #5b564c;
  --ink-faint: #9c968a;
  --rule: #d9d2c4;
  --accent: #c2410c;
  --accent-ink: #9a3412;
  --fold: #e4ded2;
  --display: "Patrick Hand", "Comic Neue", "Segoe Print", cursive;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17150f;
    --paper-deep: #1f1c15;
    --ink: #f1ece2;
    --ink-soft: #b8b1a3;
    --ink-faint: #7b7568;
    --rule: #332f26;
    --accent: #f0792d;
    --accent-ink: #ffa264;
    --fold: #262219;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; background: var(--paper-deep); padding: 0.1em 0.35em; border-radius: 4px; }

.top, main, footer { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 26px; }
.top nav, footer nav { display: flex; gap: 22px; align-items: center; }
.top nav a, footer nav a { text-decoration: none; color: var(--ink-soft); font-size: 17px; }
.top nav a:hover, footer nav a:hover { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px 0 64px; }
.eyebrow { margin: 0 0 14px; font-size: 16px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent-ink); }
h1 { margin: 0 0 22px; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7vw, 92px); line-height: 1; }
.lede { margin: 0 0 30px; font-size: 20px; color: var(--ink-soft); max-width: 46ch; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 19px; padding: 13px 28px; border-radius: 10px; transition: background 0.18s ease; }
.button:hover { background: var(--accent-ink); color: #fff; }
.top nav .button, .top nav .button:hover { color: #fff; }
.top nav .button:hover { background: var(--accent-ink); }
.button-small { font-size: 16px; padding: 8px 16px; }
.cta-note { font-size: 16px; color: var(--ink-faint); }

.art { display: block; width: 100%; height: auto; }
.hero-art { max-width: 420px; justify-self: end; }

.compare { padding: 24px 0 72px; border-top: 1px solid var(--rule); }
/* The comparison is x.com in layers (navigation, timeline, the right column) over a white page,
   cut to a window with a fade at the foot. The state moves and fades the layers: without StopSlop
   the full navigation, open posts and X's sidebar; with it the trimmed navigation, folded posts
   and the timeline centred in the space the sidebar left; with the sidebar open, the timeline back
   at the left and the StopSlop panel slid in from the right. Widths are the mock's 300/600/380 of 1280. */
.compare-frame { position: relative; overflow: hidden; max-width: 960px; margin: 0 auto; aspect-ratio: 1280 / 860; border: 1px solid var(--rule); border-radius: 12px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,0.08); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.layer { position: absolute; top: 0; left: 0; height: auto; opacity: 1; transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform, opacity; }
.layer-nav { width: 23.4375%; }
.layer-timeline { width: 46.875%; transform: translateX(50%); }
.layer-right { width: 29.6875%; left: 70.3125%; }
.compare-frame[data-state="before"] [data-layer="nav-after"], .compare-frame:not([data-state="before"]) [data-layer="nav-before"],
.compare-frame[data-state="before"] [data-layer="timeline-after"], .compare-frame:not([data-state="before"]) [data-layer="timeline-before"] { opacity: 0; }
.compare-frame[data-state="after"] .layer-timeline { transform: translateX(81.6667%); }
.compare-frame:not([data-state="before"]) [data-layer="sidebar"] { opacity: 0; transform: translateX(40%); }
.compare-frame:not([data-state="panel"]) [data-layer="panel"] { opacity: 0; transform: translateX(100%); }
.compare-switch { display: flex; justify-content: center; gap: 26px; margin: 0 0 16px; }
.compare-switch button { padding: 6px 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-faint); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.compare-switch button:hover { color: var(--ink-soft); }
.compare-switch button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .layer { transition: none; } }

.small { font-size: 16px; color: var(--ink-faint); }

.faq { max-width: 720px; padding: 40px 0 72px; border-top: 1px solid var(--rule); }
.faq h2 { margin: 0 0 20px; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.faq dl { margin: 0; }
.faq dt { margin: 22px 0 6px; font-weight: 600; }
.faq dd { margin: 0; color: var(--ink-soft); }
footer { display: flex; justify-content: space-between; align-items: center; padding: 26px 0 40px; border-top: 1px solid var(--rule); font-size: 18px; color: var(--ink-faint); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; }
  .hero-art { justify-self: center; max-width: 420px; }
  .top nav { gap: 16px; }
}
