:root {
  --bg: #0b1f17;
  --surface: #12302a;
  --border: #2c5a4a;
  --text: #f6efe3;
  --muted: #b4c9bd;
  --red: #e63946;
  --gold: #ffd166;
  --snow: #ffffff;
  --radius: 14px;
  --heading: "Mountains of Christmas", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(230, 57, 70, 0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(255, 209, 102, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.5 "Inter", system-ui, sans-serif;
}

a { color: var(--gold); }
a:hover { color: var(--snow); }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px;
  background: rgba(11, 31, 23, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.logo { font-family: var(--heading); font-size: 1.6rem; color: var(--gold); }

/* Die Hard Mode switch: a real checkbox, so it works without JS. */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.track {
  position: relative; width: 44px; height: 24px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border); transition: background 0.2s;
}
.track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--muted); transition: transform 0.2s, background 0.2s;
}
.switch input:checked + .track { background: var(--red); border-color: var(--red); }
.switch input:checked + .track::after { transform: translateX(20px); background: var(--snow); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch input:checked ~ .switch-label { color: var(--text); font-weight: 600; }

.intro { padding: 40px 0 16px; max-width: 720px; }
.intro h1 {
  font-family: var(--heading); line-height: 1.1; margin: 0 0 12px;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
}
.intro p { color: var(--muted); margin: 0; }

.door-grid {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.door {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 8px 8px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.door:hover { border-color: var(--gold); }
.day {
  position: absolute; top: 22px; left: 22px; z-index: 1;
  padding: 2px 12px; border-radius: 99px; background: rgba(11, 31, 23, 0.85);
  font-family: var(--heading); font-size: 1.8rem; line-height: 1.2; color: var(--gold);
}
.poster { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 8px; }
.movie { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.title { padding: 0 6px; font-weight: 700; line-height: 1.25; }
.year { padding: 0 6px; color: var(--muted); font-size: 0.9rem; }
.watch { margin-top: auto; padding: 8px 6px 0; font-size: 0.9rem; font-weight: 600; }

/* Today's door glows; finished doors fade. January has neither class. */
.door.is-today {
  border-color: var(--red);
  background: linear-gradient(160deg, #3b1d22, var(--surface) 70%);
  box-shadow: 0 0 0 2px var(--red), 0 0 28px rgba(230, 57, 70, 0.55);
}
.door.is-today .day { background: var(--red); color: var(--snow); }
.door.is-past { opacity: 0.4; }
.door.is-past:hover, .door.is-past:focus-within { opacity: 0.85; }

/* Die Hard Mode swaps one door's movie. */
.movie-die-hard { display: none; }
body:has(#die-hard-mode:checked) .door-swap .movie-default { display: none; }
body:has(#die-hard-mode:checked) .door-swap .movie-die-hard { display: flex; }
body:has(#die-hard-mode:checked) .door-swap { border-color: var(--red); }

/* The footer's Die Hard verdict follows the toggle. */
.verdict-yes { display: none; }
body:has(#die-hard-mode:checked) .verdict-no { display: none; }
body:has(#die-hard-mode:checked) .verdict-yes { display: inline; }

.site-footer { text-align: center; padding: 24px 16px 40px; color: var(--muted); font-size: 0.9rem; }
