:root {
  --night: #1F2E44;
  --midnight: #161D28;
  --cream: #EDE6D8;
  --cream-deep: #E2D9C7;
  --amber: #E8A64B;
  --ember: #C4593B;
  --ember-dark: #A8482E;
  --dusty: #8AA0B4;
  --ink: #161D28;
  --ink-soft: #3F4B5E;
  --rule: rgba(22, 29, 40, 0.14);
  --max: 1080px;
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ember-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember); }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 72;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 600; font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 24; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--ink-soft); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
section { padding-block: clamp(48px, 8vw, 96px); }
.band-night { background: var(--night); color: var(--cream); }
.band-night h1, .band-night h2, .band-night h3 { color: var(--cream); }
.band-night .lede { color: rgba(237, 230, 216, 0.78); }
.band-night a { color: var(--amber); }
.band-deep { background: var(--cream-deep); }

/* header */
header.site {
  background: var(--night);
  color: var(--cream);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand svg { width: 44px; height: auto; }
.brand .word {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 72;
  font-weight: 500; font-size: 1.55rem; letter-spacing: -0.01em; line-height: 1;
}
header nav a { color: var(--cream); opacity: 0.85; text-decoration: none; margin-left: 20px; font-size: 0.95rem; }
header nav a:hover { opacity: 1; color: var(--amber); }

/* buttons */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--ember); color: #fff !important; text-decoration: none; font-weight: 600;
  border: 2px solid var(--ember); transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ember-dark); border-color: var(--ember-dark); }
.btn.ghost { background: transparent; color: var(--cream) !important; border-color: rgba(237,230,216,0.55); }
.btn.ghost:hover { border-color: var(--cream); background: rgba(237,230,216,0.08); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.cta-note { font-size: 0.95rem; color: var(--dusty); margin: 10px 0 0; }

/* hero */
.hero { padding-block: clamp(56px, 10vw, 120px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; }
.hero .table-mark { width: min(100%, 360px); margin-inline: auto; opacity: 0.95; }
.hero .kicker {
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber);
  font-weight: 600; margin-bottom: 18px;
}

/* story */
.story p:first-of-type { font-size: 1.15rem; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.step { background: rgba(255,255,255,0.45); border: 1px solid var(--rule); border-radius: 14px; padding: 24px; }
.step .n {
  font-family: "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 40, "opsz" 72;
  font-size: 2.4rem; color: var(--ember); line-height: 1; margin-bottom: 12px;
}
.step p { margin: 0; font-size: 1rem; color: var(--ink-soft); }

/* safety */
.safety .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; margin-top: 28px; padding: 0; list-style: none; max-width: 820px; }
.safety li { padding-left: 30px; position: relative; color: rgba(237,230,216,0.92); }
.safety li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 16px; height: 4px; border-radius: 2px; background: var(--amber);
}
.safety .caveat { margin-top: 28px; color: rgba(237,230,216,0.72); font-size: 0.98rem; }

/* founder */
.founder .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.founder .sig { font-family: "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 36; font-style: italic; font-size: 1.25rem; color: var(--night); margin-top: 18px; }
.facts { border-top: 2px solid var(--night); padding-top: 18px; }
.facts dt { font-weight: 600; margin-top: 14px; }
.facts dd { margin: 4px 0 0; color: var(--ink-soft); }

/* closing CTA */
.closing { text-align: center; }
.closing p { margin-inline: auto; }
.closing .cta-row { justify-content: center; }

/* footer */
footer.site { background: var(--midnight); color: rgba(237,230,216,0.75); font-size: 0.92rem; }
footer.site .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
footer.site a { color: var(--cream); }
footer.site .brand .word { font-size: 1.2rem; }
footer.site .brand svg { width: 32px; }

/* privacy page */
.doc { max-width: 760px; }
.doc h2 { margin-top: 2.2em; font-size: 1.5rem; }
.doc h3 { margin-top: 1.6em; }
.doc table { border-collapse: collapse; width: 100%; margin: 1em 0 1.6em; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.doc th { background: rgba(31,46,68,0.06); font-weight: 600; }
.doc .table-scroll { overflow-x: auto; }
.doc ul { padding-left: 1.2em; max-width: var(--measure); }
.doc li { margin-bottom: 0.4em; }
.doc .meta { color: var(--ink-soft); font-size: 0.95rem; }
.notice { background: rgba(232,166,75,0.18); border-left: 4px solid var(--amber); padding: 12px 16px; border-radius: 6px; font-size: 0.95rem; margin: 1.5em 0; max-width: 760px; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero .table-mark { width: min(60%, 240px); order: -1; margin-inline: 0; }
  .steps { grid-template-columns: 1fr; }
  .safety .list { grid-template-columns: 1fr; }
  .founder .wrap { grid-template-columns: 1fr; gap: 28px; }
  header nav a { margin-left: 14px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  header nav { display: none; }
}
