:root {
  --ink: #1a1612;
  --paper: #f3eee6;
  --paper-2: #e6dfd3;
  --rule: #c9bfb1;
  --muted: #6f665c;
  --oxide: #8f3d32;
  --shadow: 0 18px 40px rgba(26, 22, 18, 0.08);
  color: var(--ink);
  background: var(--paper);
  font-family: Newsreader, "Iowan Old Style", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background:
  radial-gradient(1200px 500px at 10% -10%, rgba(143, 61, 50, 0.08), transparent 50%),
  var(--paper);
}
a { color: inherit; }

.mast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: end;
  padding: 1.4rem 4vw 1rem;
  border-bottom: 1px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 640;
  letter-spacing: 0.18em;
  font-size: 1.35rem;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }
.strap {
  margin: 0;
  font-family: Outfit, "Avenir Next", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}
.updated {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

.stage {
  display: grid;
  gap: 1.1rem;
  padding: 1.2rem 4vw 4rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.stage.is-stacked {
  display: flex;
  flex-direction: column;
}
.stage.is-stacked > .card { width: 100%; grid-column: auto !important; }
.card {
  position: relative;
  background: #faf7f2;
  overflow: hidden;
  min-width: 0;
  min-height: 220px;
  border: 1px solid transparent;
  transition: transform 560ms cubic-bezier(.2,.7,.2,1), opacity 420ms ease;
}
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.still, .player, .type-only { width: 100%; max-width: 100%; min-width: 0; }
.still { display: block; height: 220px; object-fit: cover; background: var(--paper-2); }
.crop-0 .still { object-position: 50% 20%; }
.crop-1 .still { object-position: 20% 40%; }
.crop-2 .still { object-position: 80% 30%; }
.crop-3 .still { object-position: 40% 70%; }
.crop-4 .still { object-position: 60% 10%; }
.player { aspect-ratio: 16/9; background: #111; }
.player iframe, video.still { width: 100%; height: 100%; border: 0; }
.copy { padding: 1rem 1.1rem 1.3rem; }
.kicker {
  margin: 0 0 0.45rem;
  font-family: Outfit, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxide);
}
h2, h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0 0 0.6rem;
}
h2 { font-size: clamp(1.45rem, 2vw, 2.1rem); overflow-wrap: break-word; }
.deck { margin: 0; color: #3c342c; font-size: 1.05rem; line-height: 1.35; overflow-wrap: break-word; }
.media-text .still, .type-only { display: none; }
.media-text { background: #1a1612; color: var(--paper); }
.media-text .deck { color: #e6dfd3; }
.media-text .kicker { color: #e7b2a8; }
.role-lead { grid-column: span 12; min-height: 68vh; }
.role-lead .card-link { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.role-lead .still, .role-lead .player { height: 100%; min-height: 68vh; }
.role-lead h2 { font-size: clamp(2.6rem, 5vw, 5.2rem); }
.role-lead .copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; }
.role-feature { grid-column: span 8; }
.role-feature .still { height: 420px; }
.role-standard, .role-text, .media-text.role-standard { grid-column: span 4; }
.pattern-mosaic .role-standard { grid-column: span 4; }
.pattern-mosaic .role-standard:nth-child(3n+1) { grid-column: span 5; }
.pattern-split .role-standard, .pattern-split .role-text, .pattern-text .role-standard { grid-column: span 4; }
.pattern-split .role-lead { grid-column: span 6; min-height: 62vh; }
.pattern-split .role-lead .card-link { display: flex; }
.pattern-split .role-lead .still { min-height: 320px; height: 320px; }
.pattern-split .role-lead h2 { font-size: clamp(2rem, 3vw, 3.3rem); }
.pattern-video .role-feature { grid-column: span 8; }
.pattern-video .role-standard { grid-column: span 4; }
.pattern-text .role-feature { grid-column: span 5; background: transparent; border-top: 1px solid var(--ink); }
.pattern-text .role-feature h2 { font-size: clamp(2.4rem, 4vw, 4.4rem); }
.pattern-hero .role-standard { grid-column: span 4; }
.pattern-hero .role-standard:nth-child(2) { grid-column: span 8; }
.card.is-arriving { animation: arrive 640ms ease; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card.is-reading { outline: 1px solid var(--oxide); }

.preview { width: min(820px, 92vw); margin: 2rem auto 4rem; }
.preview h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.preview .still, .preview .player { margin: 1rem 0 1.2rem; height: auto; max-height: 70vh; object-fit: cover; }
.preview .deck { font-size: 1.25rem; line-height: 1.45; }
.original {
  display: inline-block;
  margin-top: 1.6rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: Outfit, sans-serif;
  letter-spacing: 0.04em;
  padding: 0.95rem 1.2rem;
}
.original:hover { background: var(--oxide); }
.credit, .colophon {
  color: var(--muted);
  font-family: Outfit, sans-serif;
  font-size: 0.82rem;
}
.colophon { padding: 0 4vw 2rem; }

@media (max-width: 900px) {
  .mast { grid-template-columns: 1fr; gap: 0.3rem; }
  .updated { text-align: left; }
  .stage, .pattern-hero, .pattern-mosaic, .pattern-split, .pattern-video, .pattern-text { display: flex; flex-direction: column; }
  .role-lead, .role-feature, .role-standard, .role-text,
  .pattern-mosaic .role-standard, .pattern-hero .role-standard,
  .pattern-split .role-lead { grid-column: auto; min-height: 0; }
  .role-lead .card-link { display: flex; }
  .role-lead .still, .role-lead .player, .role-feature .still { min-height: 0; height: 240px; }
  .role-lead h2, .pattern-text .role-feature h2 { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card.is-arriving { transition: none; animation: none; }
}
