/* recalibrate — waitlist + privacy
   Phone first; the two-column desktop layout takes over at 900px.
   The reference mockups are absolutely positioned; this is the responsive
   rebuild of the same composition. */

:root {
  --teal:            #12232A;  /* page background */
  --clay:            #D8A278;  /* button, wordmark, handwriting, first note line */
  --parchment:       #E6DAC4;  /* headline, input text, privacy intro */
  --parchment-soft:  #B5AD9F;  /* body text */
  --small-print:     #8F948C;  /* note under button, footer — lightest allowed */
  --placeholder:     #7E8783;
  --field-border:    #56625F;
  --divider:         #2A3B40;
  --sage:            #9DAA8E;  /* privacy section labels */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--teal);
  color: var(--parchment);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

/* Square corners everywhere — no pills, shadows, gradients or icons. */
input, button { border-radius: 0; font-family: inherit; }

a { color: var(--parchment-soft); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* Visually hidden but still read aloud — every field keeps a real label. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- shell ---------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 0;
}

.masthead { flex: 0 0 auto; }

.wordmark {
  display: inline-block;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--clay);
  text-decoration: none;
}

.tagline-mark { width: 71px; margin: 3px 0 0 16px; }

.main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 25px;
}

/* ---------- hero ---------- */

.hero { margin-top: 72px; text-align: center; }

.headline {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 33px;
  line-height: 1.18;
  color: var(--parchment);
}

/* Tucks just under the headline, as in the reference. */
.grow-mark { width: 209px; margin: -4px auto 0; }

/* ---------- note + signature ---------- */

.note { margin-top: 60px; }

.note-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--clay);
}

.note-body {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--parchment-soft);
}

.signature {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 18px;
  padding-right: 20px;
}
.signature-dash { width: 13px; margin-bottom: 10px; }
.signature-name { width: 54px; }

/* ---------- form ---------- */

.signup { margin-top: 72px; }

.signup-intro {
  margin: 0 0 20px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--parchment-soft);
}

.field + .field { margin-top: 8px; }

.field input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--field-border);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--parchment);
}
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus { outline: none; border-color: var(--clay); }

.submit {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  background: var(--clay);
  color: var(--teal);
  border: none;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  cursor: pointer;
}
.submit[disabled] { opacity: 0.55; cursor: default; }

/* Inline response sits under the button, in the same style as the note. */
.form-message {
  margin: 10px 0 0;
  min-height: 1.4em;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--parchment-soft);
}
.form-message[data-state='error'] { color: var(--clay); }

.signup-note {
  margin: 4px 0 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.4;
  color: var(--small-print);
}

/* ---------- footer ---------- */

.site-footer {
  flex: 0 0 auto;
  margin-top: 72px;
  padding: 0 4px;
}
.site-footer hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--divider);
}
.site-footer p {
  margin: 0;
  padding: 16px 0 28px;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.2px;
  color: var(--small-print);
}

/* ---------- privacy ---------- */

.prose { max-width: 640px; margin: 0 auto; width: 100%; }

.prose h1 {
  margin: 72px 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 33px;
  line-height: 1.18;
  color: var(--parchment);
}
.prose .intro {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--parchment);
}
.prose h2 {
  margin: 30px 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--sage);
}
.prose h2:first-of-type { margin-top: 36px; }
.prose p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--parchment-soft);
}
.prose .updated { margin-top: 22px; font-size: 11px; color: var(--small-print); }
.prose a { color: var(--parchment); }

/* The brand name is clay wherever surrounding text is another colour. */
.brand { color: var(--clay); }

/* ---------- desktop ---------- */

@media (min-width: 900px) {
  .page { padding: 40px 64px 0; }

  .wordmark { font-size: 26px; }
  .tagline-mark { width: 88px; margin-left: 18px; }

  .main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    column-gap: 80px;
    align-items: start;
    max-width: 1312px;
    width: 100%;
    margin: 0 auto;      /* stay centred in wide windows rather than stretch */
    padding: 0 96px;
  }

  .hero { margin-top: 160px; text-align: left; }
  .headline { font-size: 58px; line-height: 1.12; }
  .grow-mark { width: 340px; margin: -10px 0 0 30px; }

  .note { margin-top: 56px; max-width: 460px; }
  .note-lead { font-size: 18px; }
  .note-body { margin-top: 10px; font-size: 15px; line-height: 1.65; }

  .signature { justify-content: flex-start; margin-top: 10px; padding: 0 0 0 272px; }
  .signature-dash { width: 18px; margin-bottom: 14px; }
  .signature-name { width: 80px; }

  /* Form sits in the right column, aligned with the headline. */
  .signup { grid-column: 2; grid-row: 1 / span 3; margin-top: 226px; }
  .signup-intro { font-size: 14px; line-height: 1.4; margin-bottom: 26px; }
  .field input { padding: 14px 16px; font-size: 15px; }
  .field + .field { margin-top: 14px; }
  .submit { height: 54px; margin-top: 20px; font-size: 13px; letter-spacing: 3px; }
  .form-message { font-size: 12px; }
  .signup-note { font-size: 12px; margin-top: 8px; }

  .site-footer { margin-top: 120px; }
  .site-footer p { font-size: 12px; padding-top: 20px; }

  .prose h1 { font-size: 44px; }
  .prose .intro { font-size: 15px; }
  .prose p { font-size: 14px; }
}

/* Honour a reduced-motion preference — nothing here animates, but the
   button's opacity change is the one transition a user might notice. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
