:root {
  color-scheme: light;
  --ink: #172b3a;
  --muted: #5b6b79;
  --navy: #102a43;
  --accent: #0f6b78;
  --accent-dark: #0a4f59;
  --line: #d8e0e6;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --warm: #e9b949;
  --radius: 0.8rem;
  --shadow: 0 12px 32px rgb(16 42 67 / 8%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  border-radius: 0.4rem;
  background: var(--surface);
  padding: 0.7rem 1rem;
  color: var(--navy);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
.site-header { background: var(--navy); color: #fff; }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 750; text-decoration: none; }
.brand-mark { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; font-size: 0.72rem; letter-spacing: 0.08em; }
.header-label { color: #c8d4df; font-size: 0.9rem; }
.hero { background: var(--navy); color: #fff; padding: clamp(3rem, 7vw, 6rem) 0 5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.7fr); align-items: end; gap: clamp(2rem, 6vw, 6rem); }
.eyebrow { margin: 0 0 0.6rem; color: var(--accent); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.hero .eyebrow { color: #7dd3dc; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.025em; }
h1 { max-width: 18ch; margin: 0; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.04; font-weight: 600; }
.hero-copy { max-width: 43rem; margin: 1.5rem 0 0; color: #cbd8e3; font-size: clamp(1rem, 2vw, 1.18rem); }
.summary { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid rgb(255 255 255 / 20%); }
.summary div { padding: 1.2rem 0.8rem; text-align: center; }
.summary dt { color: #acbfce; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.summary dd { margin: 0.25rem 0 0; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 750; }
.catalog { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; }
.result-count { margin: 0 0 0.25rem; color: var(--muted); font-size: 0.92rem; }
.filters { display: grid; grid-template-columns: minmax(14rem, 2fr) repeat(3, minmax(9rem, 1fr)) auto; gap: 0.8rem; align-items: end; margin-bottom: 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 4px 16px rgb(16 42 67 / 4%); }
.filters label { display: block; margin: 0 0 0.35rem; color: var(--muted); font-size: 0.78rem; font-weight: 750; }
.filters input, .filters select { width: 100%; min-height: 2.8rem; border: 1px solid #b8c4cd; border-radius: 0.45rem; background: #fff; padding: 0.55rem 0.7rem; color: var(--ink); }
.filters input:hover, .filters select:hover { border-color: var(--accent); }
.clear-button { min-height: 2.8rem; border: 1px solid var(--line); border-radius: 0.45rem; background: transparent; padding: 0.55rem 0.9rem; color: var(--accent-dark); cursor: pointer; font-weight: 700; }
.clear-button:hover { background: #eef6f7; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.activity-card { display: flex; min-width: 0; min-height: 21rem; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.4rem; box-shadow: 0 5px 18px rgb(16 42 67 / 5%); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.activity-card:hover { transform: translateY(-3px); border-color: #adc4cc; box-shadow: var(--shadow); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; color: var(--muted); font-size: 0.76rem; }
.card-type { color: var(--accent-dark); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.activity-card h3 { margin: 1rem 0 0.35rem; font-size: 1.55rem; line-height: 1.18; }
.activity-card h3 a { text-decoration-color: transparent; text-underline-offset: 0.18em; }
.activity-card h3 a:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
.card-discipline { margin: 0; color: var(--accent-dark); font-size: 0.86rem; font-weight: 650; }
.card-description { margin: 1rem 0; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: auto 0 1.2rem; padding: 0; list-style: none; }
.tag-list li { border-radius: 999px; background: #edf2f5; padding: 0.25rem 0.55rem; color: #435463; font-size: 0.74rem; }
.open-link { align-self: flex-start; color: var(--accent-dark); font-size: 0.9rem; font-weight: 800; text-underline-offset: 0.22em; }
.empty-state { border: 1px dashed #aebdc8; border-radius: var(--radius); padding: clamp(2.5rem, 8vw, 5rem) 1rem; text-align: center; }
.empty-state[hidden], .activity-card[hidden] { display: none; }
.empty-state > span { display: block; color: var(--accent); font-size: 2.6rem; line-height: 1; }
.empty-state h3 { margin: 0.75rem 0 0.25rem; font-size: 1.8rem; }
.empty-state p { margin: 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: #e9edf1; color: var(--muted); }
.site-footer .shell { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.88rem; }
.site-footer a { color: var(--accent-dark); font-weight: 700; }

@media (max-width: 62rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .summary { max-width: 34rem; }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .search-field { grid-column: 1 / -1; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .shell { width: min(100% - 1.25rem, 72rem); }
  .header-label { display: none; }
  .hero { padding-top: 2.75rem; }
  .summary div { padding-inline: 0.35rem; }
  .summary dt { font-size: 0.65rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .filters, .activity-grid { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .clear-button { width: 100%; }
  .activity-card { min-height: 0; }
  .site-footer .shell { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 1rem; }
  .site-footer p { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
