/* ============================================================
   THE GRADE - Homepage / coming-soon landing
   Cream #FFFCCB · vermilion #E64B27 · ink near-black
   Bricolage Grotesque (display) · Geist Mono (body)
   ============================================================ */

:root {
  --cream: #FFFCCB;
  --cream-deep: #F6F1B8;
  --orange: #E64B27;
  --orange-dark: #C73C1C;
  --orange-tint: #FBE3D9;
  --ink: #1A1813;
  --ink-soft: #5A564A;
  --white: #FFFEF4;
  --font-head: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Hero (fills + centers) ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 22px;
  gap: 0;
  animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .hero { animation: none; } }

.monogram {
  width: 96px;
  height: auto;
  margin-bottom: 18px;
}
.wordmark {
  width: 280px;
  max-width: 78%;
  height: auto;
  margin-bottom: 40px;
}

/* ---------- Newsletter ---------- */
.newsletter { width: 100%; max-width: 440px; }
.nl-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 10px;
}
.nl-head {
  font-family: var(--font-head);
  font-weight: 686;
  font-stretch: 75%;
  font-variation-settings: "wght" 686, "wdth" 75, "opsz" 80;
  font-size: clamp(40px, 13vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--ink);
}
.nl-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 auto 24px;
  max-width: 36ch;
}

.nl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
/* Match the survey's contact input exactly: rounded-rect, 10px corners */
.nl-input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 16px;          /* 16px stops iOS Safari from auto-zooming on focus */
  line-height: 1.5;
  text-align: center;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 14px 16px;
}
.nl-input::placeholder { color: #9a9482; }
.nl-input:focus { outline: 3px solid var(--orange); outline-offset: 1px; }

/* CTA sits below the input, full width - like the survey's primary button */
.nl-btn {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  box-shadow: 0 2px 0 0 var(--orange-dark);
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.nl-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.nl-btn:active { transform: translateY(0); box-shadow: none; }
.nl-btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.nl-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.nl-status {
  font-size: 13px;
  line-height: 1.5;
  margin: 14px 0 0;
  min-height: 18px;
}
.nl-status.ok { color: var(--orange-dark); font-weight: 600; }
.nl-status.err { color: var(--orange-dark); }

/* Success state replaces the form — plain on the yellow background */
.nl-done {
  text-align: center;
}
.nl-done h2 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.nl-done p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 7px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.foot {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 18px;
}

/* ---------- Mobile ---------- */
@media (max-width: 540px) {
  .monogram { width: 76px; margin-bottom: 14px; }
  .wordmark { width: 220px; margin-bottom: 32px; }
  .nl-sub { font-size: 13px; }
}
