/* ==========================================================================
   The public event pages (/events/): what search engines read and what a
   student lands on before opening the app. Same tokens and register as the
   app (DESIGN.md "Calm"); every value that exists as a token comes from
   /design/tokens.css.
   ========================================================================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--body-w);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); }
:root[data-theme="dark"] a { color: var(--teal-bright); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: var(--teal-bright); } }

h1, h2 { font-family: var(--font-display); font-weight: 900; margin: 0; }

.page { max-width: var(--content-max); margin: 0 auto; padding: var(--sp-lg) var(--sp-lg) var(--sp-4xl); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); padding: var(--sp-xs) 0 var(--sp-xl); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-sm); font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--text); text-decoration: none; }
.logo { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--teal); color: var(--on-teal); font-size: 18px; }

.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 var(--sp-md); }
.crumbs a { color: var(--muted); }

.hero { background: var(--hero-bg); color: var(--on-hero); border-radius: var(--r-xl); padding: var(--sp-2xl); margin-bottom: var(--sp-xl); }
.hero h1 { font-size: 28px; line-height: 32px; }
.hero p { margin: var(--sp-sm) 0 0; max-width: 62ch; }
@media (min-width: 1024px) { .hero h1 { font-size: 36px; line-height: 40px; } }

.card { background: var(--surface); border: var(--line) solid var(--border); border-radius: var(--r-lg); padding: var(--sp-xl); box-shadow: var(--card-shadow); margin-bottom: var(--sp-xl); }
.card h2 { font-size: 20px; line-height: 26px; margin-bottom: var(--sp-md); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-md); margin: 0; }
.stats div { background: var(--surface-2); border-radius: var(--r-md); padding: var(--sp-md) var(--sp-lg); }
.stats dt { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: var(--sp-2xs) 0 0; font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 30px; font-variant-numeric: tabular-nums; }

.cta { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: var(--r-md); background: var(--teal); color: var(--on-teal) !important; font-family: var(--font-display); font-weight: var(--btn-w); font-size: 19px; text-transform: var(--btn-case); text-decoration: none; box-shadow: var(--cta-glow); }
.cta:hover { background: var(--teal-dark); }
.cta:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; }

.list { columns: 2 240px; column-gap: var(--sp-2xl); margin: 0; padding: 0; list-style: none; }
.list li { break-inside: avoid; padding: var(--sp-2xs) 0; font-size: 15px; line-height: 22px; }
.muted { color: var(--muted); }

.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-md); margin: 0; padding: 0; list-style: none; }
.events a { display: block; height: 100%; background: var(--surface); border: var(--line) solid var(--border); border-radius: var(--r-lg); padding: var(--sp-lg); text-decoration: none; color: var(--text); box-shadow: var(--card-shadow); }
.events a:hover { border-color: var(--teal); }
.events b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 24px; }
.events span { display: block; font-size: 14px; line-height: 20px; color: var(--muted); margin-top: var(--sp-2xs); }

footer { margin-top: var(--sp-3xl); font-size: 13px; line-height: 20px; color: var(--muted); }
