:root {
  --ground: #11150F;
  --plate: #191E16;
  --binding: #5C8A6E;
  --ink: #E9E5D8;
  --ink-soft: #9AA294;
  --ember: #D9A05B;
  --border: #2C342A;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/literata.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

/* Field-notes paper. A soft dot grid, barely there — the page you'd actually
   write your own notes into. Fades out below the fold so it frames the top
   of the page rather than tiling the whole thing. */
body {
  background-color: var(--ground);
  background-image: radial-gradient(circle, rgba(233,229,216,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  background-repeat: repeat-x;
  color: var(--ink);
  font-family: 'Literata', Georgia, serif;
  line-height: 1.6;
  padding: 0 22px env(safe-area-inset-bottom, 0px);
}
.wrap { max-width: 660px; margin: 0 auto; }

.mark { display: flex; align-items: center; gap: 10px; padding: 26px 0 0; }
.mark-text { font-weight: 700; font-size: 1.02rem; color: var(--binding); }

.hero { padding: 52px 0 38px; }
.hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
.hero .rule { height: 2px; background: var(--binding); margin: 22px 0; max-width: 220px; }
.hero p { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.hero p + p { margin-top: 15px; }
.hero em { color: var(--ink); font-style: italic; }

.cta {
  display: inline-block; margin-top: 30px;
  background: var(--ember); color: #11150F;
  font-family: 'Literata', serif; font-weight: 700; font-size: 1.02rem;
  padding: 15px 30px; border-radius: 999px; text-decoration: none;
  transition: transform 0.12s ease;
}
.cta:active { transform: scale(0.98); }
.cta-note { display: block; margin-top: 12px; font-size: 0.84rem; color: var(--ink-soft); }

.shot { margin: 46px 0 8px; text-align: center; }
.shot img {
  width: 100%; max-width: 310px; height: auto;
  border: 1px solid var(--border); border-radius: 22px;
}

.beats { padding: 30px 0 10px; }
.beat { padding: 26px 0; border-top: 1px solid var(--border); }
.beat-key {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember);
  margin-bottom: 9px;
}
.beat h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.beat p { color: var(--ink-soft); max-width: 52ch; }
.beat p + p { margin-top: 11px; }
.beat em { color: var(--ink); font-style: italic; }

.why {
  margin: 34px 0; padding: 24px 22px;
  background: var(--plate); border-left: 3px solid var(--ember); border-radius: 0 12px 12px 0;
}
.why p { color: var(--ink-soft); }
.why p + p { margin-top: 13px; }
.why strong { color: var(--ink); font-weight: 700; }
.why em { color: var(--ink); font-style: italic; }

.close { padding: 22px 0 16px; border-top: 1px solid var(--border); }
.close h2 { font-size: 1.5rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.close p { color: var(--ink-soft); max-width: 48ch; }

footer {
  padding: 38px 0 46px; margin-top: 34px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--ink-soft);
}
footer a { color: var(--binding); }
footer .sign { display: block; margin-top: 14px; }

@media (prefers-reduced-motion: reduce) { .cta { transition: none; } }

/* ---- Document pages (terms, privacy) ---------------------------------- */
.doc { padding: 46px 0 20px; }
.doc h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 8px; }
.doc .updated { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.doc .rule { height: 2px; background: var(--binding); margin: 20px 0 30px; max-width: 220px; }
.doc h2 { font-size: 1.22rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 1rem; margin: 22px 0 6px; color: var(--ink); }
.doc p, .doc li { color: var(--ink-soft); }
.doc p + p { margin-top: 13px; }
.doc ul { margin: 12px 0 0 20px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--binding); }
.doc .lede { font-size: 1.05rem; color: var(--ink); max-width: 52ch; }
.back { display: inline-block; margin-top: 30px; color: var(--binding); text-decoration: none; font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.foot-links a { color: var(--binding); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
