/* AI Toronto Film Awards — a persistent vertical split, dark half / light
   half, echoing the two-tone divided face in the festival's own logo.
   Fonts: Big Shoulders Display (display) + Archivo (body).
   No opacity:0 scroll-reveal anywhere (breaks headless renders). */

:root {
  --ink: #0d0d0a;
  --ink-2: #1a1a15;
  --paper: #e8e3d2;
  --paper-2: #ddd6c0;
  --paper-dim: #b5ac95;
  --ink-dim: #6b6a5f;
  --steel: #4d6572;
  --steel-soft: #6f8792;
  --rust: #a3502e;
  --rust-soft: #c07248;
  --line-on-dark: rgba(232, 227, 210, 0.16);
  --line-on-light: rgba(13, 13, 10, 0.14);
  --display: "Big Shoulders Display", sans-serif;
  --body: "Archivo", sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: var(--display); font-weight: 700; margin: 0; text-transform: uppercase; letter-spacing: 0.01em; }
p { margin: 0 0 1.1em; }
a { color: inherit; }
.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;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--rust); color: var(--paper);
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

.split-kicker {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.85rem;
  color: var(--rust); margin: 0 0 10px; font-weight: 700;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 2px;
  font-family: var(--display); font-weight: 700; text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 0.92rem; border: 2px solid transparent;
}
.btn-rust { background: var(--rust); color: var(--paper); }
.btn-rust:hover { background: var(--rust-soft); }

/* ---- topbar: itself split, dark left / light right ---- */
.topbar {
  position: sticky; top: 0; z-index: 100; display: flex; min-height: 68px;
}
.topbar-half { display: flex; align-items: center; flex: 1 1 50%; padding: 0 clamp(1.2rem, 3vw, 2.4rem); }
.topbar-dark { background: var(--ink); color: var(--paper); justify-content: flex-start; }
.topbar-light { background: var(--paper); color: var(--ink); justify-content: flex-end; gap: 24px; border-bottom: 1px solid var(--line-on-light); }
.wordmark { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; color: var(--paper); text-decoration: none; letter-spacing: 0.02em; line-height: 1.1; }
.wordmark span { display: block; font-size: 0.7rem; color: var(--rust-soft); letter-spacing: 0.14em; margin-top: 2px; }
.toplinks { display: flex; gap: 22px; }
.toplinks a { color: var(--ink-dim); text-decoration: none; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.toplinks a:hover { color: var(--rust); }

/* ---- hero ---- */
.hero { background: var(--ink); }
.hero-banner { display: block; width: 100%; height: auto; }
.hero-strip { display: flex; }
.hero-strip-half { flex: 1 1 50%; padding: clamp(2rem, 5vw, 3.4rem) clamp(1.4rem, 4vw, 3rem); }
.hero-strip-dark { background: var(--ink); color: var(--paper); }
.hero-strip-light { background: var(--paper); color: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.85rem; color: var(--steel-soft); margin: 0 0 14px; font-weight: 700; }
.hero-lead { font-size: 1.25rem; line-height: 1.5; max-width: 460px; margin: 0; font-weight: 500; }
.hero-strip-light .hero-lead { color: var(--ink); }

/* ---- persistent split sections ---- */
.split-section { display: flex; align-items: stretch; position: relative; }
.split-half { flex: 1 1 50%; padding: clamp(2.6rem, 6vw, 4.6rem) clamp(1.4rem, 5vw, 3.4rem); }
.split-dark { background: var(--ink); color: var(--paper); }
.split-light { background: var(--paper); color: var(--ink); }
.seam {
  width: 6px; flex: 0 0 6px; background: linear-gradient(180deg, var(--rust), var(--steel));
}
.split-section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 20px; }
.split-dark h2 { color: var(--paper); }
.split-light h2 { color: var(--ink); }
.split-dark p { color: var(--paper-dim); }
.split-light p { color: var(--ink-dim); }

@media (max-width: 760px) {
  .split-section, .hero-strip { flex-direction: column; }
  .seam { width: 100%; height: 6px; flex: 0 0 6px; background: linear-gradient(90deg, var(--rust), var(--steel)); }
  .topbar { flex-direction: column; }
  .topbar-light { justify-content: flex-start; flex-wrap: wrap; row-gap: 12px; }
}

/* ---- generic full-width sections ---- */
.section { padding: clamp(3rem, 7vw, 5rem) clamp(1.4rem, 5vw, 3.4rem); max-width: var(--wrap); margin: 0 auto; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

/* ---- awards ---- */
.awards { background: var(--paper); }
.award-list { max-width: 760px; }
.award-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 18px 0; border-top: 1px solid var(--line-on-light);
}
.award-row:last-child { border-bottom: 1px solid var(--line-on-light); }
.award-name { font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.01em; }
.award-grand .award-name { color: var(--rust); }
.award-note { font-size: 0.88rem; color: var(--ink-dim); text-align: right; max-width: 280px; }

/* ---- rules ---- */
.rules-list { list-style: none; counter-reset: rulenum; margin: 0; padding: 0; }
.rules-list li {
  counter-increment: rulenum; position: relative; padding: 12px 0 12px 40px;
  border-top: 1px solid var(--line-on-light); font-size: 0.98rem;
}
.split-dark .rules-list li { border-top-color: var(--line-on-dark); }
.rules-list li:last-child { border-bottom: 1px solid var(--line-on-light); }
.split-dark .rules-list li:last-child { border-bottom-color: var(--line-on-dark); }
.rules-list li::before {
  content: counter(rulenum); position: absolute; left: 0; top: 12px;
  font-family: var(--display); color: var(--rust); font-size: 1.05rem; font-weight: 700;
}
.rules-list b { font-weight: 700; }
.split-light .rules-list b { color: var(--ink); }
.split-dark .rules-list b { color: var(--paper); }

/* ---- venue ---- */
.venue { background: var(--paper); }
.venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.venue-name { font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; margin: 0 0 6px; }
.venue-address { color: var(--ink-dim); margin: 0 0 18px; }
.venue-when { font-weight: 600; color: var(--steel); margin: 0 0 26px; }
.mini-deadlines { margin: 0; }
.mini-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line-on-light); font-size: 0.92rem; }
.mini-row:last-child { border-bottom: 1px solid var(--line-on-light); }
.mini-row dt { font-weight: 700; }
.mini-row dd { margin: 0; color: var(--ink-dim); }
.mini-final dt, .mini-final dd { color: var(--rust); }
.venue-map { border: 1px solid var(--line-on-light); min-height: 320px; }
.venue-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(0.4) sepia(0.15) contrast(1.05); }

@media (max-width: 760px) {
  .venue-grid { grid-template-columns: 1fr; }
}

/* ---- submit ---- */
.split-section-submit .split-light { display: flex; align-items: center; }
.submit-note { font-size: 1rem; }
.submit-note a { color: var(--rust); text-decoration: underline; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: var(--paper-dim); border-top: 4px solid var(--rust); padding: 26px 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 clamp(1.4rem, 5vw, 3.4rem); font-size: 0.86rem; }
.footer-in a { text-decoration: none; color: var(--paper-dim); }
.footer-in a:hover { color: var(--rust-soft); }
