/* ============================================================
   Astronomy Club — light theme
   Palette taken straight out of the club logo: its navy disc,
   its red orbit line, and paper white. Real star atlases print
   dark stars on white paper, so the ambient field is inverted
   here too.
   ============================================================ */

:root {
  --paper:      #f2f4f9;
  --paper-2:    #ffffff;
  --paper-3:    #e9ecf5;

  --ink:        #101736;   /* logo navy — headings and body text */
  --ink-2:      #1d2650;
  --ink-soft:   #59617f;
  --ink-faint:  #858ca6;

  --hairline:   rgba(16, 23, 54, 0.13);
  --hairline-2: rgba(16, 23, 54, 0.26);

  --red:        #e32b22;   /* logo orbit line, tuned for paper */
  --red-bright: #ff3131;   /* exact logo red, used on dark only */
  --red-deep:   #a81c15;

  --night:      #070c2c;   /* logo disc — the one dark surface */
  --night-2:    #111a44;
  --moon:       #f4f1e6;

  --shadow:     0 1px 2px rgba(16, 23, 54, 0.05), 0 8px 24px rgba(16, 23, 54, 0.06);
  --shadow-lg:  0 2px 6px rgba(16, 23, 54, 0.07), 0 22px 50px rgba(16, 23, 54, 0.1);

  --display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body:    'Newsreader', Georgia, 'Times New Roman', serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1180px;
  --radius: 6px;
  --radius-lg: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.62;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------------------------------------------------- ambient starfield */

#sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(16, 23, 54, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 23, 54, 0.035) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 72%);
}

/* ------------------------------------------------------------- typography */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.mono { font-family: var(--mono); }
.dim  { color: var(--ink-soft); }

/* ------------------------------------------------------------ structure */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.3, 1); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

section.band { padding-block: clamp(3rem, 8vw, 5.5rem); }
section.band + section.band { border-top: 1px solid var(--hairline); }

/* --------------------------------------------------------------- header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 244, 249, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
}
.mark-text { min-width: 0; }
.mark-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.mark-school {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.3;
  margin-top: 0.18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav a:hover { color: var(--ink); background: rgba(16, 23, 54, 0.05); }
.nav a.is-current { color: var(--ink); }
.nav a.is-current::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 0.45rem;
  vertical-align: middle;
}

.nav-toggle {
  display: none;
  background: var(--paper-2);
  border: 1px solid var(--hairline-2);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ----------------------------------------------------------------- hero */

.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hero-logo {
  width: clamp(96px, 14vw, 132px);
  height: auto;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 10px 26px rgba(16, 23, 54, 0.18));
}

.hero h1 {
  font-size: clamp(2.7rem, 7.4vw, 4.7rem);
  letter-spacing: -0.04em;
}
.hero h1 em {
  font-family: var(--body);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  letter-spacing: -0.01em;
}

.hero-line {
  margin-top: 1.4rem;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2.2vw, 1.16rem);
}

.coord {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.1rem;
}

/* --------------------------------------------------------------- buttons */

.btn {
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline-2);
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.66rem; }

/* ------------------------------------------- signature: tonight's sky plate */

.plate {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 70% at 78% 8%, rgba(255, 49, 49, 0.16), transparent 62%),
    radial-gradient(110% 90% at 20% 100%, #16205a, transparent 65%),
    var(--night);
  color: var(--moon);
  padding: 1.7rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.plate::after {
  /* a few printed stars, matching the logo disc */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 18% 22%, rgba(255,255,255,.75), transparent),
    radial-gradient(1.2px 1.2px at 72% 14%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.4px 1.4px at 88% 62%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 34% 78%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.2px 1.2px at 58% 92%, rgba(255,255,255,.4), transparent);
}
.plate > * { position: relative; z-index: 1; }

.plate::before {
  content: attr(data-plate);
  position: absolute;
  top: 1.25rem;
  right: 1.4rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 230, 0.5);
  z-index: 2;
}

.moon-row {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid rgba(244, 241, 230, 0.16);
}

.moon-dial { flex: none; width: 88px; height: 88px; }

.moon-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.plate .dim { color: rgba(244, 241, 230, 0.6); }

.readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.1rem 1.3rem;
  margin-top: 1.2rem;
}
.readout div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.42rem 0;
  border-bottom: 1px dashed rgba(244, 241, 230, 0.15);
  font-family: var(--mono);
  font-size: 0.72rem;
}
.readout .k { color: rgba(244, 241, 230, 0.5); letter-spacing: 0.05em; }
.readout .v { color: var(--moon); }
.readout .v.hot { color: var(--red-bright); }

.countdown {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(244, 241, 230, 0.16);
}
.countdown > p {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 230, 0.5);
  margin: 0;
}
.count-units {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.7rem;
}
.count-units span { display: block; }
.count-units b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--moon);
}
.count-units small {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 230, 0.5);
  display: block;
  margin-top: 0.35rem;
}

/* ---------------------------------------------------------------- stats */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-strip div {
  padding: 1.6rem 1.3rem;
  border-right: 1px solid var(--hairline);
}
.stat-strip div:last-child { border-right: 0; }
.stat-strip b {
  display: block;
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--red);
}
.stat-strip span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-top: 0.65rem;
}

/* --------------------------------------------------------------- prose */

.prose {
  max-width: 62ch;
  color: var(--ink-soft);
}
.prose p { margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

.section-title {
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  margin-bottom: 1.5rem;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* --------------------------------------------------------------- events */

.event-list { display: grid; gap: 1rem; }

.event {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  padding: 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.event:hover { border-color: var(--hairline-2); box-shadow: var(--shadow-lg); }
.event.is-past { background: transparent; box-shadow: none; opacity: 0.72; }

.datestamp {
  font-family: var(--mono);
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.65rem 0.4rem;
  background: var(--paper);
}
.datestamp .m {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
}
.datestamp .d {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
  display: block;
}
.datestamp .t {
  font-size: 0.6rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  display: block;
  margin-top: 0.2rem;
}

.event h3 { font-size: 1.42rem; margin-bottom: 0.4rem; }
.event .meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 0.7rem;
}
.event .summary { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

.event-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  min-width: 132px;
}

.chip {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.32rem 0.65rem;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip.gold { color: var(--ink); border-color: var(--hairline-2); background: var(--paper-3); }
.chip.red  { color: var(--red); border-color: rgba(227, 43, 34, 0.4); background: rgba(227, 43, 34, 0.07); }

.seatbar {
  width: 100%;
  height: 4px;
  background: var(--paper-3);
  border-radius: 2px;
  overflow: hidden;
}
.seatbar i { display: block; height: 100%; background: var(--red); }

.event-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--hairline);
  color: var(--ink-soft);
  font-size: 0.97rem;
  white-space: pre-line;
  grid-column: 1 / -1;
}

/* ----------------------------------------------------------- organizers */

.crew {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 1.2rem;
}

.person {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.person .portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper-3);
  position: relative;
  overflow: hidden;
}
.person .portrait img { width: 100%; height: 100%; object-fit: cover; }
.person .portrait .initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.2rem;
  letter-spacing: -0.03em;
  color: #fff;
  background:
    radial-gradient(80% 70% at 50% 30%, rgba(255, 49, 49, 0.28), transparent 70%),
    var(--night);
}

.person .card-body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; }
.person h3 { font-size: 1.28rem; }
.person .role {
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0.45rem 0 0.7rem;
}
.person .bio { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.person .links {
  display: flex;
  gap: 0.9rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}
.person .links a { color: var(--ink-faint); text-decoration: none; }
.person .links a:hover { color: var(--red); }

/* ---------------------------------------------------------------- forms */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.42rem; }
.field.full { grid-column: 1 / -1; }

label {
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

input, textarea, select {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  padding: 0.72rem 0.85rem;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 43, 34, 0.13);
}
textarea { resize: vertical; min-height: 130px; }

.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.note {
  font-size: 0.92rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline-2);
  display: none;
  margin: 0;
}
.note.show { display: block; }
.note.ok   { border-color: rgba(16, 23, 54, 0.3); background: var(--paper-3); color: var(--ink); }
.note.bad  { border-color: rgba(227, 43, 34, 0.45); background: rgba(227, 43, 34, 0.06); color: var(--red-deep); }

/* --------------------------------------------------------------- contact */

.contact-lines { display: grid; gap: 0.7rem; margin-top: 1.8rem; }
.contact-lines a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper-2);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.contact-lines a:hover { border-color: var(--red); box-shadow: var(--shadow); }
.contact-lines .k {
  font-size: 0.61rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------- dialog */

dialog {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  color: var(--ink);
  padding: 0;
  width: min(560px, calc(100vw - 2rem));
  max-height: 88vh;
  box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(16, 23, 54, 0.42); backdrop-filter: blur(3px); }
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--hairline);
}
.dialog-body { padding: 1.4rem; overflow-y: auto; }
.x {
  background: none;
  border: 0;
  color: var(--ink-faint);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.x:hover { color: var(--red); }

/* --------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid var(--hairline);
  padding-block: 3rem 2rem;
  margin-top: 2rem;
  background: var(--paper-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.foot-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.foot-brand img { width: 54px; height: 54px; flex: none; }
.foot-grid h4 {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.9rem;
}
.foot-grid a {
  color: var(--ink-soft);
  text-decoration: none;
  display: block;
  padding: 0.22rem 0;
  font-size: 0.95rem;
}
.foot-grid a:hover { color: var(--red); }

.foot-base {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.owner-link {
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-faint);
}
.owner-link:hover { color: var(--red); border-color: var(--red); }

.empty {
  padding: 2.6rem 1.5rem;
  border: 1px dashed var(--hairline-2);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--ink-soft);
  background: var(--paper-2);
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--paper-2);
  padding: 0.7rem 1rem;
  border: 1px solid var(--red);
  border-radius: var(--radius);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero-grid, .split, .foot-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 82px 1fr; }
  .event-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .seatbar { width: 120px; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }

  .mark-school { display: none; }
  .brand-logo { width: 38px; height: 38px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--hairline-2);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem 1rem 1rem;
    transform: translateY(-150%);
    transition: transform 0.28s cubic-bezier(0.3, 0.8, 0.3, 1);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 0.9rem 0.4rem; font-size: 0.8rem; border-bottom: 1px solid var(--hairline); }

  .form-grid { grid-template-columns: 1fr; }
  .readout { grid-template-columns: 1fr; }
  .moon-dial { width: 68px; height: 68px; }
  .stat-strip div { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .stat-strip div:last-child { border-bottom: 0; }
  .count-units { gap: 1.2rem; }
  .count-units b { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
