@font-face { font-family: 'Be Vietnam Pro'; font-weight: 400; font-display: swap; src: url(/fonts/bevn-400.woff2) format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 600; font-display: swap; src: url(/fonts/bevn-600.woff2) format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 800; font-display: swap; src: url(/fonts/bevn-800.woff2) format('woff2'); }

:root {
  --navy: #0F2A71; --deep: #0B1B36; --gold: #F3AF0F; --cream: #FFFDF0;
  --muted: rgb(255 253 240 / .72); --line: rgb(255 253 240 / .16);
  --err: #A8261C;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: clamp(3rem, 9vw, 6rem);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--deep); color: var(--cream); font: 400 1rem/1.6 'Be Vietnam Pro', system-ui, sans-serif; min-height: 100dvh; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

html[data-view='register'] #view-admin, html[data-view='admin'] #view-register { display: none; }

.page { width: min(100% - 2.5rem, 70rem); margin-inline: auto; padding-block: var(--s3) var(--s4); }
.top img { display: block; height: auto; }
.brand img { width: min(100%, 18rem); }
.mit { display: inline-block; height: .95em; width: auto; vertical-align: -.12em; margin-inline-start: .1em; border-radius: .12em; letter-spacing: 0; }
@media (min-width: 48rem) { .brand img { width: 24rem; } }

/* Hero: the title is the design */
.hero { padding-block: var(--s5) var(--s4); }
h1 { margin: 0; font-weight: 800; font-size: clamp(2.1rem, 9vw, 5rem); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; max-width: 18ch; }
.speaker { display: grid; gap: .25rem; margin: var(--s4) 0 0; max-width: 34rem; color: var(--muted); font-size: 1.0625rem; }
.speaker strong { color: var(--cream); font-weight: 600; }
.label, dt { color: var(--gold); font-size: .875rem; font-weight: 600; letter-spacing: .01em; }
.facts { display: grid; gap: var(--s3); margin: var(--s4) 0 0; padding-left: var(--s3); border-left: 3px solid var(--gold); max-width: 34rem; }
.facts div { display: grid; gap: .125rem; }
dd { margin: 0; font-size: 1.1875rem; font-weight: 600; line-height: 1.45; }
.jump { display: inline-block; margin-top: var(--s4); padding: .85rem 1.6rem; border: 2px solid var(--gold); border-radius: .5rem; color: var(--gold); font-weight: 600; text-decoration: none; }
.jump:hover { background: var(--gold); color: var(--deep); }

/* Registration panel */
.panel { background: var(--cream); color: var(--deep); border-radius: 1.25rem; padding: clamp(1.5rem, 5vw, 2.75rem); max-width: 34rem; }
h2 { margin: var(--s2) 0 0; font-size: clamp(1.35rem, 5vw, 1.75rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.free { display: inline-block; margin: .75rem 0 0; padding: .2rem .75rem; border-radius: 99px; background: var(--gold); font-weight: 600; font-size: .9375rem; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled { opacity: .55; }
.field { margin-bottom: 1.1rem; }
label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .9375rem; }
input { width: 100%; height: 3.25rem; padding: 0 1rem; border: 1.5px solid rgb(11 27 54 / .35); border-radius: .625rem; background: #fff; color: var(--deep); font: inherit; font-size: 1rem; }
input::placeholder { color: rgb(11 27 54 / .5); }
input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
input[aria-invalid='true'] { border-color: var(--err); border-width: 2px; }
.err { margin: .35rem 0 0; color: var(--err); font-size: .9rem; font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.form-err { margin-bottom: .75rem; }
.note { margin: .5rem 0 var(--s3); font-size: .9375rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button, .btn { display: inline-flex; justify-content: center; align-items: center; width: 100%; height: 3.5rem; border: 0; border-radius: .625rem; background: var(--gold); color: var(--deep); font: 800 1.0625rem 'Be Vietnam Pro', sans-serif; cursor: pointer; text-decoration: none; }
button:hover:not(:disabled), .btn:hover { background: #ffc233; }
button:disabled { cursor: not-allowed; }
.closed { margin: 0 0 var(--s3); padding: 1rem 1.25rem; border-radius: .625rem; background: var(--deep); color: var(--cream); font-weight: 800; font-size: 1.25rem; }
.closed small { display: block; margin-top: .25rem; font-size: .9375rem; font-weight: 400; color: var(--muted); }

.thanks { outline: none; }
.thanks h2 { margin-top: var(--s2); }
.thanks p { margin: .5rem 0 0; }
.thanks dl { display: grid; gap: 1rem; margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1.5px solid rgb(11 27 54 / .2); }
.thanks dt { color: var(--navy); }
.thanks dd { font-size: 1.0625rem; }

.foot { padding-top: var(--s4); font-size: .875rem; }
.supercat-credit { color: var(--muted); text-decoration: none; }
.supercat-credit:hover { color: var(--cream); }

/* Wide screens: title left, form right */
@media (min-width: 62rem) {
  #view-register .page { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 28rem); column-gap: 5rem; align-items: start; }
  #view-register .top, #view-register .foot { grid-column: 1 / -1; }
  .hero { padding-block: 5rem 3rem; }
  .jump { display: none; }
  .panel { position: sticky; top: 2rem; margin-top: 5rem; max-width: none; }
}

/* Admin */
.admin { max-width: 62rem; }
.admin-title { margin-top: var(--s4); font-size: clamp(1.75rem, 6vw, 2.5rem); max-width: none; }
.card { margin-top: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: 1rem; background: rgb(15 42 113 / .35); }
.card h2 { margin: 0 0 var(--s2); font-size: 1.125rem; }
.stats { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); margin-top: var(--s3); }
.stats div { display: grid; }
.stats b { font-size: 2.5rem; font-weight: 800; line-height: 1.1; color: var(--gold); }
.stats span { color: var(--muted); font-size: .9375rem; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: stretch; }
.row input { flex: 1 1 16rem; background: var(--deep); color: var(--cream); border-color: var(--line); height: 3rem; }
.admin button, .admin .btn { width: auto; height: 3rem; padding-inline: 1.25rem; font-size: 1rem; }
.admin .ghost { background: transparent; color: var(--cream); border: 1.5px solid var(--line); font-weight: 600; }
.admin .ghost:hover:not(:disabled) { background: rgb(255 253 240 / .08); }
.qr { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.qr img { width: 11rem; height: 11rem; border-radius: .5rem; background: #fff; }
.table-wrap { overflow-x: auto; margin-top: var(--s2); border: 1px solid var(--line); border-radius: .75rem; }
table { width: 100%; border-collapse: collapse; min-width: 44rem; font-size: .9375rem; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { color: var(--gold); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.muted { color: var(--muted); }
.notice { margin: var(--s3) 0 0; padding: .9rem 1.1rem; border-radius: .625rem; background: rgb(243 175 15 / .14); border: 1px solid var(--gold); }

/* Door check-in: big tap targets, no hover-only controls */
.checkin-count { margin: var(--s2) 0 0; font-size: 1.375rem; font-weight: 600; }
.checkin-count b { color: var(--gold); font-size: 2rem; font-weight: 800; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s2); }
.admin .tab { flex: 1 1 0; min-width: 6.5rem; height: 3.25rem; background: transparent; color: var(--cream); border: 1.5px solid var(--line); font-weight: 600; }
.admin .tab[aria-pressed='true'] { background: var(--gold); color: var(--deep); border-color: var(--gold); }
.attendees { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: .75rem; }
.attendee { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .875rem 1rem; border: 1px solid var(--line); border-radius: .875rem; background: rgb(11 27 54 / .5); }
.attendee.on { border-color: var(--gold); background: rgb(243 175 15 / .12); }
.who { display: grid; gap: .125rem; min-width: 0; overflow-wrap: anywhere; }
.who strong { font-size: 1.1875rem; }
.who a { color: var(--cream); font-weight: 600; }
.small { font-size: .8125rem; }
.admin .arrive { flex: none; display: flex; align-items: center; gap: .625rem; min-width: 9.5rem; height: 3.75rem; padding-inline: 1rem; background: transparent; color: var(--cream); border: 2px solid var(--cream); font-weight: 700; font-size: 1.0625rem; }
.admin .arrive .box { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 2px solid currentColor; border-radius: .375rem; font-size: 1.25rem; line-height: 1; }
.admin .arrive.on { background: var(--gold); color: var(--deep); border-color: var(--gold); }
.empty { padding: 1rem; list-style: none; }
@media (max-width: 34rem) { .attendee { flex-direction: column; align-items: stretch; } .admin .arrive { width: 100%; justify-content: center; height: 4rem; } }

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