/* EVOS FILM - company shell styles (home, about, header, footer).
   Film pages load this file first, then their own film stylesheet. */

:root {
  --paper: #fbfbf9;
  --ink: #1a1c1f;
  --muted: #55575b;   /* 7.1:1 on paper */
  --rule: #d9d8d3;
  --focus: #1a1c1f;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 36rem;
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --space: clamp(4rem, 10vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* Visible placeholders - search the code for "[PLACEHOLDER" to find them all. */
.ph {
  background: #fff1a8;
  color: #1a1c1f;
  font-family: var(--sans);
  font-size: 0.85em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  padding: 0.1em 0.35em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* ---------- Home ---------- */

.intro { padding-block: clamp(3rem, 9vw, 7rem) var(--space); }
.intro h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  margin-bottom: 1.5rem;
}
.intro .positioning {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.3;
  max-width: 34ch;
}

.featured { padding-bottom: var(--space); }
.featured-image { margin: 0 0 2rem; }
.featured-body {
  display: grid;
  gap: 1.25rem 3rem;
}
.featured-body h2 { font-size: clamp(2.2rem, 6vw, 4rem); }
.featured-body h2 a { text-decoration: none; }
.featured-body h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.featured-body .original { font-family: var(--serif); font-size: 1.35rem; color: var(--muted); margin-top: 0.4rem; }
.featured-body .summary { max-width: var(--measure); }
.featured-body .status { color: var(--muted); }
.text-link { font-weight: 500; }

@media (min-width: 52rem) {
  .featured-body { grid-template-columns: 1fr 1fr; align-items: start; }
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 2rem;
}

.films { padding-bottom: var(--space); }
.film-list { list-style: none; margin: 0; padding: 0; }
.film {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) 1fr;
  gap: 1.25rem clamp(1.25rem, 4vw, 3rem);
  padding-block: 2rem;
  border-top: 1px solid var(--rule);
}
.film:last-child { border-bottom: 1px solid var(--rule); }
.film h3 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.75rem; }
.film h3 a { text-decoration: none; }
.film h3 a:hover { text-decoration: underline; }
.film .line { max-width: var(--measure); margin-top: 0.75rem; }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.2rem 1.25rem;
  margin: 0;
  font-size: 0.95rem;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

@media (max-width: 30rem) {
  .film { grid-template-columns: 5.5rem 1fr; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 0.4rem; }
}

/* ---------- About ---------- */

.about { padding-block: clamp(3rem, 8vw, 6rem) var(--space); }
.about h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); margin-bottom: 2.5rem; }
.about-block {
  display: grid;
  gap: 1rem 3rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--rule);
}
.about-block h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.about-block .body { max-width: var(--measure); }
.about-portrait { max-width: 18rem; margin: 0 0 1.5rem; }
@media (min-width: 48rem) {
  .about-block { grid-template-columns: 16rem 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  padding-block: 2.5rem 3rem;
}
.site-footer p { margin: 0; }
.site-footer .name { font-weight: 500; letter-spacing: 0.22em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding-block: 0.45rem; border-bottom: 1px solid var(--rule); }
.plain-list li:first-child { border-top: 1px solid var(--rule); }
