/* Toronto AI Shorts — a black box theatre: dark, empty, one spotlight.
   Palette matched to the festival logo (navy skyline + coral "AI" pop).
   Fonts: Bebas Neue (display) + Courier Prime (body).
   No opacity:0 scroll-reveal anywhere (breaks headless renders). */

:root {
  --ink: #081a2c;
  --ink-2: #0f2740;
  --paper: #ece1c9;
  --paper-dim: #9fb0c2;
  --amber: #5fabdd;
  --amber-soft: #8ac4ea;
  --orange: #f0784f;
  --orange-soft: #f5a487;
  --line: rgba(236, 225, 201, 0.14);
  --display: "Bebas Neue", sans-serif;
  --body: "Courier Prime", monospace;
  --wrap: 900px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: 0.02em; }
p { margin: 0 0 1.2em; color: var(--paper-dim); }
a { color: var(--amber); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink);
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.9rem;
  color: var(--amber); margin: 0 0 14px;
}

/* ---- topbar ---- */
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(12,12,11,0.92); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wordmark { font-family: var(--display); font-size: 1.25rem; color: var(--paper); text-decoration: none; letter-spacing: 0.02em; }
.wordmark span { color: var(--orange); }
.toplinks { display: flex; gap: 20px; }
.toplinks a { color: var(--paper-dim); text-decoration: none; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.toplinks a:hover { color: var(--amber); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 2px;
  font-family: var(--body); font-weight: 700; text-decoration: none; border: 1px solid transparent;
  font-size: 0.86rem;
}
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-soft); }
.btn-ghost { border-color: var(--paper-dim); color: var(--paper); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---- hero: one spotlight in an empty room ---- */
.hero { position: relative; padding: 140px 0 120px; overflow: hidden; text-align: center; }
.spotlight {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(201,146,47,0.16) 0%, rgba(201,146,47,0.05) 40%, transparent 70%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; }
.hero-banner { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; border: 1px solid var(--line); }
.accent { color: var(--orange); }
.hero-lead { font-size: 1.05rem; max-width: 520px; margin: 24px auto 0; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---- sections: quiet, spacious, no dense devices ---- */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem); text-transform: uppercase; margin-bottom: 36px;
  color: var(--amber);
}
.prose { max-width: 680px; }
.prose p { font-size: 1.02rem; }
.venue-para { border-left: 3px solid var(--amber); padding-left: 18px; color: var(--paper); }

/* ---- the program (awards) ---- */
.award-list { margin: 0; max-width: 680px; }
.award-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.award-row:last-child { border-bottom: 1px solid var(--line); }
.award-row dt { font-family: var(--display); font-size: 1.2rem; color: var(--paper); letter-spacing: 0.02em; }
.award-row dd { margin: 0; text-align: right; color: var(--paper-dim); font-size: 0.9rem; max-width: 320px; }

/* ---- the winners ---- */
.winners-intro { max-width: 680px; font-size: 1.02rem; margin-bottom: 8px; }
.winner-list { list-style: none; margin: 24px 0 0; padding: 0; max-width: 680px; }
.winner-row {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.winner-row:last-child { border-bottom: 1px solid var(--line); }
.winner-poster-frame {
  flex: 0 0 auto; width: 64px; height: 86px; border: 1px solid var(--line);
  background: var(--ink-2); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.winner-poster-frame img { width: 100%; height: 100%; object-fit: contain; }
.winner-award {
  display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.78rem; color: var(--amber); margin-bottom: 4px;
}
.winner-title { margin: 0 0 2px; color: var(--paper); font-size: 1.02rem; }
.winner-meta { margin: 0; color: var(--paper-dim); font-size: 0.85rem; }
.winners-subhead {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 1.1rem; color: var(--paper-dim); margin: 40px 0 0; padding-top: 24px;
  border-top: 1px solid var(--line); max-width: 680px;
}
.winner-award-select { color: var(--orange); }

/* ---- before you submit (rules) ---- */
.rules-list { list-style: none; counter-reset: rulenum; margin: 0; padding: 0; max-width: 680px; }
.rules-list li {
  counter-increment: rulenum; position: relative; padding: 14px 0 14px 40px;
  border-top: 1px solid var(--line); font-size: 0.98rem; color: var(--paper-dim);
}
.rules-list li:last-child { border-bottom: 1px solid var(--line); }
.rules-list li::before {
  content: counter(rulenum); position: absolute; left: 0; top: 14px;
  font-family: var(--display); color: var(--amber); font-size: 1.1rem;
}
.rules-list b { color: var(--paper); font-weight: 700; }

/* ---- the room (venue) ---- */
.room-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.mini-deadlines { margin: 24px 0; }
.mini-row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.mini-row:last-child { border-bottom: 1px solid var(--line); }
.mini-row dt { color: var(--paper); font-weight: 700; }
.mini-row dd { margin: 0; color: var(--paper-dim); }
.mini-final dt, .mini-final dd { color: var(--amber); }
.submit-note { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 0.9rem; }
.room-map { border: 1px solid var(--line); min-height: 300px; }
.room-map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; filter: grayscale(1) invert(0.92) contrast(1.1); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; font-size: 0.84rem; color: var(--paper-dim); }
.footer-in a { text-decoration: none; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .toplinks { display: none; }
  .room-in { grid-template-columns: 1fr; }
  .award-row { flex-direction: column; gap: 4px; }
  .award-row dd { text-align: left; max-width: none; }
}
@media (max-width: 480px) {
  .hero { padding-top: 100px; }
}
