:root {
  --font: "Power Grotesk", "Die Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bg: #000000;
  --text: #ffffff;
  --text-secondary: #6b7280;
  --line: #1a1a1a;
  --accent: #ff4612;
  --space-xs: 16px;
  --space-sm: 32px;
  --space-md: 64px;
  --space-lg: 96px;
  --space-xl: 128px;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #bcc1c9;
  --text: #000000;
  --text-secondary: #4a4f57;
  --line: #9ca3ae;
  color-scheme: light;
}
* { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.35;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
header {
  position: fixed; top: 0; left: 0; right: 0; height: 50px;
  background: var(--accent); z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
}
body { padding-top: 50px; }
.logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.logo img { display: block; height: 26px; width: auto; }
.toggle {
  background: none; border: 0; color: #000; font-family: var(--font);
  font-size: 22px; line-height: 1; cursor: pointer; min-width: 44px; min-height: 44px;
}
main { padding: 0 0 var(--space-xl); }
.container { max-width: 1600px; margin: 0 auto; padding: 0 64px; }
@media (max-width: 1024px) { .container { padding: 0 32px; } }
@media (max-width: 768px) { .container { padding: 0 24px; } }
@media (max-width: 375px) { .container { padding: 0 20px; } }

h1 { font-weight: 200; font-size: clamp(64px, 8vw, 120px); line-height: 0.9; letter-spacing: -0.015em; text-transform: lowercase; margin: var(--space-lg) 0 var(--space-md); }
h2 { font-weight: 200; font-size: clamp(40px, 5vw, 56px); line-height: 1; text-transform: lowercase; margin: var(--space-lg) 0 var(--space-sm); }
h3 { font-weight: 200; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; text-transform: lowercase; margin: var(--space-md) 0 var(--space-sm); }
p { font-weight: 300; font-size: 24px; line-height: 1.35; margin: 0 0 var(--space-sm); }
a { color: var(--text); }
.meta { font-weight: 300; font-size: 20px; line-height: 1.3; letter-spacing: 0.01em; color: var(--text); }
.dim { color: var(--text-secondary); }
.hr { height: 1px; background: var(--line); border: 0; margin: var(--space-md) 0; animation: lineSlideIn 0.8s ease-out; }
@keyframes lineSlideIn { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

.sticker-field { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.sticker { position: absolute; color: var(--accent); line-height: 1; user-select: none; }
.display { position: relative; z-index: 1; }

/* buttons: verb only, no rounded cards, no shadows */
.btn, button.btn {
  display: inline-block; background: none; border: 0; border-bottom: 1px solid var(--text);
  color: var(--text); font-family: var(--font); font-weight: 300; font-size: 24px;
  padding: 12px 0; cursor: pointer; min-height: 48px; text-decoration: none;
  text-transform: lowercase;
}
.btn:hover { color: var(--accent); border-color: var(--accent); }
button.btn-accent, a.btn-accent {
  display: inline-block; background: var(--accent); color: #000;
  border: 0; border-bottom: 0; padding: 16px 32px; text-decoration: none;
  min-height: 56px;
}
button.btn-accent:hover, a.btn-accent:hover { color: #000; background: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* forms */
label { display: block; font-weight: 300; font-size: 20px; letter-spacing: 0.01em; margin: var(--space-sm) 0 8px; }
input, textarea, select {
  width: 100%; background: transparent; color: var(--text);
  border: 0; border-bottom: 1px solid var(--line);
  font-family: var(--font); font-weight: 300; font-size: 24px;
  padding: 12px 0; min-height: 48px;
}
input::placeholder, textarea::placeholder { color: var(--text-secondary); }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--accent); }
.hint { font-size: 20px; color: var(--text-secondary); line-height: 1.3; margin: 8px 0 0; }
.error { color: var(--accent); font-size: 20px; }

.content-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-md); align-items: start; }
@media (max-width: 768px) { .content-row { grid-template-columns: 1fr; gap: var(--space-sm); } }

/* the story card */
.story { max-width: 760px; }
.story-title { font-weight: 200; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 0 0 var(--space-xs); text-transform: lowercase; }
.story-cast { font-size: 20px; color: var(--text-secondary); letter-spacing: 0.01em; margin: 0 0 var(--space-md); }
.story p { font-size: 30px; line-height: 1.35; font-weight: 300; margin: 0 0 var(--space-sm); }
.story-handoff { border-left: 2px solid var(--accent); padding-left: var(--space-sm); margin: var(--space-md) 0; }
.story-handoff span { font-size: 30px; font-weight: 200; }
.story-callback { color: var(--text-secondary); font-size: 20px; }
@media (max-width: 768px) { .story p, .story-handoff span { font-size: 26px; } }

.counts { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.count { border-top: 1px solid var(--line); padding-top: var(--space-xs); min-width: 120px; }
.count b { display: block; font-weight: 200; font-size: 56px; line-height: 1; }
.count span { font-size: 20px; color: var(--text-secondary); }

footer {
  height: auto; min-height: 40px; border-top: 1px solid var(--line);
  margin-top: var(--space-xl); padding: var(--space-sm) 0;
  display: flex; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap;
  font-size: 20px; color: var(--text-secondary);
}
footer span { font-weight: 300; }

table { border-collapse: collapse; width: 100%; font-size: 20px; }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); font-weight: 300; }
pre { font-family: var(--font); font-size: 20px; line-height: 1.3; white-space: pre-wrap; }
.animate-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

.price-row { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-sm); }
.price-btn { border-bottom: 1px solid var(--accent); color: var(--accent); padding-right: 8px; min-width: 88px; }
.price-btn:hover { background: var(--accent); color: #000; }
/* slow local generation: a parent at 8:30pm needs to know it is working */
.making { border-left: 2px solid var(--accent); padding: 12px 0 12px 16px; margin: 20px 0; }
.making[hidden] { display: none; }
.making .waited { color: var(--accent); font-variant-numeric: tabular-nums; }
