/* Saturday Night Movie Club — orange, minimal, slow. */

:root {
  --bg: #fff7ed;
  --bg-elev: #ffedd5;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --accent: #ea580c;
  --accent-deep: #c2410c;
  --accent-soft: #fdba74;
  --line: rgba(194, 65, 12, 0.28);
  --shadow: 0 24px 48px -24px rgba(124, 45, 18, 0.45);
  --spotlight: rgba(251, 146, 60, 0.35);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #140d09;
    --bg-elev: #1f1511;
    --ink: #fff1e6;
    --ink-soft: #d6c3b3;
    --accent: #fb923c;
    --accent-deep: #f97316;
    --accent-soft: #9a3412;
    --line: rgba(251, 146, 60, 0.3);
    --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
    --spotlight: rgba(249, 115, 22, 0.42);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) 1.25rem 3rem;
  gap: clamp(3rem, 8vw, 6rem);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 180ms ease, color 180ms ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: #fff7ed;
  border: 0;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Masthead ---------- */

.masthead {
  text-align: center;
  max-width: var(--measure);
}

.masthead__emblem {
  margin: 0 auto 1.25rem;
  width: 72px;
}

.masthead__kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
}

.masthead__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.masthead__title em {
  font-style: italic;
  color: var(--accent);
}

.masthead__tagline {
  margin: 1.75rem auto 0;
  max-width: 30rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Sections ---------- */

main {
  width: 100%;
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 6rem);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 2.25rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-deep);
  text-align: center;
  justify-content: center;
}

.section-label .rule {
  flex: 1 1 0;
  max-width: 7rem;
  height: 1px;
  background: var(--line);
}

/* Posters */

.posters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 44rem;
  margin-inline: auto;
}

.poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.poster img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.poster:hover img {
  transform: translateY(-4px);
}

.poster__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.poster__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.poster__meta {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Hosts */

.hosts {
  text-align: center;
}

.hosts__stage {
  position: relative;
  width: min(100%, 30rem);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
  isolation: isolate;
}

.hosts__stage::before {
  content: "";
  position: absolute;
  inset: 0 -10% -1.5rem;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 70%, var(--spotlight) 0%, transparent 68%);
}

.hosts__stage::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hosts__cats {
  width: 100%;
  margin: 0 auto;
}

.hosts__note {
  margin: 1.25rem auto 0;
  max-width: 28rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* House rules */

.rules {
  margin: 0 auto;
  padding: 0;
  max-width: 26rem;
  list-style: none;
  counter-reset: rule;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.4;
}

.rules li {
  counter-increment: rule;
  position: relative;
  padding: 0.9rem 0 0.9rem 2.75rem;
  border-top: 1px solid var(--line);
}

.rules li:last-child {
  border-bottom: 1px solid var(--line);
}

.rules li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}

/* ---------- Colophon ---------- */

.colophon {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.colophon p {
  margin: 1rem 0 0;
}

.trail {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
}

.trail img {
  width: 40px;
  opacity: 0.8;
}

@media (prefers-reduced-motion: no-preference) {
  .trail img {
    animation: creep 7s ease-in-out infinite;
  }
  .trail img:nth-child(2) { animation-delay: 1.2s; }
  .trail img:nth-child(3) { animation-delay: 2.4s; }

  @keyframes creep {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
  }
}

.poster__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
