/* ==========================================================================
   Young Fiction — site styles
   White ground. The reel is the only dark object on the page.
   Type: Unbounded ExtraLight for display, Inter Tight for text and labels.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200; font-display: swap; src: url("../fonts/unbounded-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/unbounded-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/unbounded-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 200; font-display: swap; src: url("../fonts/inter-tight-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/inter-tight-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --soft: #f4f4f2;
  --ink: #111111;
  --ink-2: #3b3b39;
  --grey: #6f6f6a;      /* small labels, 5:1 on white */
  --grey-lead: #8e8e8a; /* large lead text only */
  --line: #e5e5e1;
  --red: #e8321e;
  --night: #0a0a0a;     /* player backdrop */

  --display: "Unbounded", "Inter Tight", system-ui, sans-serif;
  --text: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.wrap {
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 14px;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.label {
  font-family: var(--text);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--grey);
}
.label--ink { color: var(--ink); }

.display {
  font-family: var(--display);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1;
  text-wrap: balance;
}

.lead {
  font-family: var(--text);
  font-weight: 300;
  font-size: clamp(19px, 1.75vw, 26px);
  line-height: 1.35;
  letter-spacing: -.005em;
  text-wrap: pretty;
}
.lead .soft { color: var(--grey-lead); }

.body-copy {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 34em;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  transition: gap .3s var(--ease), color .2s;
}
.more:hover { gap: 18px; }


/* ---------- Header ---------- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  flex-wrap: wrap;
  padding-block: 26px;
}
.brand img { height: 34px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.nav a {
  position: relative;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  width: 5px; height: 5px; margin-top: -3px;
  border-radius: 50%;
  background: var(--red);
}

/* ---------- Reel (home hero) ---------- */
.reel {
  position: relative;
  width: 100%;
  aspect-ratio: 2.39 / 1;
  overflow: hidden;
  background: #000;
}
/* Muted YouTube loop, shown straight away; clicks pass through it */
.reel__yt {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.reel__yt iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 106%; /* the reel has letterbox bars built in; this crops them off */
  height: auto;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  border: 0;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--soft { background: var(--soft); }

.sec-head {
  display: flex;
  align-items: flex-end;
  gap: 12px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.sec-head__no {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--grey);
  padding-bottom: .5em;
  font-variant-numeric: tabular-nums;
}
.sec-head__title {
  flex: 1;
  min-width: 0;
  font-size: clamp(26px, 2.9vw, 42px);
}
.sec-head__aside { padding-bottom: .5em; text-align: right; }

/* Intro statement under the reel */
.intro-section { padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px;
}
.intro__body { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; min-width: 0; }
.intro .lead { max-width: 30em; }

/* ---------- Screening Room: the YouTube playlist ---------- */
.playlist-section { padding-block: clamp(8px, 2vw, 24px) clamp(64px, 8vw, 112px); }
.playlist-wrap {
  width: min(100%, max(640px, calc((100vh - 230px) * 1.7778)));
  width: min(100%, max(640px, calc((100svh - 230px) * 1.7778)));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.playlist { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.playlist iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Quick links under the playlist */
.quick {
  list-style: none;
  margin: clamp(8px, 1.5vw, 20px) 0 clamp(8px, 1.5vw, 20px);
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 1000px) {
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}
.quick__item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.quick__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.39 / 1;
  object-fit: cover;
  background: #000;
  margin-bottom: 6px;
  transition: opacity .3s;
}
.quick__item:hover .quick__img { opacity: .82; }
.quick__title {
  position: relative;
  font-family: var(--display);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.4;
}
/* The film now playing gets the site's red dot */
.quick__item[aria-current="true"] .quick__title { padding-left: 12px; }
.quick__item[aria-current="true"] .quick__title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px; margin-top: -3px;
  border-radius: 50%;
  background: var(--red);
}

/* ---------- Origin ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split__img--square { aspect-ratio: 1 / 1; }
.split__text { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; min-width: 0; }
.story-is { font-size: clamp(20px, 2vw, 28px); }
.split__text .lead { max-width: 26em; }

/* ---------- Contact ---------- */
.contact-block { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.email {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(20px, 2.4vw, 34px);
  letter-spacing: -.01em;
  line-height: 1;
  overflow-wrap: anywhere;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.email:hover { border-color: var(--ink); }
.socials { display: flex; flex-wrap: wrap; gap: 14px 48px; }
.socials a { display: flex; align-items: baseline; gap: 14px; font-size: 17px; }
.socials a:hover .handle { color: var(--grey); }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding-block: clamp(40px, 5vw, 72px) 0; }
.page-head .sec-head { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.site-foot .brand img { height: 22px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-nav a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .site-head { flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 20px; }
  .brand img { height: 28px; }
  .nav { gap: 8px 22px; }
  .reel { aspect-ratio: 16 / 9; }
  .reel__yt iframe { width: 142%; }
  .sec-head { flex-wrap: wrap; }
  .sec-head__aside { width: 100%; text-align: left; padding-bottom: 0; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .quick { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
