:root {
  --sage: #879a7e;
  --sage-dark: #485942;
  --sage-deep: #273728;
  --muted-strong: #56634f;
  --yellow: #f7cc6b;
  --cream: #fff8dc;
  --paper: #fffdf3;
  --peach: #f3d6c8;
  --line: rgba(72, 89, 66, 0.24);
  --shadow: 0 26px 80px rgba(50, 66, 45, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--sage-deep);
  background:
    radial-gradient(circle at 8% 12%, rgba(247, 204, 107, 0.34), transparent 24rem),
    linear-gradient(135deg, #f7efcd 0%, #eef0d8 48%, #dce5d7 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sage-dark);
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(72, 89, 66, 0.18);
  border-radius: 16px;
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--muted-strong);
  font-size: 0.75rem;
}

.header-link {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--sage-dark);
}

main {
  padding: 12px 0 42px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  min-height: 710px;
  overflow: hidden;
  border: 1px solid rgba(72, 89, 66, 0.22);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.event-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 76px);
  background:
    linear-gradient(90deg, transparent 31px, rgba(135, 154, 126, 0.09) 32px, transparent 33px),
    var(--paper);
}

.event-content::after {
  content: "";
  position: absolute;
  width: 128px;
  height: 128px;
  right: -42px;
  bottom: 30px;
  border-radius: 50%;
  background: var(--peach);
  opacity: 0.55;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 18px;
  color: #64755c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 4.5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.84;
}

.next-session {
  position: relative;
  z-index: 1;
  margin: 28px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.next-label {
  margin: 0 0 6px;
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-session h2 {
  margin: 0 0 13px;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.date-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.date-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: var(--sage-deep);
  background: var(--yellow);
  font-weight: 900;
}

.date-line > span:last-child {
  display: grid;
  gap: 2px;
}

.date-line strong {
  font-size: 1.04rem;
}

.date-line small {
  color: var(--muted-strong);
  font-size: 0.78rem;
}

.countdown-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  padding: 21px 22px 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(247, 239, 205, 0.58);
}

.countdown-label {
  margin: 0 0 10px;
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: minmax(76px, 1.35fr) auto repeat(2, minmax(48px, 0.75fr) auto) minmax(48px, 0.75fr);
  align-items: start;
  gap: clamp(5px, 1vw, 12px);
}

.time-unit {
  display: grid;
  gap: 2px;
}

.time-unit span {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 750;
  letter-spacing: -0.07em;
  line-height: 1;
}

.time-unit-days span {
  color: #506548;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.5vw, 4.45rem);
  font-weight: 600;
}

.time-unit small {
  color: var(--muted-strong);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.separator {
  padding-top: 5px;
  color: #a3aa92;
  font-size: 1.7rem;
  line-height: 1;
}

.local-time {
  min-height: 16px;
  margin: 10px 0 0;
  color: var(--muted-strong);
  font-size: 0.72rem;
}

.quick-details {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.primary-action {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 17px 19px;
  border-radius: 15px;
  color: #fffdf3;
  background: var(--sage-dark);
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  background: #364933;
}

.primary-action:focus-visible,
.header-link:focus-visible,
.brand:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.poster-frame {
  position: relative;
  display: grid;
  min-width: 0;
  margin: 0;
  place-items: center;
  padding: clamp(18px, 2.5vw, 32px);
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 248, 220, 0.28), transparent 12rem),
    var(--sage);
}

.poster-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.13), transparent 56%);
  pointer-events: none;
}

.poster-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 600px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 30px;
  box-shadow: 0 24px 58px rgba(30, 45, 29, 0.24);
}

.schedule {
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(72, 89, 66, 0.22);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.schedule-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  align-items: end;
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(38px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.schedule-heading .eyebrow {
  margin-bottom: 12px;
}

.schedule-heading h2 {
  margin: 0;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.schedule-heading > p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.65;
}

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

.session {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 46px);
  padding: 24px clamp(28px, 5vw, 64px);
}

.session + .session {
  border-top: 1px solid var(--line);
}

.session time {
  display: grid;
  width: 64px;
  height: 64px;
  place-content: center;
  border-radius: 18px;
  color: var(--sage-dark);
  background: rgba(247, 204, 107, 0.52);
  text-align: center;
}

.session time span {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.session time strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 0.95;
}

.session h3 {
  margin: 0 0 5px;
  color: var(--sage-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
}

.session p {
  max-width: 720px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.55;
}

.session-status {
  min-width: 76px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.session[data-state="next"] {
  background: rgba(247, 204, 107, 0.12);
}

.session[data-state="next"] .session-status,
.session[data-state="live"] .session-status {
  border-color: var(--sage-dark);
  color: var(--paper);
  background: var(--sage-dark);
}

.session[data-state="past"] {
  background: rgba(135, 154, 126, 0.07);
}

.schedule-action {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 0.5fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 24px clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: rgba(247, 239, 205, 0.44);
}

.schedule-action p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.schedule-action p strong {
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.schedule-action p span {
  color: var(--muted-strong);
  font-size: 0.68rem;
}

.schedule-action .primary-action {
  justify-self: end;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 32px;
  color: var(--muted-strong);
  font-size: 0.76rem;
}

footer a:hover {
  color: var(--sage-deep);
}

@media (max-width: 900px) {
  .event-card {
    grid-template-columns: 1fr;
  }

  .poster-frame {
    grid-row: auto;
    padding: clamp(16px, 3.5vw, 30px);
  }

  .poster-frame img {
    width: min(88%, 500px);
    border-radius: 18px;
  }

  .event-content {
    padding: clamp(38px, 8vw, 68px);
  }

  h1 {
    font-size: clamp(2.9rem, 9.5vw, 4.4rem);
  }

  .schedule-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .schedule-heading > p {
    max-width: 620px;
  }

  .schedule-action {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-action .primary-action {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 78px;
  }

  .brand img {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .brand strong {
    font-size: 1.12rem;
  }

  .brand small,
  .header-link span {
    display: none;
  }

  .header-link {
    font-size: 0.8rem;
  }

  main {
    padding-top: 2px;
  }

  .event-card {
    border-radius: 22px;
  }

  .poster-frame {
    padding: 12px;
  }

  .poster-frame img {
    width: min(92%, 400px);
    border-radius: 13px;
  }

  .event-content {
    padding: 34px 24px 32px;
    background: var(--paper);
  }

  .event-content::after {
    display: none;
  }

  .eyebrow {
    margin-bottom: 15px;
    font-size: 0.67rem;
  }

  h1 {
    font-size: clamp(2.45rem, 12.5vw, 3.25rem);
  }

  .countdown-wrap {
    padding: 17px 14px 14px;
  }

  .countdown {
    grid-template-columns: minmax(54px, 1.25fr) auto repeat(2, minmax(38px, 0.75fr) auto) minmax(38px, 0.75fr);
    gap: 4px;
  }

  .time-unit span {
    font-size: clamp(1.7rem, 9vw, 2.35rem);
  }

  .time-unit-days span {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .time-unit small {
    font-size: 0.54rem;
  }

  .separator {
    font-size: 1.25rem;
  }

  .schedule {
    margin-top: 18px;
    border-radius: 22px;
  }

  .schedule-heading {
    gap: 20px;
    padding: 32px 24px;
  }

  .schedule-heading h2 {
    font-size: clamp(2.25rem, 12vw, 3.3rem);
  }

  .schedule-heading > p {
    font-size: 0.9rem;
  }

  .session {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 15px;
    padding: 20px 24px;
  }

  .session time {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .session time strong {
    font-size: 1.4rem;
  }

  .session-status {
    grid-column: 2;
    min-width: 68px;
    justify-self: start;
    padding: 6px 9px;
  }

  .schedule-action {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 24px;
  }

  .schedule-action .primary-action {
    grid-column: auto;
  }

  footer {
    flex-direction: column;
    gap: 7px;
    padding-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .primary-action {
    transition: none;
  }
}
