:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #14213d;
  --muted: #5d6b82;
  --line: #dbe3ef;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --soft: #eaf1ff;
  --radius: 22px;
  --shadow: 0 20px 50px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #eaf1ff, var(--bg) 45%);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  padding: 44px 0;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
}

.header-grid,
.footer-grid,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: .95;
  letter-spacing: -0.06em;
  max-width: 780px;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.lede {
  max-width: 720px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.15rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .77rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.site-header .eyebrow {
  color: #93c5fd;
}

.header-cta,
.button,
.filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.header-cta {
  background: #fff;
  color: #1d4ed8;
  white-space: nowrap;
}

.button:hover,
.filters button:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: var(--soft);
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 28px;
  padding: 42px 0 26px;
  align-items: stretch;
}

.hero-media,
.hero-card,
.intro-grid article,
.event-card,
.system-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-card {
  padding: clamp(24px, 4vw, 42px);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.event-meta span,
.tags span,
.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: .88rem;
  font-weight: 750;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 18px 0 44px;
}

.intro-grid article {
  padding: 24px;
}

.intro-grid p,
.event-body p,
.system-note p {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 18px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filters input,
.filters select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.event-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.event-body {
  padding: 22px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 800;
}

.compact {
  margin: 12px 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tags span {
  font-size: .78rem;
  background: #f1f5f9;
  color: #475569;
}

.text-link {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 850;
}

.system-note {
  padding: 28px;
  margin: 42px auto;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 26px 0;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 880px) {

  .header-grid,
  .footer-grid,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    width: 100%;
    justify-content: stretch;
  }

  .filters input,
  .filters select,
  .filters button {
    width: 100%;
  }
}