:root {
  --text-xs: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
  --text-sm: clamp(0.9375rem, 0.9rem + 0.25vw, 1rem);
  --text-base: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --text-xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --text-hero: clamp(2.5rem, 1.4rem + 5vw, 5rem);
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;
  --bg: #f6f2ea; --surface: #fffdf8; --tint: #ece6da; --ink: #14282e; --muted: #4b5f63;
  --line: rgba(20, 40, 46, 0.14); --primary: #0f5257; --primary-hover: #0b3d41; --deep: #0d2f35;
  --cedar: #9c4124; --gold: #e9b872; --cream: #f6f2ea;
  --font-display: 'Zodiak', 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: 'General Sans', 'Segoe UI', system-ui, sans-serif;
  --radius-sm: 6px; --radius: 12px; --radius-lg: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
h3 { font-size: var(--text-lg); line-height: 1.2; }
p { margin: 0 0 var(--space-4); max-width: 62ch; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: var(--radius-sm); }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: var(--space-3) var(--space-4); z-index: 20; }
.skip:focus { left: var(--space-2); top: var(--space-2); }

.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 242, 234, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 3.75rem; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.15; padding-block: var(--space-2); }
.brand-a { font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; }
.brand-b { font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.02em; }
.top nav { display: flex; gap: var(--space-1); }
.top nav a { color: var(--ink); text-decoration: none; font-size: var(--text-sm); font-weight: 500; padding: var(--space-3); border-radius: var(--radius-sm); }
.top nav a:hover { background: var(--tint); }
@media (max-width: 760px) { .top nav { display: none; } }

.hero { position: relative; min-height: min(84vh, 46rem); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--deep); }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 28, 33, 0.9) 0%, rgba(8, 28, 33, 0.66) 46%, rgba(8, 28, 33, 0.12) 100%), linear-gradient(0deg, rgba(8, 28, 33, 0.7) 0%, rgba(8, 28, 33, 0) 55%); }
.hero-in { position: relative; padding-block: var(--space-24) var(--space-16); }
.hero h1 { font-size: var(--text-hero); max-width: 13ch; margin-bottom: var(--space-5); }
.lede { font-size: var(--text-lg); line-height: 1.45; max-width: 36ch; color: rgba(255, 255, 255, 0.92); margin-bottom: var(--space-6); }
.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-3); }
.eyebrow.dark { color: var(--cedar); }
.status { display: inline-flex; align-items: center; gap: var(--space-3); background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--space-6); }
.dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--gold); flex: none; }
[data-phase='open'] .dot, [data-phase='vote'] .dot { background: #7fe0a2; box-shadow: 0 0 0 4px rgba(127, 224, 162, 0.25); }
@media (max-width: 700px) {
  .hero { min-height: 38rem; }
  .hero-shade { background: linear-gradient(0deg, rgba(8, 28, 33, 0.95) 0%, rgba(8, 28, 33, 0.8) 55%, rgba(8, 28, 33, 0.25) 100%); }
  .hero-in { padding-block: var(--space-16) var(--space-10); }
  .status { border-radius: var(--radius); align-items: flex-start; }
  .status .dot { margin-top: 0.45rem; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: var(--space-3) var(--space-6); background: var(--primary); color: #fff; font: 600 var(--text-base)/1.2 var(--font-body); text-decoration: none; border: 0; border-radius: var(--radius); cursor: pointer; text-align: center; transition: background 0.15s, transform 0.15s; }
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--cream); color: var(--deep); }
.btn-light:hover { background: #fff; }
.btn-off, .btn-off:hover { background: var(--tint); color: var(--muted); cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid rgba(246, 242, 234, 0.5); min-height: 2.75rem; font-size: var(--text-sm); }
.btn-ghost:hover { background: rgba(246, 242, 234, 0.12); }

.sec { padding-block: clamp(var(--space-12), 8vw, var(--space-24)); }
.sec-tint { background: var(--tint); }
.sec-lede { font-size: var(--text-base); color: var(--muted); margin-bottom: var(--space-8); }

.ways { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.way { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: var(--space-6); align-items: center; padding-block: var(--space-8); border-bottom: 1px solid var(--line); }
.num { font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 2rem + 4vw, 4.5rem); line-height: 1; color: var(--cedar); }
.way h3 { margin-bottom: var(--space-2); }
.way p { margin-bottom: var(--space-2); }
.meta { font-size: var(--text-sm); color: var(--muted); font-weight: 500; }
.way .btn { min-width: 13rem; }
@media (max-width: 760px) {
  .way { grid-template-columns: 2.75rem 1fr; gap: var(--space-4); align-items: start; padding-block: var(--space-6); }
  .way .btn { grid-column: 1 / -1; width: 100%; }
}
.vote { margin-top: var(--space-10); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 4vw, var(--space-10)); display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); align-items: center; }
.vote h3 { margin-bottom: var(--space-2); }
.vote p:last-child { margin-bottom: 0; }
.vote-live { background: var(--deep); color: #fff; border-color: transparent; }
.vote-live .eyebrow.dark { color: var(--gold); }
.vote-live .btn:not(.btn-off) { background: var(--gold); color: var(--deep); }
@media (max-width: 760px) { .vote { grid-template-columns: 1fr; } .vote .btn { width: 100%; } }

.steps { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-5); position: relative; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 0.4375rem; height: 2px; background: rgba(20, 40, 46, 0.22); }
.steps li { position: relative; padding-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-sm); line-height: 1.5; color: var(--muted); }
.steps li::before { content: ''; position: absolute; top: 0; left: 0; width: 1rem; height: 1rem; border-radius: 50%; background: var(--tint); border: 2px solid var(--ink); }
.steps li.past::before { background: var(--ink); }
.steps li.now::before { background: var(--cedar); border-color: var(--cedar); box-shadow: 0 0 0 5px rgba(156, 65, 36, 0.2); }
.steps .when { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cedar); }
.steps strong { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink); line-height: 1.2; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 0.4375rem; right: auto; top: 0.5rem; bottom: 0.5rem; width: 2px; height: auto; }
  .steps li { padding: 0 0 var(--space-8) var(--space-10); }
  .steps li:last-child { padding-bottom: 0; }
}

.board { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(var(--space-8), 6vw, var(--space-16)); align-items: start; }
.rules { margin: var(--space-6) 0 0; padding-left: var(--space-5); }
.rules li { margin-bottom: var(--space-3); max-width: 52ch; }
.seats { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-2) clamp(var(--space-5), 3vw, var(--space-8)); }
.seat-group { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-5); align-items: center; padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.seat-group:last-child { border-bottom: 0; }
.seat-group strong { display: block; font-weight: 600; line-height: 1.3; }
.seat-group span { display: block; font-size: var(--text-sm); color: var(--muted); line-height: 1.45; margin-top: var(--space-1); }
.chairs { display: flex; gap: var(--space-2); }
.chairs i { width: 2.375rem; height: 2.375rem; border-radius: 50% 50% var(--radius-sm) var(--radius-sm); background: var(--primary); }
.chairs i.open { background: transparent; border: 2px dashed var(--cedar); }
@media (max-width: 860px) { .board { grid-template-columns: 1fr; } }

.sec-dark { background: var(--deep); color: var(--cream); }
.sec-dark p { color: rgba(246, 242, 234, 0.86); }
.prizes { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(var(--space-8), 6vw, var(--space-16)); align-items: start; }
.draws { margin: 0; border-top: 1px solid rgba(246, 242, 234, 0.25); }
.draws > div { display: grid; grid-template-columns: 11rem 1fr; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid rgba(246, 242, 234, 0.25); }
.draws dt { font-size: var(--text-sm); font-weight: 600; color: var(--gold); }
.draws dd { margin: 0; display: flex; justify-content: space-between; gap: var(--space-4); }
.draws b { font-family: var(--font-display); font-size: var(--text-lg); white-space: nowrap; line-height: 1.2; }
@media (max-width: 860px) { .prizes { grid-template-columns: 1fr; } .draws > div { grid-template-columns: 1fr; gap: var(--space-1); } }

.help { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-12)); align-items: start; }
.session { background: var(--tint); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 4vw, var(--space-10)); }
.paper h3 { font-family: var(--font-body); font-size: var(--text-sm); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cedar); margin: var(--space-8) 0 var(--space-3); }
.linktext { font-size: var(--text-sm); color: var(--muted); margin: var(--space-3) 0 0; user-select: all; overflow-wrap: anywhere; }
@media (max-width: 860px) { .help { grid-template-columns: 1fr; } .session .btn { width: 100%; } }

.faq { margin-top: clamp(var(--space-12), 7vw, var(--space-16)); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: var(--space-5) var(--space-8) var(--space-5) 0; min-height: 3rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: var(--space-2); top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--cedar); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding-bottom: var(--space-5); margin: 0; color: var(--muted); }

.foot { background: var(--ink); color: var(--cream); padding-block: var(--space-12); }
.foot-in p { max-width: none; }
.foot-in > p:first-child { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.35; max-width: 34ch; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-block: var(--space-6); }
.share .linktext { color: rgba(246, 242, 234, 0.8); margin: 0; }
.small { font-size: var(--text-xs); color: rgba(246, 242, 234, 0.65); margin: 0; }
