/* =========================================================
   Indie Showrunners — landing page
   Aesthetic: prestige streaming title card.
   Dark, typographically led, restrained color.
   ========================================================= */

:root {
  /* Ink + paper */
  --ink:        #0a0a0c;   /* near-black background */
  --ink-raised: #101013;   /* faint panel lift */
  --paper:      #ece9e2;   /* warm off-white text */
  --paper-dim:  #a4a097;   /* muted secondary text */
  --paper-faint:#6c6962;   /* captions, footer meta */

  /* Single restrained accent — a muted, aged gold */
  --accent:     #c2a36b;
  --hairline:   rgba(236, 233, 226, 0.12);

  --measure: 40rem;        /* readable line length */
  --gutter:  clamp(1.5rem, 5vw, 4rem);
  --shell:   72rem;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle vignette to seat the page like a title card */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(194, 163, 107, 0.06), transparent 55%),
    radial-gradient(140% 100% at 50% 120%, rgba(0, 0, 0, 0.55), transparent 60%);
}

/* Faint film grain over everything */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 2; }

a { color: inherit; }

/* ---------- Layout shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

.wordmark {
  display: inline-block;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3.5rem, 12vh, 9rem);
  padding-bottom: clamp(3rem, 9vh, 7rem);
}

.eyebrow {
  margin: 0 0 1.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.25rem;
  height: 1px;
  margin-right: 1rem;
  vertical-align: middle;
  background: var(--accent);
  opacity: 0.7;
}

.hero-title {
  margin: 0;
  max-width: 18ch;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 1.2rem + 4.6vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--paper);
  text-wrap: balance;        /* even line lengths where supported */
  overflow-wrap: break-word; /* never let a long token overflow */
}

.hero-lede {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.7;
  color: var(--paper-dim);
}

/* ---------- The gap ---------- */
.gap {
  padding-block: clamp(3rem, 8vh, 6rem);
}

.rule {
  width: 100%;
  max-width: var(--measure);
  height: 1px;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  border: 0;
  background: var(--hairline);
}

.gap-copy {
  margin: 0;
  max-width: var(--measure);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.875rem);
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--paper);
}

/* ---------- Signup ---------- */
.signup {
  padding-top: clamp(3.5rem, 9vh, 7rem);
  padding-bottom: clamp(4.5rem, 12vh, 9rem);
}

.signup-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.signup-sub {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--paper-dim);
}

.form-wrap {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  max-width: 34rem;
}

/* Custom Kit form */
.ck-form { width: 100%; }

.ck-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.ck-row[hidden] { display: none; }

.ck-input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--ink-raised);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--paper);
  font: inherit;
  transition: border-color 0.2s ease;
}

.ck-input::placeholder { color: var(--paper-faint); }

.ck-input:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.ck-button {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.95rem 1.7rem;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ck-button:hover { background: var(--accent); color: var(--ink); }

.ck-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ck-button:disabled { opacity: 0.55; cursor: default; }

.ck-message {
  margin: 1.1rem 0 0;
  min-height: 1.2em;
  font-size: 0.95rem;
  color: var(--paper-dim);
}

.ck-form.is-success .ck-message {
  margin-top: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.4;
  color: var(--paper);
}

.ck-form.is-error .ck-message { color: #d18b7d; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2rem, 5vw, 3rem);
}

.footer-mark {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.footer-meta {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--paper-faint);
}

/* ---------- Responsive niceties ---------- */
.br-desktop { display: inline; }

@media (max-width: 40rem) {
  .br-desktop { display: none; }

  .eyebrow::before {
    width: 1.5rem;
    margin-right: 0.75rem;
  }

  /* Tighten vertical rhythm so the signup CTA reaches the fold on phones.
     The default vh-based padding is generous on tall screens. */
  .site-header { padding-block: 1.5rem; }

  .hero {
    padding-top: 2.25rem;
    padding-bottom: 2rem;
  }

  .eyebrow { margin-bottom: 1.25rem; }

  .signup {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title,
  .hero-lede,
  .eyebrow {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-lede { animation-delay: 0.08s; }
  .hero-title { animation-delay: 0.04s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.6rem); }
  to   { opacity: 1; transform: none; }
}
