:root {
  --bg: #10151c;
  --surface: #171e28;
  --text: #e7eef4;
  --muted: #9aabbb;
  --border: rgba(180, 220, 230, 0.16);
  --accent: #7ad7e2;
  --accent-ink: #0c141c;
  --serif: "Source Serif 4", serif;
  --latin: "Space Grotesk", "Source Serif 4", sans-serif;
  --pad: clamp(1.25rem, 3vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.55;
  background:
    linear-gradient(180deg, rgba(122, 215, 226, 0.05), transparent 10rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: var(--accent); }
a:hover { color: #c6f3f6; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.night {
  width: min(1080px, calc(100% - 2 * var(--pad)));
  margin: 0 auto;
}

.bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 0.9rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.tick {
  color: var(--muted);
  font-size: 0.95rem;
}

.tick b {
  margin-right: 0.45rem;
  color: var(--accent);
  font-family: var(--latin);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

.caption { padding: 1.6rem 0 0.4rem; }

h1 {
  margin: 0;
  max-width: 14em;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.35rem, 5.6vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--muted);
}

.tape {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem 1rem;
  align-items: end;
  max-width: 40rem;
  margin-top: 1.35rem;
  padding-top: 0.2rem;
}

.tape h2 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
}

label.field { display: grid; gap: 0.35rem; min-width: 0; }
label.field span { color: var(--text); font-size: 0.92rem; }

input[type="email"] {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid rgba(122, 215, 226, 0.55);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--latin);
  font-size: 1.05rem;
}

input[type="email"]:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.btn:hover { transform: translateY(-2px); background: #9ae6ee; }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.92rem;
}

.consent input {
  margin-top: 0.22rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}

.err {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.15em;
  color: #f0b4b4;
  font-size: 0.92rem;
}

.reel-block { padding: 1.8rem 0 0.4rem; min-width: 0; }

.reel-label {
  margin: 0 0 0.7rem;
  color: var(--text);
  font-size: 0.95rem;
}

.ruler {
  height: 1px;
  margin-bottom: 0.85rem;
  background: linear-gradient(90deg, var(--accent), rgba(122, 215, 226, 0.08) 80%);
}

.reel {
  display: flex;
  gap: 1rem;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 0.65rem;
  scroll-snap-type: x proximity;
}

.reel article {
  flex: 0 0 auto;
  width: 16rem;
  scroll-snap-align: start;
  padding-top: 0.7rem;
  border-top: 2px solid rgba(122, 215, 226, 0.45);
}

.reel article:nth-child(2) { width: 22rem; }
.reel article:nth-child(3) { width: 18.5rem; }

.reel time {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-family: var(--latin);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.reel p {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.35;
}

.drop {
  max-width: 38rem;
  padding: 1.6rem 0 2.4rem;
}

.drop h2 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 600;
}

.drop p { margin: 0 0 0.8rem; }
.drop p:last-child { margin-bottom: 0; }

.foot {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem 0 5.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.foot p { margin: 0; }
.foot a { color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.55rem 1.1rem; }

.prose { padding: 1.6rem 0 2rem; max-width: 40rem; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.8rem; }
.prose p { margin: 0 0 0.85rem; }
.prose dt { color: var(--text); font-weight: 650; margin-top: 0.75rem; }
.prose dd { margin: 0.15rem 0 0; }

.toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 30;
  width: min(92vw, 26rem);
  padding: 0.95rem 1rem;
  background: #e7eef4;
  color: #10151c;
  transform: translate(-50%, -160%);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.toast.show { transform: translate(-50%, 0); }
.toast strong { display: block; }
.toast p { margin: 0.25rem 0 0; color: #3c4c5c; font-size: 0.92rem; }

.cookie {
  position: fixed;
  left: var(--pad);
  bottom: 0.8rem;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: min(36rem, calc(100% - 2 * var(--pad)));
  padding: 0.75rem 0.8rem;
  background: #e7eef4;
  color: #10151c;
}

.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 0.92rem; }
.cookie a { color: #0e4c56; }
.cookie button {
  appearance: none;
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  border: 0;
  background: #10151c;
  color: #e7eef4;
  font-family: var(--serif);
  font-weight: 650;
  cursor: pointer;
}

#notify, .prose { scroll-margin-top: 1rem; }

@media (max-width: 720px) {
  .tape { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .bar { flex-direction: column; align-items: flex-start; }
  .reel article,
  .reel article:nth-child(2),
  .reel article:nth-child(3) { width: min(78vw, 20rem); }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
