/* Into Shunya — LOCKED palette (BRAND-LOCK.md). Only these eight colours. No grey, no gradients,
   no shadows. Type on paper is ink; type on teal_deep is paper; gold is one small accent per view,
   and the art already carries it, so CSS never uses gold. */
@font-face {
  font-family: "Shunya Serif";
  src: url("/fonts/serif-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #FEFEFE;       /* matches the plates' ground exactly, so art sits seamless */
  --teal: #165D64;
  --teal-deep: #0E4957;
  --terracotta: #C86647;
  --terra-warm: #D36546;
  --terra-pale: #E4C0A8;
  --gold: #D4A142;       /* reserved for the art; do not use in CSS */
  --ink: #120704;
  --measure: 34rem;
  --serif: "Shunya Serif", "Liberation Serif", "Times New Roman", serif;
  --body: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--terra-pale); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 0.5rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.nav a {
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--terra-pale); }
.nav a[aria-current="page"] { border-bottom-color: var(--terracotta); }

/* ---------- layout ---------- */
main { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.prose { max-width: var(--measure); margin: 0 auto; }
section { padding: 2.5rem 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 7vw, 3.25rem); margin: 0 0 0.75rem; }
h2 { font-size: 1.5rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.25rem; }
p { margin: 0 0 1.1rem; }

.lede { font-size: 1.2rem; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 1rem 0 2rem; }
.hero picture img { width: 100%; margin: 0 auto; }
.hero h1 { margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 0.1em; }
.hero .tagline { font-size: 1.2rem; margin: 0 0 1.5rem; font-style: italic; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 1.5rem 0 0; }
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  background: var(--teal-deep);
  color: var(--paper);
  border: 2px solid var(--teal-deep);
}
.button:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 0.2em; }
.button.ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.button.ghost:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--paper); text-decoration: none; }

/* ---------- art ---------- */
.art { margin: 0 auto 1.5rem; }
.art.narrow { max-width: 22rem; }

/* ---------- films ---------- */
.player {
  position: relative;
  width: 100%;
  max-width: 56rem;
  margin: 1.5rem auto 0;
  aspect-ratio: 16 / 9;
  background: var(--terra-pale);
  border-radius: 6px;
  overflow: hidden;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- film cards ---------- */
/* Flat by the brand rules: a hairline in terra_pale, no shadow, no gradient, no grey.
   Type is ink on paper; the gold accent lives in the thumbnails, never in CSS. */
.strip { border-top: 1px solid var(--terra-pale); }
.strip h2, .films-list ~ h2, h2.films-heading { text-align: center; }
.films { display: grid; gap: 1.5rem; margin: 1.5rem auto 0; max-width: 56rem; }
.film {
  display: grid;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--terra-pale);
}
.film:last-child { border-bottom: 0; padding-bottom: 0; }
.film img { width: 100%; border-radius: 6px; border: 1px solid var(--terra-pale); }
.film-title { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.film:hover .film-title { text-decoration: underline; text-underline-offset: 0.2em; }
.film-line { font-size: 0.98rem; }
.film-meta { font-size: 0.9rem; font-style: italic; }

@media (min-width: 48rem) {
  .films-strip { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .films-strip .film { border-bottom: 0; padding-bottom: 0; }
  .films-list .film { grid-template-columns: 18rem 1fr; column-gap: 1.5rem; align-items: start; }
  .films-list .film img { grid-row: span 3; }
  .films-list .film-title { font-size: 1.25rem; }
}

/* ---------- follow ---------- */
.links { list-style: none; margin: 1.5rem auto 0; padding: 0; max-width: 26rem; }
.links li { border-top: 1px solid var(--terra-pale); }
.links li:last-child { border-bottom: 1px solid var(--terra-pale); }
.links a, .links span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0.25rem;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
}
.links small { font-family: var(--body); font-weight: 400; font-size: 0.9rem; }
.links span { font-style: italic; }

/* ---------- privacy ---------- */
.policy h2 { font-size: 1.2rem; margin-top: 2rem; }
.policy .updated { font-size: 0.95rem; font-style: italic; }

/* ---------- footer ---------- */
.site-footer {
  max-width: 64rem;
  margin: 3rem auto 0;
  padding: 2rem 1rem 2.5rem;
  border-top: 1px solid var(--terra-pale);
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink);
}
.site-footer p { margin: 0.25rem 0; }

@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
  .site-header { padding: 2rem 1.5rem 0.5rem; }
  main { padding: 0 1.5rem; }
  section { padding: 3.5rem 0; }
  .hero { padding-top: 2rem; }
}
