/* ============================================================
   Wonky Line Films — static site
   Palette sampled from the logo: petrol teal + magenta
   ============================================================ */

:root {
  --teal:      #1f5e7f;   /* brand teal — header/footer, always on */
  --bg:        #1f5e7f;   /* petrol teal — matches logo background */
  --panel:     #184f6b;   /* slightly darker for cards / footer   */
  --panel-2:   #143f56;
  --magenta:   #e43ae2;
  --magenta-2: #f172ef;
  --ink:       #f6f2ef;   /* off-white body text                  */
  --muted:     rgba(246, 242, 239, 0.66);
  --line:      rgba(246, 242, 239, 0.16);

  --maxw: 1040px;
  --header-h: 76px;

  --font-display: "nexa-rust-slab-black", "Arial Black", system-ui, sans-serif;
  --font-body: "Nunito Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Dark stage — applied to the home and echo echo pages */
body.theme-dark {
  --bg:      #0e0e10;
  --panel:   #18181b;
  --panel-2: #0e0e10;
  --line:    rgba(246, 242, 239, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--magenta-2); text-decoration: none; }
a:hover { color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 48px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--teal);
  border-bottom: 3px solid var(--magenta);
}
/* Home page: header blends into the black full-bleed poster */
body.home .site-header { background: #0e0e10; border-bottom: none; }
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--magenta);
  white-space: nowrap;
  line-height: 1;
}
.brand:hover { color: var(--magenta-2); }

.nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 17px;
}
.nav a {
  color: var(--ink);
  padding: 4px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--magenta-2); }
.nav a.active {
  color: var(--magenta);
  border-bottom-color: var(--magenta);
}

/* ---------- Generic sections ---------- */
main { min-height: 60vh; padding-bottom: 56px; }
body.home main { padding-bottom: 0; }

section { padding-block: 56px; }
.section-tight { padding-block: 34px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 900; font-style: normal; letter-spacing: 0.5px; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; margin: 0 0 .3em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.05; margin: 0 0 .4em; color: var(--magenta); }
h3 { font-size: 1.5rem; margin: 0 0 .3em; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 800;
  color: var(--magenta-2);
  margin: 0 0 14px;
}

.lead { font-size: 1.15rem; color: var(--ink); }
.muted { color: var(--muted); }

/* ---------- Home (full-bleed poster on black) ---------- */
.home-poster { padding: 0; }
.home-poster a { display: block; line-height: 0; }
.home-poster img { width: 100%; height: auto; display: block; }

/* ---------- AI Films ---------- */
.film + .film { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.film h2 { margin-bottom: .5em; }
.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-2);
  margin-bottom: 22px;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.credits {
  font-size: 15px;
  color: var(--muted);
  margin-top: 14px;
}
.credits strong { color: var(--ink); font-weight: 800; }

/* ---------- Echo Echo ---------- */
.echo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
  margin-top: 40px;
}
.echo-left { position: sticky; top: 96px; }
.echo-poster { width: 100%; margin-bottom: 22px; }
.pullquote {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.15;
  color: var(--magenta-2);
  margin: 0 0 28px;
}
.factsheet {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 16px;
}
.factsheet .row { display: flex; gap: 10px; padding: 5px 0; }
.factsheet .row span:first-child { color: var(--muted); min-width: 96px; }

/* ---------- Crew ---------- */
.crew-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}
.crew-left { position: sticky; top: 96px; }
.crew-photo { width: 100%; }
.crew-role {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--magenta);
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  line-height: 1.12;
  margin: 20px 0 0;
}
.crew-body p { margin: 0 0 1.1em; }
.crew-body .subhead {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--magenta);
  font-size: 1.15rem;
  letter-spacing: 1px;
  margin: 30px 0 8px;
}
.crew-body ul { margin: 0 0 1em; padding-left: 20px; }
.crew-body li { margin: 3px 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b0b0d;
  padding: 34px 0 30px;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--magenta);
  font-size: 20px;
}
.foot-icons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.foot-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, background .15s;
}
.foot-icons a:hover { background: var(--magenta); transform: translateY(-2px); }
.foot-icons svg { width: 20px; height: 20px; fill: #fff; display: block; }
.copyright { width: 100%; color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header .wrap {
    height: auto;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .brand { font-size: 22px; }
  .nav { gap: 20px; font-size: 15px; }
  .echo-grid, .crew-grid { grid-template-columns: 1fr; }
  .echo-left { position: static; }
  .crew-left { position: static; }
  .crew-photo { max-width: 260px; }
  section { padding-block: 42px; }
}
