:root {
  color-scheme: light dark;
  --bg: #f2f6fc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #526071;
  --line: #cbd5e1;
  --accent: #5936a8;
  --accent-soft: #ebe4fa;
  --focus: #0969da;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(145deg, #e7effc 0, transparent 30rem),
    var(--bg);
  line-height: 1.6;
}

.shell {
  width: min(70rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header,
.site-footer,
.plan-heading,
.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header {
  align-items: center;
  padding-block: 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  font-weight: 750;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.55rem;
  color: white;
  background: var(--accent);
}

.status,
.timeline-type {
  width: fit-content;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  color: #45238a;
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero {
  max-width: 54rem;
  padding-block: clamp(4rem, 12vw, 9rem);
}

.plan-date {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.empty-state {
  display: grid;
  justify-content: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 2rem;
}

.empty-state h2 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.plan {
  padding-bottom: 5rem;
}

.plan-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.source-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  border-bottom: 1px solid var(--line);
  padding-block: 1.5rem;
}

.timeline-item--break {
  margin-inline: -1rem;
  border: 0;
  border-radius: 1rem;
  padding-inline: 1rem;
  background: var(--accent-soft);
}

.timeline-time {
  min-width: 10rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.timeline-details {
  width: min(100%, 44rem);
}

.timeline-type {
  margin-bottom: 0.55rem;
  padding: 0;
  color: var(--accent);
  background: transparent;
}

.timeline-room,
.timeline-note {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.source-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.error {
  border-left: 0.25rem solid #cf222e;
  padding: 0.75rem 1rem;
  background: var(--panel);
}

.site-footer {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

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

a:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

[hidden] {
  display: none;
}

@media (max-width: 42rem) {
  .site-header,
  .plan-heading,
  .timeline-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-block: 4rem;
  }

  .timeline-time {
    min-width: 0;
    margin-bottom: -0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12100e;
    --panel: #1d1a17;
    --text: #f4f0e8;
    --muted: #bdb5a8;
    --line: #39342e;
    --accent: #b79af4;
    --accent-soft: #2c2142;
  }

  body {
    background:
      linear-gradient(145deg, #211a35 0, transparent 30rem),
      var(--bg);
  }

  .status {
    color: #e2d5ff;
  }
}
