:root {
  color-scheme: light;
  --ink: #153047;
  --muted: #65798b;
  --line: rgba(32, 121, 188, 0.16);
  --blue: #0f8be8;
  --blue-dark: #096bb4;
  --sky: #e8f7ff;
  --ice: #f8fcff;
  --sand: #f3eadf;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(28, 95, 145, 0.13);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(14, 139, 232, 0.14), rgba(255, 255, 255, 0) 280px),
    linear-gradient(145deg, #f7fcff 0%, #ffffff 48%, #f8f2eb 100%);
}

button {
  font: inherit;
}

.hero {
  min-height: 42vh;
  padding: 24px clamp(20px, 5vw, 64px) 44px;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 72%, rgba(255, 255, 255, 0.3), transparent 26%),
    linear-gradient(180deg, #0782d7 0%, #45a9ea 58%, #d9f3ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -28% -8%;
  height: 50%;
  background:
    repeating-linear-gradient(
      72deg,
      rgba(255, 255, 255, 0.3) 0 2px,
      transparent 2px 18px
    );
  opacity: 0.35;
  transform: skewY(-6deg);
}

.topbar,
.hero-content {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.hero-content {
  width: min(860px, 100%);
  margin-top: clamp(56px, 10vw, 104px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.77rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero .meta {
  color: rgba(255, 255, 255, 0.86);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 8vw, 5.6rem);
  line-height: 1.02;
  font-weight: 780;
}

.meta {
  margin-bottom: 0;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
}

main {
  padding: 0 clamp(16px, 4vw, 56px) 56px;
}

.schedule-shell {
  width: min(1120px, 100%);
  margin: -28px auto 0;
  position: relative;
  z-index: 2;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
}

.count {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}

.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(60, 141, 200, 0.08);
}

.day-tab[aria-pressed="true"] {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.schedule {
  display: grid;
  gap: 18px;
}

.day-section {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.day-heading {
  position: sticky;
  top: 14px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.day-heading p {
  margin: 0 0 4px;
  color: var(--blue-dark);
  font-weight: 700;
}

.day-heading h3 {
  margin: 0;
  font-size: 1.55rem;
}

.day-heading span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--sky);
  font-size: 0.86rem;
}

.event-list {
  display: grid;
  gap: 10px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(92px, 132px) 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid rgba(20, 124, 202, 0.13);
  border-radius: 8px;
  background: var(--ice);
}

.event-card--evening {
  background: #f3f8ff;
}

.event-card--meal {
  background: #fffaf4;
}

.event-time {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.event-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
}

.event-tag {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  white-space: nowrap;
}

.error {
  padding: 20px;
  border: 1px solid #fac4c4;
  border-radius: 8px;
  color: #9b1c1c;
  background: #fff4f4;
}

@media (max-width: 720px) {
  .hero {
    min-height: 36vh;
    padding-bottom: 54px;
  }

  .topbar {
    font-size: 0.82rem;
  }

  .hero-content {
    margin-top: 54px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .schedule-shell {
    margin-top: -34px;
  }

  .day-section {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .day-heading {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .event-card {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .event-time {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  main {
    padding-inline: 12px;
  }

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

  .event-tag {
    justify-self: start;
  }
}
