@import url("/fonts/fonts.css");

:root {
  --paper: #F7F4F0;
  --paper-edge: #E9E3DC;
  --ink: #1B1512;
  --mark-ink: #121416;
  --muted: #6B625C;
  --rule: #DAD2C9;
  --accent: #cf2a22;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D0A09;
    --paper-edge: #1A1411;
    --ink: #EDEAE3;
    --mark-ink: #EDEAE3;
    --muted: #A39A91;
    --rule: #2E2622;
    --accent: #ff4a3d;
  }
}

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

html {
  background: radial-gradient(ellipse 120% 90% at 50% 0%, var(--paper) 55%, var(--paper-edge) 100%) fixed var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 40rem;
  min-height: 100vh;
  padding: 0 1.25rem;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
}
a:hover, a:focus-visible { text-decoration-color: var(--accent); }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.accent { color: var(--accent); }

.label {
  margin: 0;
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label.accent { color: var(--accent); }

/* mark */

.mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  font-optical-sizing: none;
  letter-spacing: -0.03em;
  color: var(--mark-ink);
  line-height: 1;
  white-space: nowrap;
}
.mark-note {
  display: inline-block;
  margin-left: 0.06em;
  font-style: normal;
  font-weight: 500;
  font-size: 0.36em;
  letter-spacing: 0;
  vertical-align: 0.95em;
  line-height: 0;
  color: var(--accent);
}
.mark-link { text-decoration: none; }
.mark-link .mark { font-size: 2rem; }
.mark-link.small .mark { font-size: 1.5rem; }
.mark-link.small .mark-note, .site-header .mark-note { font-size: 0.44em; vertical-align: 0.8em; }

.footnote {
  margin: 0.9rem 0 0;
  font: 400 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* header and footer */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 0 0;
}
.nav { display: flex; gap: 1.25rem; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 5rem;
  padding: 1.75rem 0 3rem;
  border-top: 1px solid var(--rule);
}
.site-footer p { margin: 0; font: 400 0.8125rem/1.4 var(--mono); color: var(--muted); }
.site-footer .contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-right: auto; }
.site-footer .contact a { color: var(--ink); text-decoration: none; }
.site-footer .contact a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* film page */

.film-head { padding: 3.5rem 0 1rem; }

h1 {
  margin: 0.75rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.875rem, 6.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.byline {
  margin: 1.25rem 0 0;
  font: 400 0.8125rem/1.5 var(--mono);
  color: var(--muted);
}

.watch { margin: 1.75rem 0 0; }
.watch.placeholder {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border: 1px dashed var(--accent);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--muted);
}
.watch.placeholder .label { color: var(--accent); margin-right: 0.35rem; }

.group { margin-top: 3.25rem; }
.group h2 {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
}

.sources { list-style: none; margin: 0; padding: 0; }
.sources li { padding: 1.1rem 0 0; }

.meta {
  margin: 0;
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.meta .outlet { color: var(--ink); font-weight: 500; }
.meta .sep { margin: 0 0.5em; }

.headline {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
  text-wrap: pretty;
}
.headline > a:first-child { text-decoration-color: color-mix(in srgb, currentColor 25%, transparent); }

.archived {
  margin-left: 0.35em;
  font: 400 0.6875rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  vertical-align: 0.15em;
}

.notes {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.fair-use {
  margin: 0;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted);
}

/* actions */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 1.75rem 0 0;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7rem 1.1rem 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font: 500 0.9375rem/1.2 var(--sans);
  text-decoration: none;
  border-radius: 2px;
}
.button:hover, .button:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.play { font-size: 0.7em; }
.text-link { font-size: 0.9375rem; }
.text-link::after { content: " →"; }

.label .sep, .byline .sep { margin: 0 0.6em; }

/* front page */

body.front { max-width: 52rem; }

.masthead { padding: 1.5rem 0 0; text-align: center; }
.masthead-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--ink);
  text-align: left;
}
.masthead-top a { text-decoration: none; }
.masthead-top a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.nameplate { margin: 0; padding: 2.5rem 0 0; }
.nameplate .mark { font-size: clamp(4.25rem, 21vw, 9rem); }
.masthead .footnote {
  margin: 1.1rem 0 0;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}


.hero { padding: 3.5rem 0 0; }
.hero h2 {
  max-width: 15em;
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.125rem, 7.5vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.hero h2 a { text-decoration: none; }
.hero h2 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.all-films { margin-top: 4.5rem; }
.all-films h2 { padding-bottom: 0.65rem; border-bottom: 1px solid var(--rule); }

.films { list-style: none; margin: 0; padding: 0; }
.films li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.film-meta {
  margin: 0;
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.film-meta .num { margin-right: 1em; color: var(--accent); font-weight: 500; }
.films h3 {
  margin: 0.3rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.25;
  text-wrap: balance;
}
.films h3 a { text-decoration: none; }
.films h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.film-links {
  display: flex;
  gap: 1.25rem;
  margin: 0.5rem 0 0;
  font: 500 0.75rem/1.5 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about {
  max-width: 36rem;
  margin-top: 3.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.about p { margin: 0; }
.about p + p { margin-top: 0.75rem; }

@media (max-width: 34rem) {
  .masthead-top { justify-content: center; letter-spacing: 0.1em; }
  .masthead-top a { display: none; }
}

/* 404 */

.notfound { padding: 4rem 0 0; }

@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
  .site-header { padding-top: 3.5rem; }
  .film-head { padding-top: 4.5rem; }
  .headline { font-size: 1.375rem; }
  .masthead { padding-top: 2rem; }
  .hero { padding-top: 4.5rem; }
  .films li { display: grid; grid-template-columns: 11rem 1fr; column-gap: 1.5rem; }
  .films .film-meta { grid-row: span 2; padding-top: 0.45rem; }
  .films h3, .film-links { grid-column: 2; }
  .films h3 { margin-top: 0; }
}
