:root {
  color-scheme: light;
  --ink: #1f2528;
  --muted: #667078;
  --line: #d8dddf;
  --paper: #f8faf9;
  --band: #eef3f0;
  --accent: #0e6b63;
  --accent-2: #a84d2f;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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.5;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 0.94;
}

h2 {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

main {
  padding: 22px clamp(18px, 4vw, 56px) 56px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.chip {
  min-height: 36px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.layout {
  display: grid;
  grid-template-columns: minmax(84px, 0.18fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
}

.monthRail {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 8px;
}

.monthRail span {
  display: block;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.eventList {
  display: grid;
  gap: 12px;
}

.event {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dateBox {
  min-height: 92px;
  padding: 10px;
  background: var(--band);
  border-radius: 6px;
  text-align: center;
}

.day {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.month,
.time {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.time {
  margin-top: 8px;
  color: var(--accent-2);
  font-weight: 700;
}

.metaLine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.newBadge {
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.72rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.summary {
  color: var(--muted);
  margin-bottom: 12px;
}

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

dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

.descriptionWrap {
  margin: 8px 0 12px;
}

.descriptionWrap summary,
.past summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
}

.description {
  margin: 8px 0 0;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.links a {
  color: var(--accent);
  font-weight: 700;
}

.past {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.compact {
  margin-top: 14px;
  opacity: 0.82;
}

.empty {
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

@media (max-width: 760px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .updated {
    text-align: left;
  }

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

  .monthRail {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .monthRail span {
    min-width: max-content;
  }

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

  .dateBox {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: auto;
    text-align: left;
  }

  dl {
    grid-template-columns: 1fr;
  }
}
