:root {
  --ink: #17231c;
  --muted: #607067;
  --paper: #f7f5ed;
  --paper-deep: #eeece1;
  --surface: #fffdf7;
  --forest: #153e2b;
  --forest-soft: #dce9df;
  --mint: #a8e2bb;
  --line: #d7d9cf;
  --danger: #8f352e;
  --warning: #805814;
  --success: #23623f;
  --focus: #327657;
  --shadow: 0 18px 44px -30px rgba(16, 43, 29, .55);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; margin: 0; min-height: 100svh; background: var(--paper); line-height: 1.5; }
::selection { color: #fff; background: var(--forest); }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .75rem 1rem; color: white; background: var(--forest); border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
html { scrollbar-color: #9ba79f var(--paper-deep); }
input, textarea { caret-color: var(--forest); }
[id] { scroll-margin-top: 1.5rem; }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  width: min(48rem, 100%); min-height: 80px; margin: 0 auto; padding: 0 32px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 750; letter-spacing: -.015em; text-decoration: none; }
.brand-mark { width: 25px; height: 25px; color: var(--forest); }
.button, button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .72rem 1.1rem; border: 1px solid var(--forest); border-radius: 8px;
  color: white; background: var(--forest); font-weight: 700; text-decoration: none;
  white-space: nowrap; box-shadow: 0 8px 18px -14px rgba(10, 44, 27, .8);
  transition: transform .18s cubic-bezier(.16,1,.3,1), background .18s ease-out, box-shadow .18s ease-out;
}
.button:hover, button:hover { background: #23543b; box-shadow: 0 12px 24px -15px rgba(10, 44, 27, .9); transform: translateY(-1px); }
.button:active, button:active { transform: translateY(1px); }
button:disabled { cursor: wait; color: #e4eee7; background: #3f6150; border-color: #3f6150; box-shadow: none; transform: none; }


label { display: block; margin-bottom: .45rem; font-size: .86rem; font-weight: 700; }
input {
  width: 100%; min-height: 50px; padding: .76rem .9rem; color: var(--ink);
  background: var(--surface); border: 1px solid #9ba79f; border-radius: 8px;
}
input::placeholder { color: #6c786f; }
input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(50, 118, 87, .18); outline: none; }
.consent { display: flex; align-items: flex-start; gap: .65rem; margin: .85rem 0 0; padding-block: .25rem; color: var(--muted); font-size: .8rem; font-weight: 400; line-height: 1.55; cursor: pointer; }
.consent input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; padding: 0; margin: .15rem 0 0; accent-color: var(--forest); }
.form-message { min-height: 1.4em; margin: .7rem 0 0; color: var(--muted); font-size: .84rem; }
.form-message.error { color: var(--danger); }


footer { display: flex; justify-content: space-between; gap: 1rem; max-width: 1280px; margin: auto; padding: 1.75rem 32px; color: var(--muted); font-size: .78rem; }
footer span:first-child { color: var(--ink); font-weight: 750; }

.waitlist-page { flex: 1; width: min(48rem, 100%); margin: 0 auto; padding: clamp(2.5rem,7vh,5rem) 32px 3rem; }
.waitlist-page h1 { max-width: 14ch; margin: 0; font: 500 clamp(3rem,6vw,4.9rem)/1.04 'Newsreader',Georgia,serif; letter-spacing: -.035em; text-wrap: balance; }
.waitlist-intro { max-width: 57ch; margin: 1.5rem 0 1.75rem; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.waitlist-form { padding-block: .5rem; }
.waitlist-form .notice { margin: 1rem 0 0; }
.waitlist-proof { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.waitlist-proof p { margin: 0; font-size: .9rem; line-height: 1.65; }
.waitlist-proof p + p { margin-top: .65rem; color: var(--muted); font-size: .8rem; }
.waitlist-footer { width: min(48rem, 100%); border-top: 1px solid var(--line); font-size: .75rem; }


.signup-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.identity-fields { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; }
.join-button { width: 100%; margin-top: 1.25rem; min-height: 50px; }
.verification { margin-top: 1rem; min-width: 0; }
.consent { margin-top: 1rem; }
.form-message { margin-top: .85rem; line-height: 1.6; }
.return-link { margin-top: .5rem; }
.recovery-link { display: inline-flex; align-items: center; min-height: 44px; margin-left: 1.25rem; color: var(--forest); font-size: .86rem; }
.recovery-link:hover { text-decoration-thickness: 2px; }
.notice { padding: 1rem; border: 1px solid var(--line); border-radius: 8px; line-height: 1.6; color: var(--success); background: #e1eee4; overflow-wrap: anywhere; }
.notice.error { color: var(--danger); border-color: #d9b6b1; background: #f4dfdc; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 620px) {
  .site-header { min-height: 72px; padding-inline: 20px; }
  .waitlist-page { padding: 2.5rem 20px; }
  .waitlist-page h1 { font-size: clamp(2.8rem, 11.5vw, 4rem); }
  .waitlist-intro { font-size: 1rem; }
  .identity-fields { grid-template-columns: 1fr; gap: 1rem; }
  .recovery-link { display: flex; width: fit-content; margin: .75rem 0 0; }
  footer { flex-direction: column; padding-inline: 20px; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
