/* ============================================
   LONGFORM CINEMA CLUB — style.css
   Black & white. Film strip rails on both edges.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Lora:ital,wght@0,400;0,500;1,400&family=Space+Mono:wght@400;700&display=swap');

:root {
  --black: #0b0b0b;
  --white: #f2efe9;
  --gray: #8a877f;
  --gray-dark: #3a3835;
  --rail-w: 34px;
  --display: 'Anton', sans-serif;
  --body: 'Lora', serif;
  --mono: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.75;
  padding-left: var(--rail-w);
  padding-right: var(--rail-w);
}

/* ---------- Film strip rails ---------- */
.rail {
  position: fixed;
  top: 0; bottom: 0;
  width: var(--rail-w);
  background-color: var(--black);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='30' viewBox='0 0 34 30'%3E%3Crect x='9' y='8' width='16' height='14' rx='3' fill='%23f2efe9'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: center top;
  z-index: 100;
}
.rail-left { left: 0; }
.rail-right { right: 0; }

/* ---------- Header ---------- */
header {
  background: var(--black);
  color: var(--white);
  padding: 1.1rem 5vw;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 2rem;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.wordmark span { color: var(--gray); }
nav { display: flex; gap: 1.75rem; }
nav a {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
nav a:hover, nav a:focus-visible, nav a[aria-current="page"] { border-bottom-color: var(--white); }
a:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
header a:focus-visible { outline-color: var(--white); }

/* ---------- Slate label (mono eyebrow) ---------- */
.slate {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-dark);
  display: block;
  margin-bottom: .9rem;
}
.slate::before { content: "▸ "; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 5vw clamp(3rem, 7vw, 5.5rem);
  border-bottom: 3px solid var(--black);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: .01em;
  max-width: 14ch;
}
.hero p.lede {
  margin-top: 1.6rem;
  max-width: 100ch;
  font-size: 1.15rem;
}
.hero .actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border: 2px solid var(--black);
  color: var(--black);
  background: transparent;
  display: inline-block;
  transition: background .15s, color .15s;
}
.btn:hover, .btn:focus-visible { background: var(--black); color: var(--white); }
.btn.solid { background: var(--black); color: var(--white); }
.btn.solid:hover, .btn.solid:focus-visible { background: transparent; color: var(--black); }

/* ---------- Frame cards (category + roster) ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 5vw; }
.section + .section { border-top: 1px solid var(--gray); }

.frame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.frame {
  border: 3px solid var(--black);
  background: var(--white);
  text-decoration: none;
  color: var(--black);
  display: flex;
  flex-direction: column;
  transition: transform .15s;
}
.frame:hover, .frame:focus-visible { transform: translateY(-4px); }
.frame .frame-top {
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .45rem .9rem;
}
.frame .frame-body { padding: 1.3rem .9rem 1.5rem; }
.frame h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  text-transform: uppercase;
  line-height: 1.05;
}
.frame p { margin-top: .6rem; font-size: .95rem; color: var(--gray-dark); }
.frame.soon { opacity: .45; pointer-events: none; }

/* ---------- Director page ---------- */
.video-wrap {
  background: var(--black);
  padding: clamp(1.5rem, 4vw, 3rem) 5vw;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 1600px;
  margin: 0 auto;
  border: 3px solid var(--white);
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-meta {
  max-width: 1600px;
  margin: 1.2rem auto 0;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article {
  max-width: 82ch;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 5vw;
}
.article h1, .article h2 {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 1.05;
}
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1.2rem; }
.article h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 2.8rem 0 1rem; }
.article p { margin-bottom: 1.2rem; }
.article a { color: var(--black); }
.article .divider {
  border: 0;
  border-top: 3px solid var(--black);
  width: 80px;
  margin: 2.5rem 0;
}

/* ---------- Footer ---------- */
footer {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem 5vw 3rem;
  margin-top: 2rem;
}
footer .foot-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}
footer p, footer a {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--white);
}
footer a { text-decoration: underline; text-underline-offset: 3px; }
footer .tagline {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  :root { --rail-w: 20px; }
  .rail { background-size: 20px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='18' viewBox='0 0 20 18'%3E%3Crect x='5' y='5' width='10' height='8' rx='2' fill='%23f2efe9'/%3E%3C/svg%3E");
  }
  nav { gap: 1rem; }
}
