:root {
  --white: oklch(99% 0.004 110);
  --black: oklch(22% 0.018 140);
  --ink: oklch(22% 0.018 140);
  --soft-ink: oklch(44% 0.018 140);
  --muted: oklch(62% 0.014 140);
  --line: oklch(77% 0.018 118);
  --paper: oklch(96.8% 0.011 110);
  --page: oklch(96.8% 0.011 110);
  --accent-dark: oklch(34% 0.095 145);
  --leaf: oklch(34% 0.095 145);
  --leaf-soft: oklch(74% 0.075 145);
  --sand: oklch(82% 0.066 84);
  --gray: oklch(44% 0.018 140);
  --paper-on-leaf: oklch(96.5% 0.012 110);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-optical-sizing: auto;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--page);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
}

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

a:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 4px;
}

.icon-sprite {
  display: none;
}

.schedule-page {
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(54px, 8vw, 118px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px) clamp(20px, 3vw, 40px) clamp(56px, 8vw, 96px);
  background: transparent;
}

.page-header {
  display: grid;
  gap: clamp(58px, 10vw, 132px);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 56px);
}

.header-logo img,
.footer-logo img {
  width: clamp(106px, 10vw, 140px);
  height: auto;
  display: block;
  outline: 0;
}

.header-links {
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  color: var(--soft-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 180ms var(--ease-out-quint);
}

.header-links a:hover {
  color: var(--leaf);
}

.header-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(32px, 8vw, 118px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--leaf-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 6.4vw, 6.6rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
  text-wrap: balance;
}

.header-copy > p,
.header-note p:not(.eyebrow),
.footer-brand p {
  max-width: 64ch;
  color: var(--soft-ink);
  font-size: clamp(1.02rem, 1.15vw, 1.16rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.header-copy > p {
  margin: 28px 0 0;
}

.header-note {
  padding: clamp(22px, 3vw, 30px) 0 0;
  border-top: 1px solid var(--line);
}

.header-note p:last-child {
  margin-bottom: 0;
}

.schedule-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: visible;
  overflow-y: visible;
}

.schedule-scroll:focus {
  outline: 2px solid rgba(21, 113, 42, 0.3);
  outline-offset: 4px;
}

.week-grid {
  display: grid;
  grid-template-columns: 88px repeat(7, minmax(132px, 1fr));
  grid-template-rows: 44px repeat(14, minmax(54px, 1fr));
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: min(680px, calc(100svh - 190px));
}

.week-grid-secondary,
.week-grid-wed-thu,
.week-grid-fri-sat,
.week-grid-sunday,
.day-grid {
  display: none;
}

.grid-head,
.time-cell,
.cell {
  min-width: 0;
  border-radius: 6px;
}

.grid-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 8px;
  background: var(--black);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.time-head,
.time-cell {
  z-index: 3;
}

.time-head {
  background: var(--accent-dark);
  z-index: 5;
}

.time-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #aebcb2;
  background: #ecf6ef;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.cell {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.cell.muted {
  background: repeating-linear-gradient(
    -45deg,
    #f4f5f2,
    #f4f5f2 5px,
    #e7ebe6 5px,
    #e7ebe6 10px
  );
}

.cell.stacked {
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

.activity {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

a.activity {
  position: relative;
  box-shadow:
    inset 0 0 0 1px currentColor,
    0 1px 2px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition:
    filter 180ms var(--ease-out-quint),
    box-shadow 180ms var(--ease-out-quint),
    transform 180ms var(--ease-out-quint);
}

a.activity:hover {
  filter: saturate(1.08) contrast(1.03);
  box-shadow:
    inset 0 0 0 1px currentColor,
    0 8px 18px -12px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

a.activity:active {
  transform: scale(0.96);
}

.stacked .activity {
  min-height: 0;
  flex: 1;
  border-radius: 5px;
  padding: 6px;
  font-size: 0.72rem;
}

.activity svg,
.footer-contact svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.trail {
  background: #eaf5eb;
  color: #175c29;
}

.pool {
  background: #e8f4f6;
  color: #1b6975;
}

.cocktail {
  background: #f8f0e2;
  color: #8a611d;
}

.yoga,
.stretch {
  background: #edf7e5;
  color: #32661f;
}

.sport,
.active {
  background: #eef2fb;
  color: #324c8f;
}

.tasting {
  background: #f5ece5;
  color: #7a4b31;
}

.creative {
  background: #f2ecf8;
  color: #654486;
}

.games {
  background: #edf0f2;
  color: #394550;
}

.food {
  background: #fff3df;
  color: #8c611d;
}

.evening,
.music {
  background: #fae9e9;
  color: #8d3740;
}

.page-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: end;
  color: var(--soft-ink);
}

.footer-brand p {
  margin: 24px 0 0;
}

.footer-contact {
  display: grid;
  justify-items: end;
}

.footer-contact a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--soft-ink);
  font-size: clamp(0.88rem, 1.15vw, 0.96rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  transition:
    color 180ms var(--ease-out-quint),
    transform 180ms var(--ease-out-quint);
}

.footer-contact a:hover {
  color: var(--leaf);
  transform: translateX(3px);
}

.footer-contact svg {
  opacity: 0.84;
}

@media (max-width: 1199px) {
  .schedule-page {
    gap: clamp(44px, 6vw, 78px);
  }

  .schedule-scroll {
    display: grid;
    gap: clamp(22px, 4vw, 40px);
  }

  .week-grid {
    min-height: 0;
  }

  .week-grid-primary {
    grid-template-columns: 82px repeat(4, minmax(0, 1fr));
    grid-template-rows: 44px repeat(14, minmax(58px, auto));
  }

  .week-grid-primary > :nth-child(8n + 6),
  .week-grid-primary > :nth-child(8n + 7),
  .week-grid-primary > :nth-child(8n + 8) {
    display: none;
  }

  .week-grid-secondary {
    display: grid;
    grid-template-columns: 82px repeat(3, minmax(0, 1fr));
    grid-template-rows: 44px repeat(14, minmax(58px, auto));
    width: 100%;
  }
}

@media (max-width: 720px) {
  .schedule-page {
    padding: 24px 14px 56px;
    gap: 40px;
  }

  .header-layout,
  .page-footer {
    grid-template-columns: 1fr;
  }

  .header-nav {
    display: grid;
    justify-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
  }

  .header-logo {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .header-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    justify-content: center;
    gap: 8px 14px;
    font-size: 0.68rem;
    text-align: center;
    width: min(100%, 520px);
  }

  .header-links a {
    justify-content: center;
  }

  .schedule-scroll {
    gap: 22px;
  }

  .grid-head,
  .time-cell {
    font-size: 0.68rem;
  }

  .activity {
    font-size: 0.76rem;
  }

  .footer-contact {
    justify-items: start;
  }
}

@media (max-width: 600px) {
  .header-logo img,
  .footer-logo img {
    width: 118px;
  }

  .header-links {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .header-links a {
    min-height: 40px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.35rem);
  }
}

@media (max-width: 799px) {
  .week-grid-primary {
    grid-template-columns: 68px repeat(2, minmax(0, 1fr));
    grid-template-rows: 40px repeat(14, minmax(64px, auto));
  }

  .week-grid-primary > :nth-child(8n + 4),
  .week-grid-primary > :nth-child(8n + 5) {
    display: none;
  }

  .week-grid-secondary {
    display: none;
  }

  .week-grid-wed-thu,
  .week-grid-fri-sat,
  .week-grid-sunday {
    display: grid;
    grid-template-rows: 40px repeat(14, minmax(64px, auto));
    width: 100%;
  }

  .week-grid-wed-thu,
  .week-grid-fri-sat {
    grid-template-columns: 68px repeat(2, minmax(0, 1fr));
  }

  .week-grid-sunday {
    grid-template-columns: 68px minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .activity svg,
  .footer-contact svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .footer-contact a {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .week-grid-primary,
  .week-grid-wed-thu,
  .week-grid-fri-sat {
    display: none;
  }

  .day-grid,
  .week-grid-sunday {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-rows: 40px repeat(14, minmax(64px, auto));
    width: 100%;
  }
}
