/* THE AMERICANS — site styles
   Built from the poster: white ground, letterboxed stills with white gutters,
   wide geometric caps for the title. Caslon (the face of the 1776 Dunlap
   broadside) carries the reading text. */

:root {
  --paper: #ffffff;
  --ink: #1c2127;
  --ink-2: #56606b;
  --rule: #dcdfe3;
  --wash: #f2f4f5;
  --gown: #b3261e;      /* Ehler's graduation gown; used only for action */
  --gown-ink: #8e1c16;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(6px, 0.8vw, 10px);
  --measure: 36rem;
  --wide: 72rem;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --serif: "Libre Caslon Text", "Caslon", Georgia, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
@media (min-width: 760px) { body { font-size: 1.125rem; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gown-ink); }
:focus-visible { outline: 2px solid var(--gown); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; font-family: var(--sans); z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px;
  padding: 18px var(--gutter) 14px;
  font-family: var(--sans);
}
.wordmark {
  font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.95rem; text-decoration: none;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a { text-decoration: none; font-size: 0.98rem; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Letterbox strips (the poster's system) ---------- */
.strips { display: grid; gap: var(--gap); padding: 0 var(--gutter); }
.strip { position: relative; margin: 0; overflow: hidden; background: var(--wash); aspect-ratio: 2 / 1; }
@media (min-width: 760px) { .strip { aspect-ratio: 3.27 / 1; } }
.strip img { width: 100%; height: 100%; object-fit: cover; }

.title-strip { display: grid; place-items: center; }
.title-strip img { position: absolute; inset: 0; }
.title-strip::after { content: ""; position: absolute; inset: 0; background: rgba(20, 24, 28, 0.18); }
.film-title {
  position: relative; z-index: 1; margin: 0; text-align: center; color: #fff;
  font-family: var(--sans); font-weight: 500; text-transform: uppercase; line-height: 0.92;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
}
.film-title .the { display: block; font-size: clamp(1.6rem, 5.4vw, 4.6rem); letter-spacing: 0.08em; }
.film-title .americans { display: block; font-size: clamp(2.6rem, 10.4vw, 8.8rem); letter-spacing: 0.06em; margin-right: -0.06em; }

/* the one orchestrated moment: strips open like a letterbox, then the title */
@media (prefers-reduced-motion: no-preference) {
  .js .strips.opening .strip { animation: open 900ms cubic-bezier(.2,.7,.1,1) both; }
  .js .strips.opening .strip:nth-child(2) { animation-delay: 140ms; }
  .js .strips.opening .strip:nth-child(3) { animation-delay: 280ms; }
  .js .strips.opening .film-title { animation: rise 1000ms 650ms ease-out both; }
  @keyframes open { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes rise { from { opacity: 0; letter-spacing: 0.16em; } to { opacity: 1; } }
}

/* ---------- Page structure ---------- */
main { display: block; }
.band { padding: clamp(40px, 7vw, 88px) var(--gutter); }
.band + .band { padding-top: 0; }
.col { max-width: var(--measure); margin: 0 auto; }
.wide { max-width: var(--wide); margin: 0 auto; }

h1, h2, h3 { font-family: var(--sans); font-weight: 500; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.05em; }
.lede { font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.45; }
.quiet { color: var(--ink-2); }
.small { font-size: 0.92rem; }

.declaration { margin: 0 0 1.6em; text-align: center; }
.declaration blockquote { margin: 0; font-style: italic; font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.3; }
.declaration figcaption { margin-top: 0.6em; font-family: var(--sans); font-size: 0.95rem; color: var(--ink-2); }

.page-head { padding: clamp(28px, 5vw, 56px) var(--gutter) 0; }
.page-head .col, .page-head .wide { padding-top: 6px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; }
.button {
  display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 1rem;
  padding: 11px 20px; border: 1.5px solid var(--gown); background: var(--gown); color: #fff;
  text-decoration: none; border-radius: 2px; cursor: pointer; line-height: 1.2;
}
.button:hover { background: var(--gown-ink); border-color: var(--gown-ink); color: #fff; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: #fff; }
.textlink { font-family: var(--sans); }

/* ---------- Premiere / screening notice ---------- */
.notice { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 20px 0 22px; }
.notice p { margin: 0; }
.notice .when { font-family: var(--sans); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.3; }

/* ---------- Trailer ---------- */
.trailer { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.trailer button { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.trailer button img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; transition: opacity 200ms; }
.trailer button:hover img { opacity: 1; }
.trailer button:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.trailer .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 14px; color: #fff; font-family: var(--sans); font-size: 1.1rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.trailer .play { white-space: nowrap; }
.trailer .play svg { width: 64px; height: 64px; filter: drop-shadow(0 1px 10px rgba(0,0,0,.35)); }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- The four people ---------- */
.people { display: grid; gap: 34px 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .people { grid-template-columns: 1fr 1fr; } }
.person figure { margin: 0 0 12px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wash); }
.person img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: 0.25em; }
.person .full { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-2); margin: 0 0 0.5em; }

/* ---------- Screenings ---------- */
.screenings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.screening { display: grid; gap: 6px 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); grid-template-columns: 1fr; }
@media (min-width: 760px) { .screening { grid-template-columns: 11rem 1fr auto; align-items: start; } }
.screening .date { font-family: var(--sans); line-height: 1.25; }
.screening .date .day { display: block; font-size: 1.35rem; font-weight: 500; }
.screening .date .time { color: var(--ink-2); }
.screening .what { margin: 0; }
.screening .label { font-family: var(--sans); font-weight: 500; font-size: 1.15rem; display: block; }
.screening .where { display: block; }
.screening .note { display: block; color: var(--ink-2); font-size: 0.95rem; }
.screening .actions { margin-top: 2px; }
.screenings.past .screening { color: var(--ink-2); }
.empty { border-top: 1px solid var(--ink); padding: 22px 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; font-family: var(--sans); }
.form .row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .row.two { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 6px; font-size: 0.98rem; }
.form .hint { color: var(--ink-2); font-size: 0.88rem; }
.form input, .form select, .form textarea {
  min-height: 46px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #aeb5bd; border-radius: 2px; padding: 10px 12px; width: 100%;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--gown); outline-offset: 0; border-color: var(--gown); }
.form .hp { position: absolute; left: -5000px; }
.form-panel { background: var(--wash); padding: clamp(20px, 4vw, 36px); }

.signup { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 760px) { .signup { grid-template-columns: 1.4fr 1fr 0.8fr auto; } }

/* ---------- Lists, tables, credits ---------- */
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; }
dl.facts dt { font-family: var(--sans); color: var(--ink-2); }
dl.facts dd { margin: 0; }
@media (max-width: 520px) { dl.facts { grid-template-columns: 1fr; gap: 0; } dl.facts dd { margin-bottom: 10px; } }

.ai-list { list-style: none; padding: 0; margin: 0 0 1.4em; border-top: 1px solid var(--ink); }
.ai-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ai-list .tc { font-family: var(--sans); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .ai-list li { grid-template-columns: 1fr; } }

/* ---------- Press stills ---------- */
.stills { display: grid; gap: 28px 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .stills { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .stills { grid-template-columns: 1fr 1fr 1fr; } }
.stills figure { margin: 0; }
.stills img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--wash); }
.stills figcaption { font-size: 0.95rem; margin-top: 8px; }
.stills figcaption a { font-family: var(--sans); font-size: 0.9rem; }

/* ---------- Crew ---------- */
.crew { display: grid; gap: 40px; }
.crew article { display: grid; gap: 18px 32px; }
@media (min-width: 760px) { .crew article { grid-template-columns: 15rem 1fr; } }
.crew figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wash); max-width: 15rem; }
.crew img { width: 100%; height: 100%; object-fit: cover; }
.crew .role { font-family: var(--sans); color: var(--ink-2); margin: -0.4em 0 0.8em; }

/* ---------- Footer ---------- */
.site-foot { margin-top: 0; padding: 32px var(--gutter) 40px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.95rem; color: var(--ink-2); }
.site-foot .wide { display: grid; gap: 22px; }
@media (min-width: 860px) { .site-foot .wide { grid-template-columns: 1.3fr 1fr; } }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot p { margin: 0 0 8px; }

/* ---------- Two-column band on wide screens ---------- */
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }

/* phone: smaller trailer label (after the base rules so it wins) */
@media (max-width: 520px) { .trailer .play { font-size: 0.95rem; gap: 10px; } .trailer .play svg { width: 48px; height: 48px; } }

.stills figcaption a { display: inline-block; margin-top: 2px; }

.ai-what { display: block; font-family: var(--sans); font-weight: 500; margin-bottom: 2px; }

/* Substack sign-up embed */
.signup-panel { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .signup-panel { grid-template-columns: 1fr 1fr; gap: 40px; } }
.substack-embed { width: 100%; height: 320px; border: 0; background: #fff; }
