:root {
  color-scheme: dark;
  --bg: #080606;
  --surface: #110c0b;
  --card: #18110f;
  --text: #fff5e7;
  --muted: #d2c0ad;
  --dim: #a99183;
  --gold: #e0b45f;
  --accent: #e11122;
  --border: #3a2925;
  --focus: rgba(235, 186, 92, 0.82);
  --font-body: 1rem;
  --font-lede: 1.0625rem;
  --font-heading: clamp(2.35rem, 7vw, 3.75rem);
  --font-section-heading: 1.25rem;
  --font-small: 0.875rem;
  --font-caption: 0.8125rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(136, 18, 22, 0.25) 0, transparent 360px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 3px;
}

.page-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-bottom: clamp(40px, 8vw, 76px);
}

.brand-link,
.header-link,
.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-link {
  gap: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-link img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.header-link {
  color: var(--muted);
  font-size: var(--font-small);
  font-weight: 700;
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: var(--font-caption);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.15;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: var(--font-heading);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: var(--font-section-heading);
}

p,
li {
  color: var(--muted);
  font-size: var(--font-body);
}

.lede {
  max-width: 66ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--font-lede);
}

.updated {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: var(--font-caption);
  font-weight: 700;
}

.stack {
  display: grid;
  gap: 0;
  margin-top: 36px;
}

.panel {
  padding: 26px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.panel:first-child {
  padding-top: 0;
  border-top: 0;
}

.panel:last-child {
  padding-bottom: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel p {
  margin: 0 0 14px;
}

.panel ul {
  margin: 0;
  padding-left: 1.25rem;
}

.panel li + li {
  margin-top: 8px;
}

.notice {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.tmdb-attribution {
  display: grid;
  gap: 18px;
}

.tmdb-logo {
  display: block;
  width: min(210px, 68vw);
  height: auto;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 4px;
  padding: 10px 16px;
  color: var(--text);
  font-size: var(--font-small);
  font-weight: 800;
  text-decoration: none;
  background: var(--accent);
  border-radius: 6px;
}

.action-link:hover {
  color: var(--text);
  background: #ff2636;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.page-nav a {
  color: var(--muted);
  font-size: var(--font-small);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 24px, 860px);
    padding-top: 12px;
  }

  .site-header {
    margin-bottom: 34px;
  }

  .panel {
    padding: 22px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
