:root {
  --ink: #111820;
  --paper: #fbf8ef;
  --panel: #ffffff;
  --line: rgba(17, 24, 32, 0.14);
  --muted: #5d646a;
  --sun: #f5b942;
  --coral: #ef5d44;
  --aqua: #1f9c98;
  --leaf: #437447;
  --plum: #593759;
  --shadow: 0 22px 70px rgba(17, 24, 32, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  align-items: center;
  background: rgba(251, 248, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(16px, 4vw, 58px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--sun);
  display: inline-flex;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 8px;
  color: rgba(17, 24, 32, 0.76);
  font-size: 0.92rem;
  font-weight: 850;
  padding: 9px 11px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: none;
  height: 42px;
  padding: 9px;
  width: 42px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 5px 0;
}

.hero {
  min-height: calc(100svh - 74px);
  overflow: hidden;
  position: relative;
}

.hero-media {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 32, 0.9) 0%, rgba(17, 24, 32, 0.72) 48%, rgba(17, 24, 32, 0.16) 100%),
    linear-gradient(0deg, rgba(251, 248, 239, 0.12), rgba(251, 248, 239, 0));
  inset: 0;
  position: absolute;
}

.hero-content {
  color: #fff;
  max-width: 980px;
  padding: clamp(90px, 15vh, 150px) clamp(18px, 6vw, 90px) 110px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3rem, 9vw, 7.1rem);
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 24px;
  max-width: 980px;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.22rem;
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 9px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 720px;
}

.hero-actions,
.page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
}

.button.primary {
  background: var(--sun);
  color: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.button.dark {
  background: var(--ink);
  color: #fff;
}

.intro-band,
.list-section,
.source-section,
.category-hero {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.intro-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  margin: 0 auto;
  max-width: 1180px;
}

.intro-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 38px);
}

.intro-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.count-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.count-grid a {
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  min-height: 112px;
  padding: 18px;
}

.count-grid strong,
.count-grid span {
  display: block;
}

.count-grid strong {
  color: var(--sun);
  font-size: 2.1rem;
  line-height: 1;
}

.section-heading,
.category-heading {
  align-items: end;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 0 auto 26px;
  max-width: 1180px;
}

.section-heading p,
.category-heading p {
  color: var(--muted);
  max-width: 560px;
}

.event-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.event-tools {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(170px, 0.24fr) minmax(240px, 1fr) auto;
  margin: -8px auto 26px;
  max-width: 1180px;
}

.event-tools label {
  font-weight: 900;
}

.event-tools input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 10px 14px;
  width: 100%;
}

.event-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(17, 24, 32, 0.08);
  overflow: hidden;
}

.event-photo {
  aspect-ratio: 1.42;
  background: var(--ink);
  display: block;
  overflow: hidden;
}

.event-photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.event-card:hover .event-photo img {
  transform: scale(1.04);
}

.event-body {
  padding: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag-row span,
.status-pill {
  background: rgba(31, 156, 152, 0.12);
  border: 1px solid rgba(31, 156, 152, 0.22);
  border-radius: 999px;
  color: #11615e;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.venue,
.event-time {
  font-weight: 850;
  margin-bottom: 8px;
}

.venue span {
  color: var(--coral);
  display: block;
  font-size: 0.86rem;
}

.event-body p:not(.venue):not(.event-time) {
  color: var(--muted);
}

.source-link {
  align-items: center;
  color: var(--plum);
  display: inline-flex;
  gap: 8px;
  font-weight: 900;
  margin-top: 8px;
}

.source-badge {
  background: #1877f2;
  border-radius: 999px;
  color: #fff;
  font-size: 0.68rem;
  line-height: 1;
  padding: 5px 7px;
  text-transform: uppercase;
}

.spotlight {
  background: var(--ink);
  color: #fff;
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.spotlight-inner {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.spotlight p {
  color: rgba(255, 255, 255, 0.76);
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-list a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
}

.mini-list strong {
  color: var(--sun);
  display: block;
}

.category-hero {
  background:
    linear-gradient(135deg, rgba(245, 185, 66, 0.2), rgba(31, 156, 152, 0.18)),
    var(--paper);
}

.category-heading {
  align-items: center;
}

.source-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

.source-box {
  margin: 0 auto;
  max-width: 1180px;
}

.source-box p {
  color: var(--muted);
  max-width: 820px;
}

.source-list {
  columns: 2;
  gap: 34px;
  margin: 22px 0 0;
  padding-left: 20px;
}

.source-list li {
  break-inside: avoid;
  margin: 0 0 8px;
}

.source-list a {
  color: var(--plum);
  font-weight: 800;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 72px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .intro-grid,
  .spotlight-inner {
    grid-template-columns: 1fr;
  }

  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    left: 0;
    padding: 14px 18px 18px;
    position: absolute;
    right: 0;
    top: 73px;
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-content {
    padding-top: 86px;
  }

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

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

  .source-list {
    columns: 1;
  }
}
