:root {
  --sand: #f7f1df;
  --sand-deep: #e7d9b3;
  --ink: #16333a;
  --ink-soft: #244951;
  --sea: #0d6d76;
  --sea-soft: #edf7f6;
  --sunset: #f38d68;
  --sunset-deep: #d55e49;
  --gold: #f4c768;
  --panel: #fffaf1;
  --line: rgba(22, 51, 58, 0.18);
  --shadow: 0 24px 50px rgba(17, 51, 57, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 125%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background:
    radial-gradient(circle at top right, rgba(243, 141, 104, 0.22), transparent 32%),
    radial-gradient(circle at 18% 18%, rgba(244, 199, 104, 0.28), transparent 24%),
    linear-gradient(180deg, #fdf9ee 0%, #f7f0dd 42%, #f2faf9 100%);
}

body.page-programme {
  padding-bottom: 5.75rem;
}

.site-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 2rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(8px);
}

.hero::before {
  top: -5rem;
  right: -2rem;
  width: 18rem;
  height: 18rem;
  background: rgba(13, 109, 118, 0.14);
}

.hero::after {
  bottom: 1rem;
  left: -3rem;
  width: 14rem;
  height: 14rem;
  background: rgba(243, 141, 104, 0.16);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(10, 73, 81, 0.96) 0%, rgba(14, 83, 91, 0.92) 42%, rgba(20, 92, 101, 0.84) 72%, rgba(31, 105, 114, 0.76) 100%);
  box-shadow: var(--shadow);
}

.hero__brand {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(8rem, 22vw, 11.5rem);
  aspect-ratio: 1;
  padding: 1.1rem;
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 50px rgba(4, 33, 39, 0.24);
  backdrop-filter: blur(10px);
}

.hero__logo {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow,
.section-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.section-label {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sunset-deep);
}

.hero__copy {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.hero h1,
.programme-panel__header h2,
.day-page__title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 5.2rem);
}

.hero__dates {
  margin: 0.75rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #dff4f2;
}

.hero__lede,
.day-page__intro,
.site-footer p {
  margin: 0;
  max-width: 42rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.hero .eyebrow,
.hero h1,
.hero__lede,
.hero__dates {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: none;
  text-align: center;
  color: rgba(255, 245, 225, 0.92);
}

.hero h1,
.hero__lede {
  color: white;
}

.hero__copy h1 {
  text-wrap: balance;
}

.event-card__badge,
.day-summary__item {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.programme-app {
  padding-bottom: 3rem;
}

.programme-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.75rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.programme-panel__header {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 1.25rem 0;
}

.programme-panel__header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.day-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 1.25rem;
}

.day-menu .nav-link {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(22, 51, 58, 0.16);
  border-radius: 1.15rem;
  background: #fffdfa;
  box-shadow: 0 8px 18px rgba(22, 51, 58, 0.05);
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.day-menu .nav-link:hover,
.day-menu .nav-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(213, 94, 73, 0.45);
}

.day-menu .nav-link.active {
  background: linear-gradient(135deg, #0d6d76 0%, #0a4f56 100%);
  border-color: transparent;
  color: white;
}

.day-menu__day,
.day-menu__date {
  display: block;
}

.day-menu__day {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
}

.day-menu__date {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.tab-content {
  padding: 0 1rem 1rem;
}

.tab-pane {
  scroll-margin-top: 1rem;
}

.day-page {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: #fffdfa;
  overflow: hidden;
}

.day-page__header {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(13, 109, 118, 0.12) 0%, rgba(244, 199, 104, 0.2) 100%);
}

.day-page__title {
  font-size: clamp(1.85rem, 6vw, 2.8rem);
}

.day-page__intro {
  font-size: 1.05rem;
}

.day-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.day-summary__item {
  padding: 0.65rem 0.95rem;
  background: #fff;
  border: 1px solid rgba(13, 109, 118, 0.18);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sea);
}

.programme-scroll {
  padding: 1rem 1rem 1.25rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.event-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
  border: 1px solid rgba(22, 51, 58, 0.1);
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 8px 18px rgba(22, 51, 58, 0.05);
}

.event-card__time {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--sea-soft);
  color: var(--sea);
  font-size: 1rem;
  font-weight: 800;
}

.event-card__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 800;
}

.event-card__venue {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--sunset-deep);
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.event-card__badge {
  padding: 0.4rem 0.75rem;
  background: #f4fbfa;
  border: 1px solid rgba(13, 109, 118, 0.16);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-help-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
  background: linear-gradient(135deg, #0d6d76 0%, #0a4f56 100%);
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 -10px 24px rgba(13, 109, 118, 0.24);
}

.mobile-help-cta:hover,
.mobile-help-cta:focus-visible {
  color: white;
  background: linear-gradient(135deg, #0f7882 0%, #0b5b63 100%);
}

.contact-page {
  overflow: visible;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.contact-form .form-label {
  margin-bottom: 0.55rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.contact-form .form-control {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(22, 51, 58, 0.18);
  border-radius: 1rem;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}

.contact-form textarea.form-control {
  min-height: 8rem;
  resize: vertical;
}

.contact-form .form-control::placeholder {
  color: rgba(36, 73, 81, 0.7);
}

.contact-form .form-control:focus {
  border-color: rgba(13, 109, 118, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(13, 109, 118, 0.12);
}

.contact-form__note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.contact-form__status {
  min-height: 1.8rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-form__status[data-state="pending"] {
  color: var(--sea);
}

.contact-form__status[data-state="success"] {
  color: #1f6b3e;
}

.contact-form__status[data-state="error"] {
  color: var(--sunset-deep);
}

.contact-form__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
}

.contact-form__submit {
  padding: 0.95rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d6d76 0%, #0a4f56 100%);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(13, 109, 118, 0.18);
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  background: linear-gradient(135deg, #0f7882 0%, #0b5b63 100%);
  color: white;
}

.contact-form__submit:disabled {
  opacity: 0.8;
  cursor: wait;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(22, 51, 58, 0.16);
  border-radius: 999px;
  background: #fffdfa;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(22, 51, 58, 0.05);
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--ink);
  border-color: rgba(213, 94, 73, 0.45);
}

@media (min-width: 768px) {
  body.page-programme {
    padding-bottom: 0;
  }

  .hero {
    padding-top: 4.25rem;
  }

  .day-page__header {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
  }

  .hero__inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .programme-panel__header {
    padding: 2rem 2rem 0;
  }

  .day-menu {
    padding: 1.5rem 2rem;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  }

  .tab-content {
    padding: 0 2rem 2rem;
  }

  .day-page__header,
  .programme-scroll {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .event-card {
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: start;
  }

  .event-card__content {
    display: grid;
    gap: 0.5rem;
  }

  .contact-form__actions {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }

  .contact-link {
    width: auto;
    min-width: 13rem;
  }

  .mobile-help-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__inner,
  .programme-panel {
    animation: rise-in 500ms ease both;
  }

  .event-card {
    animation: fade-up 420ms ease both;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}