/* Fonts are served from this site, so visitors never contact a third party. */
@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/im-fell-english-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/im-fell-english-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --night: #110d0a;
  --hearth: #1b1511;
  --hearth-2: #251c15;
  --line: #3d2f23;
  --parchment: #eddfc6;
  --muted: #b3a089;
  --fire: #e9a448;
  --fire-deep: #7a4a15;

  --accent: var(--fire);
  --accent-deep: var(--fire-deep);

  --display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 1.15rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, li[tabindex]:focus-visible, video:focus-visible {
  outline: 2px solid var(--parchment);
  outline-offset: 3px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; }

.wrap { width: min(100% - 32px, 960px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .7em 1.35em;
  border-radius: 3px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn-solid { background: var(--accent); color: #17100a; }
.btn-solid:hover { background: var(--parchment); border-color: var(--parchment); }
.btn-line { background: transparent; color: var(--accent); }
.btn-line:hover { background: var(--accent-deep); color: var(--parchment); }

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  min-height: clamp(360px, 36vw, 560px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes settle { from { transform: scale(1.07); filter: brightness(.55); } to { transform: scale(1); filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .hero img { animation: none; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 34% 62% at 50% 52%, rgba(10,7,5,.78), rgba(10,7,5,0) 100%),
    linear-gradient(to bottom, rgba(17,13,10,0) 55%, var(--night) 100%);
}
@media (max-width: 700px) {
  .hero::before {
    background:
      linear-gradient(rgba(10,7,5,.62), rgba(10,7,5,.62)),
      linear-gradient(to bottom, rgba(17,13,10,0) 55%, var(--night) 100%);
  }
}
.hero-text { padding: 56px 20px 64px; max-width: 520px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  color: #fbeccd;
  text-shadow: 0 2px 24px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.9);
}
.hero p {
  margin: 14px 0 26px;
  color: var(--parchment);
  text-shadow: 0 1px 12px rgba(0,0,0,.95);
}

/* ---------- Home: campaign plates ---------- */
.plates { padding: 8px 0 72px; display: grid; gap: 56px; }
.plate { width: min(100% - 32px, 1180px); margin-inline: auto; }
.plate-art {
  display: block;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--hearth);
  overflow: hidden;
}
.plate-art img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.plate-art:hover img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .plate-art img { transition: none; } .plate-art:hover img { transform: none; } }
.plate-cap {
  display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between;
  padding: 22px 26px 24px;
  background: var(--hearth);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}
.plate-cap h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.plate-cap h2 a { color: var(--parchment); text-decoration: none; }
.plate-cap h2 a:hover { color: var(--accent); }
.plate-cap p { margin: 6px 0 0; color: var(--muted); max-width: 52ch; }
.plate-links { display: flex; flex-wrap: wrap; gap: 10px; }

footer { text-align: center; color: var(--muted); font-size: 1rem; padding: 0 20px 48px; }

/* ---------- Campaign page ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(17,13,10,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; padding: 10px 0; }
.topbar a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.topbar a:hover { color: var(--parchment); border-bottom-color: var(--accent); }
.topbar .home { color: var(--parchment); font-family: var(--display); font-size: 1.2rem; margin-right: auto; border: 0; }
.topbar .btn { padding: .4em 1em; color: #17100a; border-bottom: 1px solid var(--accent); }
.topbar .btn:hover { color: #17100a; }

.banner { position: relative; isolation: isolate; border-bottom: 3px solid var(--accent); }
.banner img { display: block; width: 100%; height: auto; min-height: 220px; object-fit: cover; }
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(17,13,10,.94) 0%, rgba(17,13,10,.55) 34%, rgba(17,13,10,0) 62%);
}
.banner-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding-bottom: clamp(16px, 3vw, 34px); }
.banner h1 { font-size: clamp(2rem, 5.2vw, 3.8rem); color: #fbeccd; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.banner p { margin: 8px 0 0; max-width: 62ch; color: var(--parchment); text-shadow: 0 1px 10px rgba(0,0,0,.9); }

section.block { padding: 56px 0 8px; scroll-margin-top: 54px; }
section.block > .wrap > h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 6px; }
.lede { color: var(--muted); margin: 0 0 22px; }

/* Video */
.theatre { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.theatre.has-list { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .theatre.has-list { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; } }
video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.now { margin: 10px 0 0; font-family: var(--display); font-size: 1.3rem; color: var(--accent); }
ul.reel { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--hearth); }
ul.reel li { padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
ul.reel li:last-child { border-bottom: 0; }
ul.reel li:hover { background: var(--hearth-2); }
ul.reel li.on { background: var(--hearth-2); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.empty { color: var(--muted); font-style: italic; }

/* Story */
.entry { padding: 28px 0 30px; border-top: 1px solid var(--line); }
.entry:first-of-type { border-top: 0; padding-top: 12px; }
.entry h3 { font-size: 1.65rem; color: var(--parchment); }
.entry .note { margin: 4px 0 14px; color: var(--muted); font-style: italic; }
.entry p, .entry ul { max-width: 70ch; }
.entry p { margin: 0 0 1em; }
.entry h4 { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--accent); margin: 22px 0 8px; }
.entry ul { margin: 0 0 1em; padding-left: 1.2em; }
.entry li { margin-bottom: .45em; }
.entry li::marker { color: var(--accent); }

/* Roster */
.roster { list-style: none; margin: 0; padding: 0; }
.char {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 20px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.char:last-child { border-bottom: 1px solid var(--line); }
.portrait {
  grid-row: span 2;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--accent-deep), var(--hearth) 78%);
  border: 1px solid var(--accent);
  font-family: var(--display); font-size: 2.1rem; color: var(--parchment);
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.char h3 { font-size: 1.5rem; }
.char .who { color: var(--muted); font-size: 1.02rem; margin-top: 2px; }
.char .who b { color: var(--accent); font-weight: 500; }
.char p { margin: 4px 0 0; max-width: 62ch; }
@media (max-width: 520px) {
  .char { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; }
  .portrait { width: 56px; height: 56px; font-size: 1.6rem; }
}

.sub { margin: 44px 0 4px; font-size: 1.5rem; }
.pagefoot { padding: 64px 0 56px; text-align: center; }
.pagefoot p { color: var(--muted); margin: 0 0 16px; }
