:root {
  --bg: #fbf6eb;
  --surface: #fffaf2;
  --surface-strong: #fff3dd;
  --ink: #23313a;
  --muted: #5f6b70;
  --line: rgba(35, 49, 58, 0.12);
  --blue: #9bb9d6;
  --sage: #95baa5;
  --coral: #f08d72;
  --mustard: #ecc86d;
  --shadow: 0 22px 60px rgba(64, 74, 83, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 141, 114, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(155, 185, 214, 0.26), transparent 24%),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
  font-family: "Fraunces", Georgia, serif;
}

img {
  display: block;
  width: 100%;
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.brand-mark,
.topbar-link,
.button,
.eyebrow,
.countdown-label,
.info-card p,
.location-card p,
.rsvp-intro,
input,
select,
textarea,
.form-status {
  font-family: "Baloo 2", system-ui, sans-serif;
}

.brand-mark {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(149, 186, 165, 0.18);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topbar-link {
  font-weight: 700;
}

.hero {
  position: relative;
  padding: 12px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.1rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 13ch;
}

h3 {
  font-size: 1.45rem;
}

.hero-message,
.intro-grid p,
.rsvp-intro,
.after-event p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 700;
}

.button-primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.button-secondary {
  background: white;
}

.countdown-card,
.panel,
.location-card,
.info-card,
.gallery-item {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.countdown-card {
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.countdown-unit {
  padding: 12px 8px;
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
}

.countdown-unit strong {
  display: block;
  font-size: 1.8rem;
}

.countdown-unit span {
  color: var(--muted);
  font-family: "Baloo 2", system-ui, sans-serif;
}

.hero-collage {
  position: relative;
  min-height: 580px;
}

.hero-photo {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  background: #e8eef1;
}

.hero-photo img,
.gallery-item img {
  height: 100%;
  object-fit: cover;
}

.hero-photo-main {
  inset: 40px 54px 0 0;
  transform: rotate(-2deg);
}

.hero-photo-accent {
  width: 210px;
  height: 260px;
  left: 0;
  bottom: 42px;
  transform: rotate(5deg);
}

.hero-photo-accent.second {
  width: 170px;
  height: 220px;
  left: auto;
  right: 12px;
  bottom: -26px;
  transform: rotate(6deg);
}

.hero-sticker {
  position: absolute;
  padding: 10px 16px;
  border-radius: 999px;
  font: 700 1rem "Baloo 2", system-ui, sans-serif;
  box-shadow: var(--shadow);
}

.sticker-blue {
  left: 36px;
  top: 8px;
  background: var(--blue);
}

.sticker-coral {
  right: 32px;
  top: 8px;
  background: var(--coral);
  color: white;
}

.panel {
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 242, 0.9);
}

.panel-offset {
  margin-top: 10px;
}

.panel-strong {
  background: var(--surface-strong);
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 12px;
}

.section-heading {
  margin-top: 52px;
  margin-bottom: 18px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.timeline-time {
  display: inline-flex;
  align-self: start;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--mustard);
  font: 700 1rem "Baloo 2", system-ui, sans-serif;
}

.timeline-item p,
.timeline-item a,
.info-card p,
.location-card p,
.gallery-item figcaption {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1rem;
}

.practical .info-grid,
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card,
.location-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: white;
}

.contact-pill {
  display: inline-flex;
  margin: 10px 10px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(155, 185, 214, 0.18);
  font: 700 1rem "Baloo 2", system-ui, sans-serif;
}

.location-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-card .button {
  margin-top: 16px;
  width: 100%;
}

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

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: white;
}

.gallery-item.large {
  grid-column: span 6;
}

.gallery-item.medium {
  grid-column: span 4;
}

.gallery-item.small {
  grid-column: span 3;
}

.gallery-item img {
  aspect-ratio: 0.82;
}

.gallery-item figcaption {
  padding: 14px 16px 16px;
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.rsvp-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rsvp-form span {
  font: 700 1rem "Baloo 2", system-ui, sans-serif;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(35, 49, 58, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

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

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  font-weight: 700;
}

.hidden {
  display: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .intro-grid,
  .practical .info-grid,
  .location-grid,
  .rsvp-form {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    min-height: 460px;
  }

  .hero-photo-main {
    inset: 20px 20px 70px 20px;
  }

  .hero-photo-accent {
    width: 170px;
    height: 210px;
  }

  .hero-photo-accent.second {
    width: 140px;
    height: 180px;
    right: 8px;
  }

  .gallery-item.large,
  .gallery-item.medium,
  .gallery-item.small {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 640px);
    padding-bottom: 42px;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .panel,
  .countdown-card {
    padding: 20px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-collage {
    min-height: 380px;
  }

  .hero-photo-main {
    inset: 12px 14px 58px 14px;
  }

  .hero-photo-accent {
    width: 132px;
    height: 162px;
    left: 6px;
    bottom: 14px;
  }

  .hero-photo-accent.second {
    width: 110px;
    height: 144px;
    right: 0;
    bottom: -10px;
  }

  .hero-sticker {
    font-size: 0.85rem;
  }

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

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

  .gallery-item.large,
  .gallery-item.medium,
  .gallery-item.small {
    grid-column: span 2;
  }
}
