/* Rhodes College AI & Robotics Club — from the "AI Robotics Club v7" design. */

:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --fg: #f2f2f2;
  --body: #c2c2c2;
  --muted: #a0a0a0;
  --rose: #f25c78;
  --teal: #3ec7b0;
  --amber: #f5b841;
  --blue: #6c96ff;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* Base */
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--rose); }
::selection { background: var(--rose); color: var(--bg); }
input::placeholder { color: #7a7a7a; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.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; }
.c-rose { color: var(--rose); }
.c-teal { color: var(--teal); }
.c-amber { color: var(--amber); }
.c-blue { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.page { min-height: 100vh; background: var(--bg); color: var(--fg); font-family: var(--sans); overflow-x: hidden; }

/* Scroll-in reveal: main.js fades these in as they enter the viewport. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }

/* Shared type */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.display { margin: 0; font-weight: 400; font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.03em; line-height: 1; }

/* Mascot ("Bit"). main.js moves the eyes, blinks, and wiggles the antenna. */
.mascot { width: 100%; height: 100%; display: block; overflow: visible; }
.mascot [data-antenna] { transform-box: view-box; transform-origin: 488px 892px; }
.mascot [data-eye] { transform-box: fill-box; transform-origin: center; transition: transform .09s; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-bar { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand, .brand:hover { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.brand-mark { width: 46px; height: 46px; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-kicker { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; }
.brand-name { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.nav-wide { display: flex; align-items: center; gap: 36px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.nav-join { padding: 10px 18px; border: 1px solid rgba(242, 92, 120, 0.5); border-radius: 999px; color: var(--rose); }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--fg); border-radius: 999px; height: 40px; padding: 0 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.nav-mobile { display: flex; flex-direction: column; padding: 8px var(--gutter) 24px; font-size: 28px; gap: 4px; }
.nav-mobile[hidden] { display: none; }
.nav-mobile a { padding: 10px 0; border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: 0; color: var(--rose); }

/* Hero */
.hero { position: relative; min-height: 100svh; padding-top: 88px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #0a0a0a 0%, rgba(10, 10, 10, 0.8) 30%, rgba(10, 10, 10, 0) 47%); pointer-events: none; opacity: 0; transition: opacity .6s; }
.hero-shade.is-on { opacity: 1; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 20%; background: linear-gradient(to bottom, rgba(10, 10, 10, 0), #0a0a0a 85%); pointer-events: none; }
.hero-content { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 8vh, 96px); will-change: transform, opacity; }
.hero-title { margin: 0; font-weight: 400; font-size: clamp(40px, min(4.8vw, 9vh), 80px); line-height: 0.98; letter-spacing: -0.035em; max-width: clamp(300px, 40vw, 540px); text-wrap: balance; }
.hero-title span { display: inline-block; }
.hero-title .dim { color: var(--muted); }
.hero-body { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 32px; max-width: clamp(300px, 40vw, 540px); }
.hero-lede { margin: 0; max-width: 46ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--body); text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { height: 48px; padding: 0 24px; border-radius: 999px; display: flex; align-items: center; font-size: 15px; }
.btn-primary, .btn-primary:hover { background: var(--fg); color: var(--bg); font-weight: 500; }
.btn-primary:hover { background: var(--rose); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: var(--rose); }

/* Mission */
.mission { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(64px, 8vw, 112px); }
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
.mission-statement { margin: 0; grid-column: span 2; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -0.02em; text-wrap: pretty; }
.accent { color: var(--rose); }

/* Programs */
.programs { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line-strong); }
.program { padding: 32px 28px 40px 0; border-bottom: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 16px; }
.program:last-child { padding-right: 0; }
.program-num { font-family: var(--mono); font-size: 12px; }
.program h3 { margin: 0; font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.program p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; text-wrap: pretty; }

/* Events: upcoming events from events.py, then where events get posted.
   Previous events lists the ones that have ended. */
.events { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter); }
.events-past { padding-top: 0; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 80px); }
.events .eyebrow { margin-bottom: 20px; }
.events-body { grid-column: span 2; display: flex; flex-direction: column; gap: 12px; }
.events-empty { margin: 0 0 16px; max-width: 44ch; color: var(--body); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; text-wrap: pretty; }
/* Each card's title link is stretched over the whole card (the ::after), so
   anywhere on the card opens the event page. */
.event-card { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px clamp(24px, 3vw, 36px); margin-bottom: 16px; padding: clamp(16px, 2vw, 24px); border: 1px solid rgba(242, 92, 120, 0.35); border-radius: 16px; background: var(--surface); transition: border-color .15s; }
.event-card:hover { border-color: rgba(242, 92, 120, 0.8); }
.event-flyer { flex: 0 1 240px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); }
.event-flyer img { display: block; width: 100%; height: auto; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.event-card:hover .event-flyer img { transform: scale(1.03); }
.event-info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.event-when { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); }
.event-title { margin: 0; font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.event-title a, .event-title a:hover, .past-title a, .past-title a:hover { color: var(--fg); }
/* z-index keeps the link above the hover-animated bits (moved elements paint on top otherwise). */
.event-card, .past-event { isolation: isolate; }
.event-title a::after, .past-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.event-title a:focus-visible, .past-title a:focus-visible { outline: none; }
.event-title a:focus-visible::after, .past-title a:focus-visible::after { outline: 2px solid var(--rose); outline-offset: 3px; }
.event-sub { margin: -4px 0 0; color: var(--fg); font-size: 17px; }
.event-speaker { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.event-speaker strong { color: var(--fg); font-weight: 500; }
.event-note { margin: 0; color: var(--muted); font-size: 14px; }
.event-link { margin-top: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); transition: transform .2s; }
.event-card:hover .event-link { transform: translateX(4px); }
.past-event { position: relative; display: flex; align-items: center; gap: 20px; padding: 16px 24px 16px 16px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; background: var(--surface); transition: border-color .15s; }
.past-event:hover { border-color: rgba(242, 92, 120, 0.5); }
.past-flyer { flex: none; width: 72px; border-radius: 8px; overflow: hidden; }
.past-flyer img { display: block; width: 100%; height: auto; filter: grayscale(.6); transition: filter .2s; }
.past-event:hover .past-flyer img { filter: none; }
.past-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.past-info .event-when { color: var(--muted); }
.past-title { margin: 0; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; text-wrap: pretty; }
.past-speaker { margin: 0; color: var(--muted); font-size: 14px; }
.past-go { flex: none; font-family: var(--mono); color: var(--muted); transition: color .15s, transform .2s; }
.past-event:hover .past-go { color: var(--rose); transform: translateX(4px); }

/* Event page (/events/<slug>): an article built from an entry in events.py. */
.post { max-width: var(--max); margin: 0 auto; padding: calc(64px + clamp(40px, 6vw, 88px)) var(--gutter) 0; }
.post-head { padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-strong); }
.post-back { display: inline-block; margin-bottom: clamp(32px, 4vw, 56px); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 28px; }
.post-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.post-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.post-status.is-upcoming { color: var(--rose); }
.post-status.is-live { color: var(--teal); }
.post-status.is-live::before { animation: post-pulse 1.6s ease-in-out infinite; }
.post-status.is-past { color: var(--muted); }
@keyframes post-pulse { 50% { opacity: .2; } }
.post-title { margin: 0; max-width: 18ch; font-weight: 400; font-size: clamp(38px, 6.2vw, 88px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.post-sub { margin: 24px 0 0; color: var(--rose); font-size: clamp(19px, 2vw, 26px); letter-spacing: -0.01em; }

.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); grid-template-areas: "body details" "body flyer" "body ."; grid-template-rows: auto auto 1fr; gap: 24px clamp(40px, 7vw, 112px); padding: clamp(40px, 5vw, 72px) 0 clamp(80px, 10vw, 128px); }
.post-details { grid-area: details; padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.post-details dl { margin: 0; display: grid; gap: 18px; }
.post-details dt { margin-bottom: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.post-details dd { margin: 0; font-size: 17px; line-height: 1.4; }
.post-cal { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-cal .btn { justify-content: center; font-size: 14px; }
.post-ended { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.6; }
.post-ended a { color: var(--rose); }

.post-body { grid-area: body; max-width: 66ch; }
.post-body p { margin: 0 0 1.4em; color: var(--body); font-size: 18px; line-height: 1.75; text-wrap: pretty; }
.post-body .post-lede { color: var(--fg); font-size: clamp(21px, 2vw, 25px); line-height: 1.55; letter-spacing: -0.01em; }
.post-body h2 { display: flex; align-items: center; gap: 16px; margin: 56px 0 8px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.post-body h2::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.post-questions { margin: 0; padding: 0; list-style: none; }
.post-questions li { display: flex; align-items: baseline; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); font-size: clamp(20px, 2vw, 24px); line-height: 1.35; letter-spacing: -0.01em; text-wrap: pretty; }
.post-q-num { flex: none; width: 2ch; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.post-body .post-callout { margin: 32px 0 0; padding: 18px 22px; border-left: 2px solid var(--rose); border-radius: 0 12px 12px 0; background: rgba(242, 92, 120, 0.07); color: var(--fg); font-size: 16px; line-height: 1.5; }
.post-speaker { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.post-avatar { flex: none; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--rose), var(--blue)); color: var(--bg); font-size: 28px; font-weight: 600; letter-spacing: 0.02em; }
img.post-avatar { display: block; object-fit: cover; padding: 3px; }
.post-details-speaker { display: flex; align-items: center; gap: 10px; }
.post-details-speaker img { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.post-body .post-speaker-name { margin: 0; color: var(--fg); font-size: 20px; line-height: 1.3; }
.post-body .post-speaker-role { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.post-flyer { grid-area: flyer; margin: 0; }
.post-flyer img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 12px; }
.post-flyer figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.post-flyer figcaption a { color: var(--rose); }

.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.post-cta h2 { margin: 0; max-width: 16ch; font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.channel, .channel:hover { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 24px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; background: var(--surface); color: var(--fg); transition: border-color .15s; }
.channel:hover { border-color: rgba(242, 92, 120, 0.5); }
.channel-info { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.channel-name { font-size: 20px; font-weight: 500; }
.channel-meta { color: var(--muted); font-size: 14px; }
.channel-go { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); }

/* Join */
.join { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.join-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 180px) var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.join-mascot { width: clamp(110px, 14vw, 160px); height: clamp(110px, 14vw, 160px); }
.join-mascot-bounce { width: 100%; height: 100%; }
.join-title { margin: 0; font-weight: 400; font-size: clamp(44px, 7vw, 104px); letter-spacing: -0.035em; line-height: 0.98; max-width: 14ch; text-wrap: balance; }
.join-lede { margin: 0; max-width: 44ch; color: var(--muted); font-size: 17px; line-height: 1.6; }
.join-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; max-width: 520px; margin-top: 8px; }
.join-form[hidden] { display: none; }
.join-form input { flex: 1 1 240px; height: 52px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(18, 18, 18, 0.8); color: var(--fg); padding: 0 22px; font-size: 15px; font-family: inherit; outline: none; }
.join-form input:focus, .join-form input[aria-invalid="true"] { border-color: var(--rose); }
.join-form button { height: 52px; padding: 0 28px; border-radius: 999px; border: none; background: var(--fg); color: var(--bg); font-size: 15px; font-weight: 500; font-family: inherit; cursor: pointer; }
.join-form button:hover { background: var(--rose); }
.join-form button:active { transform: translateY(1px); }
.join-form button:disabled { opacity: 0.6; cursor: progress; }
.join-error { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--rose); }
.join-error[hidden] { display: none; }
.join-done { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--rose); padding: 16px 24px; border: 1px solid rgba(242, 92, 120, 0.4); border-radius: 999px; outline: none; }
.join-done a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.join-done a:hover { color: var(--rose); }

/* Spam trap: kept off screen, left empty by people. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Turnstile captcha: invisible for most visitors; a check shows here only when Cloudflare needs one. */
.join-form .cf-turnstile { flex-basis: 100%; display: flex; justify-content: center; }
.signup-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* Join page (/join) */
.nav-join[aria-current="page"] { background: rgba(242, 92, 120, 0.1); }
.signup { padding-top: 64px; }
.signup-inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(80px, 10vw, 140px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: start; }
.signup-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.signup-mascot { width: clamp(96px, 11vw, 140px); height: clamp(96px, 11vw, 140px); margin-bottom: 8px; }
.signup-title { margin: 0; font-weight: 400; font-size: clamp(44px, 6vw, 88px); letter-spacing: -0.035em; line-height: 0.98; max-width: 10ch; text-wrap: balance; }
.signup-lede { margin: 0; max-width: 40ch; color: var(--muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.signup-panel { display: flex; flex-direction: column; gap: 28px; padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; background: var(--surface); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px 20px; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-label { padding: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field-opt { margin-left: 6px; color: #7a7a7a; letter-spacing: 0.04em; text-transform: none; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea { width: 100%; height: 52px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: var(--bg); color: var(--fg); padding: 0 22px; font-size: 15px; font-family: inherit; outline: none; transition: border-color .15s; }
.field textarea { height: auto; min-height: 136px; border-radius: 22px; padding: 16px 22px; line-height: 1.55; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.36); }
.field input:focus, .field textarea:focus, .field input[aria-invalid="true"] { border-color: var(--rose); }
.field-hint { margin: 0; font-size: 13px; color: var(--muted); }
/* R number: the "R" is fixed inside the field and people type the digits after it. */
.prefixed { position: relative; }
.prefixed .prefix { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 15px; color: var(--fg); pointer-events: none; }
.field .prefixed input { padding-left: 42px; font-family: var(--mono); letter-spacing: 0.06em; }
.field-error, .form-error { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--rose); }
.form-error { font-size: 13px; padding: 14px 20px; border: 1px solid rgba(242, 92, 120, 0.4); border-radius: 16px; }
.year-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 8px; }
.year { position: relative; cursor: pointer; }
.year-input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.year-box { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 16px; transition: border-color .15s, color .15s, background .15s; }
.year-num { font-size: 19px; letter-spacing: -0.01em; }
.year-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em; color: var(--muted); text-transform: lowercase; white-space: nowrap; }
.year:hover .year-box { border-color: rgba(255, 255, 255, 0.4); }
.is-invalid .year-box { border-color: rgba(242, 92, 120, 0.5); }
.year-input:checked + .year-box { border-color: var(--rose); background: rgba(242, 92, 120, 0.08); color: var(--rose); }
.year-input:checked + .year-box .year-tag { color: var(--rose); }
.year-input:focus-visible + .year-box { outline: 2px solid var(--rose); outline-offset: 3px; }
.signup-submit { align-self: flex-start; height: 52px; padding: 0 28px; border-radius: 999px; border: none; background: var(--fg); color: var(--bg); font-size: 15px; font-weight: 500; font-family: inherit; cursor: pointer; }
.signup-submit:hover { background: var(--rose); }
.signup-submit:active { transform: translateY(1px); }
.signup-submit:disabled { opacity: 0.6; cursor: progress; }
.signup-done { gap: 20px; }
.signup-done h2 { margin: 0; font-weight: 400; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.02; }
.signup-done p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.signup-done .hero-actions { margin-top: 8px; }

/* Peeking mascot, bottom right. main.js slides it up past the hero. */
.peeker { position: fixed; right: clamp(12px, 3vw, 32px); bottom: -6px; z-index: 30; width: 88px; height: 88px; display: block; transform: translateY(120%); transition: transform .7s cubic-bezier(.3, 1.5, .5, 1); }
.peeker-bubble { position: absolute; right: 76px; bottom: 62px; white-space: nowrap; background: var(--fg); color: var(--bg); font-family: var(--mono); font-size: 12px; padding: 9px 13px; border-radius: 14px 14px 2px 14px; opacity: 0; transform: translateY(8px) scale(.96); transform-origin: right bottom; transition: opacity .25s, transform .35s cubic-bezier(.3, 1.5, .5, 1); pointer-events: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--rose); }

/* Admin dashboard and check-in pages */
.tool { max-width: var(--max); margin: 0 auto; padding: calc(64px + clamp(32px, 5vw, 72px)) var(--gutter) clamp(64px, 8vw, 112px); }
.tool-narrow { max-width: 480px; }
.tool-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; padding-bottom: clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line-strong); }
.tool-head .post-tags { margin-bottom: 0; }
.tool-title { margin: 14px 0 0; max-width: 22ch; font-weight: 400; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.tool-meta { margin: 16px 0 0; max-width: 60ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.tool-meta code, .tool-empty code { font-family: var(--mono); font-size: .92em; color: var(--fg); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 32px; padding: clamp(24px, 3vw, 32px); border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); }
.tool-panel .field { align-self: stretch; }
.tool-section { padding-top: clamp(40px, 5vw, 56px); }
.tool-section > h2, .scan-recent h2 { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tool-section > h2::after, .scan-recent h2::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.tool-note { margin: 0 0 20px; max-width: 64ch; color: var(--body); font-size: 15px; line-height: 1.6; }
.tool-empty { margin: 0; color: var(--muted); font-size: 15px; }
.text-link { color: var(--rose); }
.text-link:hover { text-decoration: underline; }
button.btn { font-family: inherit; cursor: pointer; }
button.btn-primary { border: 0; }
button.btn-ghost { background: none; color: var(--fg); }
button.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.link-btn { padding: 6px 0; border: 0; background: none; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; cursor: pointer; }
.link-btn:hover { color: var(--rose); }
.dim { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; font-family: var(--mono); font-size: 10px; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); vertical-align: 2px; }

.stats { display: flex; flex-wrap: wrap; gap: 12px; padding-top: clamp(28px, 4vw, 40px); }
.stat { display: flex; flex-direction: column; gap: 8px; min-width: 150px; padding: 18px 22px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.stat-num { font-size: 36px; line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.admin-event, .admin-event:hover { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 12px; padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--fg); transition: border-color .15s; }
.admin-event:hover { border-color: rgba(242, 92, 120, 0.5); }
.admin-event-info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.admin-event-title { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.admin-event-stats { display: flex; gap: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.admin-event-stats b { color: var(--fg); font-size: 15px; font-weight: 500; }

.coord-list { margin: 0 0 24px; padding: 0; list-style: none; border: 1px solid var(--line-strong); border-radius: 16px; }
.coord { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.coord:last-child { border-bottom: 0; }
.coord-name { font-size: 16px; }
.coord-link { width: 100%; min-width: 0; height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--muted); font-family: var(--mono); font-size: 12px; }
.coord-actions { display: flex; align-items: center; gap: 16px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.inline-form .field { flex: 0 1 320px; }
.inline-form .btn { height: 52px; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 16px; }
.data { width: 100%; border-collapse: collapse; font-size: 15px; }
.data th { padding: 14px 16px; border-bottom: 1px solid var(--line-strong); font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: left; white-space: nowrap; }
.data td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data tr:last-child td { border-bottom: 0; }
.data td:last-child { text-align: right; }

/* Check-in scanner: made for a phone held at the door. */
.scan { max-width: 600px; margin: 0 auto; padding: calc(64px + 24px) 16px 48px; }
.scan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.scan-title { margin: 8px 0 0; font-weight: 400; font-size: clamp(20px, 5vw, 26px); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.scan-count { flex: none; display: flex; flex-direction: column; align-items: flex-end; margin: 0; }
.scan-count-num { font-size: 40px; line-height: 1; letter-spacing: -0.02em; color: var(--teal); }
.scan-count-label { margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.scan-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 20px; background: #000; }
.scan-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.scan-guide { position: absolute; left: 10%; right: 10%; top: 34%; height: 32%; border: 2px dashed rgba(255, 255, 255, 0.55); border-radius: 12px; pointer-events: none; }
.scan-guide span { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
.scan-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; background: rgba(10, 10, 10, 0.82); text-align: center; }
.scan-start[hidden], .scan-start [hidden] { display: none; }
.scan-start-note { margin: 0; max-width: 34ch; color: var(--body); font-size: 14px; line-height: 1.5; }
.scan-result { margin-top: 14px; padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.scan-result p { margin: 0; }
.scan-result-title { font-size: 20px; line-height: 1.3; }
.scan-result .scan-result-sub { margin-top: 6px; font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: 0.04em; color: var(--muted); }
.scan-result.is-ok { border-color: rgba(62, 199, 176, 0.55); background: rgba(62, 199, 176, 0.08); }
.scan-result.is-ok .scan-result-title { color: var(--teal); }
.scan-result.is-dup { border-color: rgba(245, 184, 65, 0.55); background: rgba(245, 184, 65, 0.08); }
.scan-result.is-dup .scan-result-title { color: var(--amber); }
.scan-result.is-err { border-color: rgba(242, 92, 120, 0.55); background: rgba(242, 92, 120, 0.08); }
.scan-result.is-err .scan-result-title { color: var(--rose); }
.scan-more { margin-top: 12px; border: 1px solid var(--line-strong); border-radius: 16px; }
.scan-more summary { padding: 14px 20px; color: var(--body); font-size: 15px; cursor: pointer; }
.scan-more[open] summary { border-bottom: 1px solid var(--line); }
.scan-manual { display: flex; flex-direction: column; gap: 18px; padding: 20px; }
.scan-manual .btn { align-self: flex-start; }
.scan-photo { display: flex; flex-direction: column; gap: 12px; padding: 20px; color: var(--body); font-size: 14px; }
.scan-recent { margin-top: 32px; }
.scan-list { margin: 0; padding: 0; list-style: none; }
.scan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.scan-row-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.scan-row-name { font-size: 16px; overflow-wrap: anywhere; }
.scan-row-name.is-missing { color: var(--muted); font-style: italic; }
.scan-row-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.scan-row-actions { flex: none; display: flex; gap: 14px; }
.scan-edit input { flex: 1; min-width: 0; height: 38px; padding: 0 14px; border: 1px solid var(--rose); border-radius: 999px; background: var(--bg); color: var(--fg); font: inherit; font-size: 15px; outline: none; }
.scan-who { margin: 28px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Narrow layout: matches the scene's own 820px breakpoint. */
@media (max-width: 819.98px) {
  .nav-wide, .hero-shade { display: none; }
  .menu-toggle { display: block; }
  .post-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "details" "body" "flyer"; grid-template-rows: none; }
  .post-body h2 { margin-top: 40px; }
  .post-flyer { max-width: 420px; }
  .coord { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 820px) {
  .nav-mobile { display: none; }
  .signup-intro { position: sticky; top: 112px; }
}
