:root {
  color-scheme: light;
  --ink: #171414;
  --muted: #6f625d;
  --paper: #fffaf6;
  --cream: #f4eadf;
  --coral: #d85f45;
  --gold: #d59a3f;
  --teal: #1f6f72;
  --night: #211d2b;
  --line: rgba(23, 20, 20, 0.14);
  --shadow: 0 24px 70px rgba(36, 26, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero {
  min-height: 100svh;
  padding: 24px clamp(18px, 4vw, 56px) 48px;
  background:
    linear-gradient(110deg, rgba(255, 250, 246, 0.96) 0%, rgba(255, 250, 246, 0.74) 45%, rgba(255, 250, 246, 0.2) 100%),
    var(--cream);
}

.nav,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
}

.nav-link {
  font-weight: 700;
  color: var(--teal);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  min-height: calc(100svh - 114px);
  margin: 0 auto;
}

.hero-copy {
  padding: 48px 0 20px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 9vw, 8.3rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.subtitle {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.event-meta,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.event-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.58);
  color: #493f3b;
  font-size: 0.95rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 12px 30px rgba(216, 95, 69, 0.28);
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.dark {
  background: var(--night);
}

.hero-media {
  position: relative;
  min-height: 430px;
  height: min(68svh, 740px);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.42));
}

figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 250, 246, 0.88);
  color: #392f2c;
  font-size: 0.82rem;
  font-weight: 800;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline-list article {
  min-height: 230px;
  padding: 28px;
  background: #fffdfb;
}

.timeline-list span {
  display: block;
  margin-bottom: 48px;
  color: var(--coral);
  font-weight: 900;
  letter-spacing: 0.09em;
}

.timeline-list p,
.description p,
.registration-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.description {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.description-copy p {
  max-width: 740px;
  font-size: 1.12rem;
}

.description-panel {
  border-left: 4px solid var(--gold);
  padding: 26px 0 26px 28px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(42px, 7vw, 76px) clamp(18px, 7vw, 90px);
  background: var(--teal);
  color: white;
}

.cta-band .eyebrow {
  color: #f6d698;
}

.cta-band h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.gallery figure {
  position: relative;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream);
}

.gallery figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.35));
}

.gallery figure {
  grid-column: span 2;
}

.gallery .wide {
  grid-column: span 4;
}

.registration {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 32px);
  background: #fffdfb;
  box-shadow: 0 16px 50px rgba(36, 26, 22, 0.08);
}

label {
  display: grid;
  gap: 8px;
  color: #483d39;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(23, 20, 20, 0.18);
  border-radius: 8px;
  padding: 14px 13px;
  background: white;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.form-status[data-status="success"] {
  color: var(--teal);
}

.form-status[data-status="error"] {
  color: var(--coral);
}

.full {
  grid-column: 1 / -1;
}

.footer {
  align-items: flex-start;
  padding: 34px clamp(18px, 4vw, 56px) 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 14px 0 0;
}

address {
  font-style: normal;
  line-height: 1.7;
  text-align: right;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .description,
  .registration {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .timeline-list {
    grid-template-columns: 1fr 1fr;
  }

  .gallery figure,
  .gallery .wide {
    grid-column: span 3;
  }

  .cta-band,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  address {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5rem);
  }

  .timeline-list,
  .form {
    grid-template-columns: 1fr;
  }

  .timeline-list article {
    min-height: auto;
  }

  .timeline-list span {
    margin-bottom: 28px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery figure,
  .gallery .wide {
    grid-column: auto;
  }

  .gallery figure {
    min-height: 360px;
  }
}
