:root {
  --bg: #0a3d38;
  --bg-deep: #062925;
  --bg-mid: #0c4741;
  --card: #0d4a44;
  --text: #ecfdf5;
  --muted: #99c9c0;
  --accent: #fcd34d;
  --accent-ink: #1a2e12;
  --line: rgba(153, 201, 192, 0.22);
  --radius: 2px;
  --max: 68rem;
  --pad: clamp(1.2rem, 3.6vw, 2.2rem);
  --display: "Libre Baskerville", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; }

body {
  color: var(--text);
  background: var(--bg-deep);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

h1, h2, h3, .wordmark, .spine-word, .btn, .nav a, .kicker, .form button {
  font-family: var(--display);
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: var(--pad);
  top: 0.5rem;
  z-index: 80;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.site-header {
  padding: 1.6rem 0 0.4rem;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a:hover { color: var(--accent); }

.hero {
  display: grid;
  gap: 2.4rem;
  padding: 3.4rem 0 3.8rem;
}

@media (min-width: 64rem) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    padding: 4.4rem 0 5rem;
    min-height: min(78vh, 42rem);
  }
}

.hero h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.35rem);
  max-width: 18ch;
  margin: 0 0 1.15rem;
}

.lead {
  color: var(--muted);
  font-size: 1.16rem;
  max-width: 34rem;
  margin: 0 0 1.7rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.cta-row-follow { margin-top: 1.6rem; }

.cta-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.field {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(252, 211, 77, 0.08), transparent 42%),
    var(--card);
  min-height: 16rem;
  padding: 1.6rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.15rem;
}

.spine-word {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
  color: var(--accent);
}

.spine-word span {
  display: block;
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.28rem;
  font-weight: 600;
}

.band {
  padding: 3.2rem 0;
}

.band-alt {
  background: var(--bg);
  border-block: 1px solid var(--line);
}

.kicker {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}

.band h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  margin-bottom: 1.4rem;
  max-width: 22ch;
}

.modules {
  display: grid;
  gap: 1rem;
}

@media (min-width: 52rem) {
  .modules { grid-template-columns: repeat(3, 1fr); }
}

.module {
  border: 1px solid var(--line);
  padding: 1.2rem 1.15rem 1.25rem;
  background: var(--card);
}

.module h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.module p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.coming {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
}

.split p { margin: 0 0 1rem; color: var(--muted); }
.split p:last-child { margin-bottom: 0; }

.gates {
  display: grid;
  gap: 1rem;
}

@media (min-width: 52rem) {
  .gates { grid-template-columns: 1fr 1fr; }
}

.gate {
  border-top: 2px solid var(--accent);
  padding-top: 0.9rem;
}

.gate h3 {
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
}

.gate p {
  margin: 0;
  color: var(--muted);
}

.invite p {
  max-width: 40rem;
  color: var(--muted);
  margin: 0 0 1.3rem;
}

.cta-band {
  padding: 3.4rem 0 4rem;
}

.form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.92rem;
}

.form input,
.form textarea,
.form select {
  font: inherit;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.7rem;
  min-height: 2.75rem;
}

.form textarea { min-height: 7rem; resize: vertical; }

.form button {
  justify-self: start;
  min-height: 2.9rem;
  padding: 0.55rem 1.15rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.form button:hover { filter: brightness(1.06); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.3rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
}

.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.legal {
  padding: 3.2rem 0 4.2rem;
  max-width: 42rem;
}

.legal h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.legal p { color: var(--muted); }

.page-404 {
  min-height: 70vh;
  display: grid;
  align-content: center;
  padding: 3rem 0 4rem;
}

.page-404 h1 { margin-bottom: 0.8rem; }
.page-404 p { color: var(--muted); margin: 0 0 1.3rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .field {
    animation: rise 0.7s var(--ease) both;
  }
  .field { animation-delay: 0.08s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .field { animation: none; }
}
