/* Colors match the app's palette in constants/palette.json */
:root {
  --page: #0d0a08;
  --card: #1a1410;
  --sand: #272017;
  --line: #4d3c27;
  --ink: #f4e9d3;
  --muted: #ad9c80;
  --primary: #d9ae48;
  --on-primary: #1a1006;
  --gold: #ebc766;
  --bronze: #7a5a1e;
  --success: #7cc77f;
  --danger: #e8604a;
  --display: 'Cinzel', Georgia, serif;
  --body: 'Spectral', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--gold); }
.wrap { width: min(100% - 40px, 1040px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trap { position: absolute; left: -9999px; opacity: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
.section-lede { color: var(--muted); font-size: 1.25rem; margin: 12px 0 0; max-width: 40rem; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,10,8,.8), rgba(13,10,8,.25) 38%, transparent 52%); }
.hero-copy { position: relative; z-index: 1; padding: 18vh 0 40px; }
.brand { font: 900 1.125rem var(--display); letter-spacing: .32em; color: var(--gold); margin: 0 0 12px; }
h1 { font-size: clamp(2.5rem, 8vw, 5.25rem); max-width: 14ch; text-wrap: balance; }
.lede { font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.45; max-width: 36rem; margin: 18px 0 28px; }

/* Waitlist form */
.waitlist { max-width: 34rem; }
.field { display: flex; gap: 10px; }
.field[hidden] { display: none; }
input[type='email'] {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  font: 400 1.125rem var(--body);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
input[type='email']::placeholder { color: var(--muted); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button {
  height: 56px;
  padding: 0 22px;
  font: 700 .875rem var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--on-primary);
  background: linear-gradient(#f7dc8f, var(--primary) 55%, #b98a2c);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 0 var(--bronze);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
button:active { transform: translateY(4px); box-shadow: none; }
button:disabled { opacity: .6; cursor: progress; }
.status { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; }
.status[data-kind='error'] { color: var(--danger); }
.status[data-kind='success'] { color: var(--success); font-size: 1.25rem; }
.note { color: var(--muted); font-size: 1rem; margin: 0; }

/* How it works */
.how { padding: 72px 0 40px; }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
.card { background: var(--card); border: 1px solid var(--line); border-bottom-width: 4px; border-radius: 12px; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center bottom; }
.card div { padding: 4px 20px 22px; }
.card h3 { color: var(--gold); }
.card p { margin: 10px 0 0; }

/* Journey */
.journey { padding: 56px 0 72px; }
.eras { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.eras li { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font: 700 1.05rem var(--display); }
.eras span { color: var(--gold); width: 2.6rem; flex: none; }
.eras em { margin-left: auto; font: 400 1rem var(--body); color: var(--muted); white-space: nowrap; }

/* Closing */
.closing { position: relative; min-height: 560px; display: flex; align-items: flex-end; }
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.closing-copy { position: relative; padding: 200px 0 48px; }
.closing-copy h2 { margin-bottom: 24px; }

.footer { display: flex; justify-content: space-between; padding: 24px 0 36px; color: var(--muted); font-size: 1rem; border-top: 1px solid var(--line); }

/* Privacy */
.prose { max-width: 40rem; padding: 48px 0 72px; }
.prose h1 { font-size: 2.5rem; margin: 24px 0 8px; }
.prose h2 { font-size: 1.25rem; margin: 36px 0 8px; }
.prose .muted { opacity: 0.65; margin-bottom: 28px; }

@media (max-width: 760px) {
  /* On phones the art sits above the words, so text never lands on busy detail */
  .hero, .closing { display: block; min-height: 0; }
  .hero::after { display: none; }
  .hero-art, .closing > img { position: static; height: 46svh; min-height: 300px; }
  .hero-copy { padding: 0 0 40px; margin-top: -8px; }
  .closing-copy { padding: 0 0 40px; margin-top: 8px; }
  .cards { grid-template-columns: 1fr; }
  .eras { grid-template-columns: 1fr; }
  .eras em { font-size: .95rem; }
  .field { flex-direction: column; }
  button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
