@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --ink: #070a13;
  --ink-soft: #0d1221;
  --paper: #f3f1ec;
  --paper-ink: #121521;
  --muted: #aeb5c8;
  --line: rgba(255, 255, 255, 0.16);
  --blue: #5c7cff;
  --violet: #af8cff;
  --amber: #ffbd6b;
  --font-display: "Manrope", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: white; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; }
a { color: inherit; }

.hero { min-height: 100svh; position: relative; display: grid; grid-template-rows: auto 1fr auto; isolation: isolate; overflow: hidden; }
.hero__image { position: absolute; inset: 0; z-index: -3; background: url('./assets/fableartist-hero.jpg') center / cover no-repeat; }
.hero__veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5, 8, 18, .98) 0%, rgba(5, 8, 18, .86) 33%, rgba(5, 8, 18, .2) 72%), linear-gradient(0deg, rgba(5, 8, 18, .78), transparent 42%); }
.nav { width: min(100% - 48px, 1400px); margin: 0 auto; min-height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
.brand__mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; color: #fff; font-size: .85rem; }
.nav__link { font-size: .92rem; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hero__content { width: min(100% - 48px, 1400px); margin: auto; padding: 9vh 0 11vh; }
.eyebrow { margin: 0 0 22px; color: #c8d0e8; text-transform: uppercase; letter-spacing: .17em; font-weight: 600; font-size: .78rem; }
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -.055em; line-height: .98; text-wrap: balance; }
h1 { max-width: 900px; font-size: clamp(3.4rem, 8.1vw, 8.4rem); }
.hero__lede { max-width: 620px; margin: 34px 0 36px; color: #d4d8e4; font-size: clamp(1.06rem, 1.6vw, 1.3rem); line-height: 1.55; }
.hero__note { width: min(100% - 48px, 1400px); margin: 0 auto; padding: 25px 0; border-top: 1px solid var(--line); color: #b9c0d4; font-size: .9rem; }
.button { min-height: 52px; padding: 0 24px; border: 0; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 .94rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, opacity .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.button--light { background: white; color: var(--ink); }

.manifesto { padding: clamp(86px, 10vw, 150px) max(24px, calc((100vw - 1400px) / 2)); background: var(--paper); color: var(--paper-ink); display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, 1fr); gap: clamp(56px, 9vw, 150px); }
.eyebrow--dark { color: #5d6370; }
.manifesto h2, .waitlist h2 { font-size: clamp(2.8rem, 6.2vw, 6.4rem); }
.manifesto__copy > p { max-width: 620px; margin: 42px 0 52px; font-size: clamp(1.15rem, 2vw, 1.52rem); line-height: 1.55; }
.roles { border-top: 1px solid #c6c4be; }
.roles span { display: flex; align-items: center; min-height: 61px; border-bottom: 1px solid #c6c4be; font-weight: 500; }
.roles span::before { content: ''; width: 7px; height: 7px; margin-right: 16px; border-radius: 50%; background: #4b62ff; }

.waitlist { padding: clamp(86px, 10vw, 150px) max(24px, calc((100vw - 1400px) / 2)); background: radial-gradient(circle at 82% 15%, rgba(84, 70, 190, .32), transparent 28%), var(--ink-soft); display: grid; grid-template-columns: minmax(280px, .75fr) minmax(450px, 1fr); gap: clamp(60px, 10vw, 170px); }
.waitlist__intro > p:last-child { max-width: 510px; margin: 34px 0 0; color: var(--muted); font-size: 1.08rem; }
.form { align-self: start; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; padding: 36px; border: 1px solid var(--line); background: rgba(255,255,255,.035); backdrop-filter: blur(12px); }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 9px; color: #d8dcec; font-size: .88rem; font-weight: 500; }
input, select { width: 100%; min-height: 55px; padding: 0 15px; border: 1px solid rgba(255,255,255,.22); border-radius: 2px; background: rgba(4,7,14,.58); color: white; font: 1rem var(--font-body); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aeb5c8 50%), linear-gradient(135deg, #aeb5c8 50%, transparent 50%); background-position: calc(100% - 19px) 24px, calc(100% - 14px) 24px; background-size: 5px 5px; background-repeat: no-repeat; }
option { color: #111; background: white; }
input::placeholder { color: #737b90; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #ff8b8b; }
.field__error { min-height: 18px; margin: 5px 0 0; color: #ffaaaa; font-size: .78rem; line-height: 1.4; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 6px; }
.privacy { max-width: 250px; margin: 0; color: #878fa4; font-size: .78rem; line-height: 1.5; }
.button--accent { min-width: 175px; background: var(--blue); color: white; }
.button--accent:hover { background: #718cff; }
.button[disabled] { opacity: .66; cursor: wait; transform: none; }
.button__loader { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .button__loader { display: block; }
.form__status { display: none; padding: 16px 18px; border: 1px solid; font-size: .93rem; }
.form__status.is-success { display: block; border-color: rgba(118, 226, 172, .45); background: rgba(52, 168, 112, .12); color: #a7f1ca; }
.form__status.is-error { display: block; border-color: rgba(255, 133, 133, .42); background: rgba(192, 68, 68, .12); color: #ffc0c0; }

footer { min-height: 180px; padding: 44px max(24px, calc((100vw - 1400px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-top: 1px solid var(--line); color: #939bb0; font-size: .85rem; }
footer p { margin: 0; }
footer p:last-child { text-align: right; }
.brand--footer { color: white; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .manifesto, .waitlist { grid-template-columns: 1fr; }
  .manifesto { gap: 30px; }
  .manifesto__copy > p { margin-top: 10px; }
  .waitlist { gap: 48px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer p:nth-child(2) { display: none; }
}

@media (max-width: 600px) {
  .nav, .hero__content, .hero__note { width: min(100% - 32px, 1400px); }
  .nav { min-height: 74px; }
  .nav__link { display: none; }
  .hero__veil { background: linear-gradient(0deg, rgba(5,8,18,.98) 3%, rgba(5,8,18,.62) 64%, rgba(5,8,18,.38)); }
  .hero__image { background-position: 65% center; opacity: .66; }
  .hero__content { align-self: end; padding: 22vh 0 8vh; }
  h1 { font-size: clamp(3.15rem, 16vw, 5rem); }
  .form { grid-template-columns: 1fr; padding: 24px 18px; }
  .field--full { grid-column: auto; }
  .form__footer { align-items: stretch; flex-direction: column; }
  .button--accent { width: 100%; }
  footer { min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
