/* The house style of madethis.com: warm paper, a warm near-black ink, a serif for headings, one grotesk for text,
   framed things on soft shadows, space between sections. System faces only: the page loads no font. */
:root {
  --ground: #fcfbf7;
  --ground-2: #f1eee9;
  --ground-3: #e5e1da;
  --card: #ffffff;
  --ink: #2b2627;
  --ink-2: #4d4841;
  --ink-3: #665f58;
  --rule: rgba(43, 38, 39, 0.14);
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(43, 38, 39, 0.06), 0 6px 16px rgba(43, 38, 39, 0.07), 0 24px 48px rgba(43, 38, 39, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
  overflow-wrap: anywhere;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, video { display: block; max-width: 100%; }

.top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.top .name { font: 600 19px/1.2 var(--serif); }
.top nav { display: flex; gap: 20px; font-size: 15px; color: var(--ink-2); }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }

.label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; margin: 0 auto 20px; max-width: 18ch; }
h1 em { font-style: italic; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 16px; }

.hero { text-align: center; padding-top: 40px; }
.lede { max-width: 640px; margin: 0 auto 36px; color: var(--ink-2); font-size: 18px; }
.caption { margin: 14px auto 0; font-size: 14px; color: var(--ink-3); max-width: 640px; }

.frame {
  margin: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--rule);
  overflow: hidden;
}
.frame.video { background: #0d0f12; aspect-ratio: 16 / 9; }
.frame.video video { width: 100%; height: 100%; object-fit: contain; }

.scenes { display: grid; gap: 72px; }
.scene { max-width: 900px; margin: 0 auto; width: 100%; }
.scene > p:not(.label) { color: var(--ink-2); max-width: 680px; margin: 0 0 14px; }
.scene .frame.video { margin-top: 28px; }

.stills {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}
.stills a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ground-3);
  box-shadow: 0 1px 2px rgba(43, 38, 39, 0.06), 0 4px 12px rgba(43, 38, 39, 0.06), inset 0 0 0 1px var(--rule);
}
.stills img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.25s ease; }
.stills a:hover img { transform: scale(1.03); }

.what, .credits { max-width: 820px; margin: 0 auto; }
.what h2, .credits h2 { text-align: center; }
.note { padding: 28px 32px; }
.note p { margin: 0 0 14px; color: var(--ink-2); }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); font-weight: 600; }
.credits { padding-top: 16px; }
.credits h2 { font-size: 24px; }
.credits ul { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-3); }
.credits li { margin-bottom: 6px; }

footer {
  max-width: 1080px;
  margin: 40px auto 0;
  padding: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
}
footer p { margin: 0; }

dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(96vw, 1600px);
  max-height: 94vh;
}
dialog::backdrop { background: rgba(15, 20, 23, 0.82); }
dialog img { max-width: 100%; max-height: 94vh; border-radius: 12px; cursor: zoom-out; }
dialog form { position: absolute; top: 8px; right: 8px; margin: 0; }
dialog button {
  width: 40px; height: 40px;
  border: 0; border-radius: 999px;
  background: rgba(252, 251, 247, 0.9);
  color: var(--ink);
  font-size: 24px; line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top, main { padding-left: 16px; padding-right: 16px; }
  section { padding: 40px 0; }
  .scenes { gap: 56px; }
  .note { padding: 20px; }
  .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* Two close-ups side by side under a scene's video, each with its caption under the picture (one column on a phone). */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pair .frame.video { aspect-ratio: auto; margin-top: 0; }
.pair .frame.video video { aspect-ratio: 16 / 9; height: auto; display: block; }
.pair figcaption { background: var(--card); color: var(--ink-3); font-size: 14px; padding: 10px 14px; }
@media (max-width: 720px) { .pair { grid-template-columns: minmax(0, 1fr); } }
