/* THE THIEF — shared design system
   Locked palette & type from the film's design bible. Do not invent new tokens. */

/* ---------- Fonts (self-hosted WOFF2) ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Allura";
  src: url("/assets/fonts/allura.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --charcoal: #14161b;
  --ivory: #f5efe4;
  --ivory-muted: #c9c3b6;
  --gold: #c9a97a;
  --phone-blue: #9bb4d6;

  /* parents' page (/family) only */
  --cream: #f4ecdd;
  --brown-gold: #b0793a;
  --ink: #3a2f28;
  --ink-muted: #6b5c4e;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Allura", "Segoe Script", cursive;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1080px;
  --readw: 40rem;
  --bar: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Film bars (thin gold rules, top & bottom of viewport) ---------- */
.filmbar {
  position: fixed;
  left: 0;
  right: 0;
  height: var(--bar);
  background: var(--gold);
  z-index: 50;
  pointer-events: none;
}
.filmbar--top { top: 0; }
.filmbar--bottom { bottom: 0; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}

section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }

.eyebrow {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.75rem, 9vw, 5.5rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }

.lede { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--ivory-muted); }
.muted { color: var(--ivory-muted); }
.script { font-family: var(--script); color: var(--gold); font-weight: 400; line-height: 1; }

p + p { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85em 1.5em;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--charcoal); }
.btn--gold:hover { transform: translateY(-2px); background: #d8bd93; }
.btn--ghost { border-color: rgba(201, 169, 122, 0.5); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  padding-block: 6rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%, transparent 42%, rgba(0, 0, 0, 0.55) 100%),
    var(--charcoal);
}
.hero__inner { max-width: 46rem; }
.hero .eyebrow { display: block; margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 0.4rem; }
.hero__logline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: var(--ivory-muted);
  margin-top: 0.5rem;
}
.hero__script {
  font-family: var(--script);
  color: var(--gold);
  font-size: clamp(2.6rem, 8vw, 4.25rem);
  margin-top: 1.6rem;
  line-height: 1;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ivory-muted);
  opacity: 0.75;
  text-decoration: none;
  animation: bob 2.4s var(--ease) infinite;
}
.scroll-cue svg { width: 26px; height: 26px; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Letterbox media frame (2.39:1) ---------- */
.letterbox {
  position: relative;
  aspect-ratio: 2.39 / 1;
  background: #000;
  overflow: hidden;
  border-top: 1px solid rgba(201, 169, 122, 0.35);
  border-bottom: 1px solid rgba(201, 169, 122, 0.35);
}
.letterbox img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Casting cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1.6rem 1.5rem 1.5rem;
}
.card__role {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.card__hook { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.25; margin-bottom: 0.7rem; }
.card__body { color: var(--ivory-muted); font-size: 0.97rem; flex: 1; }
.card__ask { font-size: 0.88rem; color: var(--ivory); margin-top: 1rem; font-weight: 600; }
.card__actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; }
.card__actions .btn { width: auto; }
.card__link { font-size: 0.9rem; color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; }
.card__link:hover { border-bottom-color: var(--gold); }

/* ---------- Synopsis ---------- */
.synopsis { text-align: center; }
.synopsis p { max-width: 44rem; margin-inline: auto; font-size: clamp(1.1rem, 2.5vw, 1.45rem); font-family: var(--serif); line-height: 1.5; }

/* ---------- Generic prose block ---------- */
.prose { max-width: var(--readw); margin-inline: auto; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.8rem; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.5rem; color: var(--gold); }
.prose ul { margin: 1rem 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 2.75rem;
  text-align: center;
  color: var(--ivory-muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .contact { font-weight: 600; margin-bottom: 0.6rem; }
.site-footer .footer-legal {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-weight: 500;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(201, 169, 122, 0.25);
  line-height: 1.8;
}

/* ---------- Reveal on scroll (fade-in, never pop) ----------
   Only hide when JS is present (html.js), so the site is fully readable without JS. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
  .btn:hover { transform: none; }
}

/* ---------- /family — light cream theme ---------- */
body.family {
  background: var(--cream);
  color: var(--ink);
}
body.family .eyebrow { color: var(--brown-gold); }
body.family h1, body.family h2, body.family h3 { color: var(--ink); }
body.family .script { color: var(--brown-gold); }
body.family .muted { color: var(--ink-muted); }
body.family .filmbar { background: var(--brown-gold); }
body.family .btn--gold { background: var(--brown-gold); color: var(--cream); }
body.family .btn--gold:hover { background: #c48945; }
body.family .btn--ghost { border-color: rgba(176, 121, 58, 0.5); color: var(--ink); }
body.family .btn--ghost:hover { border-color: var(--brown-gold); color: var(--brown-gold); }
body.family .promise {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(176, 121, 58, 0.25);
  border-left: 3px solid var(--brown-gold);
  border-radius: 6px;
  padding: 1.15rem 1.3rem;
}
body.family .site-footer { border-top-color: rgba(58, 47, 40, 0.15); color: var(--ink-muted); }
body.family .site-footer a { color: var(--brown-gold); }
body.family .site-footer .footer-legal { color: var(--brown-gold); border-top-color: rgba(176, 121, 58, 0.25); }
body.family a:focus-visible, body.family .btn:focus-visible { outline-color: var(--brown-gold); }

/* promises grid */
.promises { display: grid; gap: 1rem; margin-top: 1.75rem; }
@media (min-width: 720px) { .promises { grid-template-columns: 1fr 1fr; } }
.promise strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.25rem; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.6em 1em;
  z-index: 100;
  border-radius: 0 0 4px 0;
}
.skip:focus { left: 0; }
