:root {
  --amber: #f8ac34;
  --amber-deep: #e89216;
  --ink: #14141a;
  --body: #2a2a33;
  --muted: #5b5b66;
  --rule: rgba(20, 20, 26, .14);
  --gutter: 16px;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
@media (min-width: 720px) { :root { --gutter: 48px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: #fff; color: var(--ink); font: 17px/1.55 var(--sans); }
h1, h2, h3, .lockup { font-family: var(--serif); font-weight: 400; font-synthesis-weight: none; letter-spacing: -.005em; }
em { font-style: italic; }
a { color: inherit; text-underline-offset: 3px; }
.label { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* Amber fails contrast at 12px on white, so small labels stay ink and carry the amber as a mark. */
.label.amber { color: var(--ink); }
.label.amber::before { content: ''; display: inline-block; width: 16px; height: 2px; background: var(--amber); vertical-align: middle; margin: -2px 8px 0 0; }

/* Buttons */
.btn { display: inline-block; background: var(--amber); color: var(--ink); border: 0; border-radius: 2px; padding: 16px 24px; min-height: 48px; font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--amber-deep); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero: the photo fills the screen, the name top left, the belief at the bottom */
.hero { position: relative; isolation: isolate; min-height: 100svh; color: #fff; background-color: #2a241f; /* shows only until the photo loads, so white text never sits on white */ display: flex; flex-direction: column; justify-content: space-between; padding: 28px var(--gutter) 40px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,10,14,.86) 0%, rgba(10,10,14,.45) 45%, rgba(10,10,14,.12) 75%, rgba(10,10,14,.35) 100%); }
.lockup { font-size: clamp(28px, 5.4vw, 46px); line-height: 1; }
.lockup .dot { color: var(--amber); }
.hero .label { color: rgba(255,255,255,.82); margin-top: 8px; }
.hero-bottom { display: grid; gap: 24px; align-items: end; }
.hero h1 { font-size: clamp(46px, 9.5vw, 88px); line-height: .98; max-width: 13ch; }
.hero h1 em { color: var(--amber); }
.hero-side { max-width: 320px; font-size: 16px; color: rgba(255,255,255,.92); display: grid; gap: 16px; justify-items: start; }
.full-note { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
@media (min-width: 900px) {
  .hero-bottom { grid-template-columns: 1fr auto; gap: 48px; }
}

/* Why the name */
.meaning { display: grid; border-bottom: 1px solid var(--rule); }
.meaning-head, .meaning-body { padding: 56px var(--gutter); }
.meaning h2 { font-size: clamp(38px, 6vw, 56px); line-height: 1.02; margin-top: 14px; max-width: 14ch; }
.meaning h2 em { color: var(--amber-deep); }
.meaning-body { border-top: 1px solid var(--rule); display: grid; gap: 16px; align-content: start; color: var(--body); font-size: 18px; }
.term { border-left: 3px solid var(--amber); padding: 4px 0 4px 18px; margin-bottom: 12px; }
.term p:last-child { color: var(--ink); margin-top: 6px; }
@media (min-width: 900px) {
  .meaning { grid-template-columns: 1fr 1.25fr; }
  .meaning-head, .meaning-body { padding: 80px var(--gutter); }
  .meaning-body { border-top: 0; border-left: 1px solid var(--rule); }
}

/* Connect / Compare */
.pair { display: grid; border-bottom: 1px solid var(--rule); }
.pair > div { padding: 48px var(--gutter); }
.pair > div + div { border-top: 1px solid var(--rule); }
.pair h3 { font-size: clamp(30px, 4vw, 36px); line-height: 1.1; margin: 10px 0 10px; }
.pair p:last-child { color: var(--body); }
@media (min-width: 720px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .pair > div + div { border-top: 0; border-left: 1px solid var(--rule); }
}

/* Details */
.details { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.details > div { padding: 28px var(--gutter); border-top: 1px solid var(--rule); }
.details > div:nth-child(-n+2) { border-top: 0; }
.details > div:nth-child(2n) { border-left: 1px solid var(--rule); }
.details p:last-child { font-weight: 500; margin-top: 6px; }
.details a { font-weight: 400; color: var(--muted); }
@media (min-width: 900px) {
  .details { grid-template-columns: repeat(4, 1fr); }
  .details > div { border-top: 0; }
  .details > div + div { border-left: 1px solid var(--rule); }
}

/* Sign-up */
.signup { display: grid; gap: 32px; padding: 64px var(--gutter) 80px; }
.signup h2 { font-size: clamp(40px, 6vw, 60px); line-height: 1; }
.signup-head p { color: var(--body); margin-top: 12px; max-width: 34ch; }
form { display: grid; gap: 22px; max-width: 560px; }
label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
input, textarea { font: 17px/1.4 var(--sans); color: var(--ink); background: #fff; border: 0; border-bottom: 1px solid rgba(20,20,26,.4); border-radius: 0; padding: 10px 0; width: 100%; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-bottom-color: var(--ink); }
.hint, .optional { font-weight: 400; font-size: 14px; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--amber-deep); flex: none; }
.privacy { font-size: 14px; color: var(--muted); }
.error { color: #b42318; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .btn { justify-self: start; }
.done h2 { margin-bottom: 12px; }
.done p { max-width: 40ch; color: var(--body); font-size: 18px; }
.done .cal { margin-top: 18px; font-weight: 500; }
@media (min-width: 900px) {
  .signup { grid-template-columns: 1fr 1.25fr; gap: 48px; padding: 96px var(--gutter); }
}

.foot a, .privacy a, .details a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.foot { border-top: 1px solid var(--rule); padding: 28px var(--gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }

/* The page's three states: open, full (waiting list) and after the morning */
.only-full, .only-after { display: none; }
body[data-state="full"] .only-open, body[data-state="after"] .only-open { display: none; }
body[data-state="full"] .only-full, body[data-state="after"] .only-after { display: revert; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
