:root {
  --bg: #c2cca8;
  --bg-alt: #c2cca8;
  --olive: #3f4f2a;
  --olive-dark: #4f3730;
  --gold: #6f2d3c;
  --rose: #6f2d3c;
  --terracotta: #c98271;
  --sea: #6f2d3c;
  --text: #6f2d3c;
  --text-soft: #8a4858;
  --card: #ffeddc;
  --box-sundried: rgba(225, 186, 150, 0.28);
  --line: rgba(79, 55, 48, 0.28);
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-size: calc(16px + 2pt);
}

body {
  font-family: "Cormorant Garamond", serif;
  color: var(--text);
  background: transparent;
  min-height: 100vh;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  margin-bottom: 0.4rem;
  color: var(--olive);
}

.hero h1 {
  font-size: clamp(1.25rem, 7.5vw, 5.2rem);
  white-space: nowrap;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--gold);
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  color: var(--rose);
}

p {
  margin: 0;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.section {
  margin: 4.5rem auto;
}

.background-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("../images/bg4.jpeg") center / 100% 100% no-repeat;
  opacity: 1;
  z-index: -1;
}

.hero {
  padding: 1.1rem 0 1.4rem;
  position: relative;
}

.schedule.section {
  margin-top: 1.9rem;
}

.hero-content {
  text-align: center;
  padding-top: 12rem;
  animation: rise 1s ease both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.65rem;
}

.hero-date {
  font-size: 1.3rem;
  color: var(--olive);
  font-weight: 700;
}

.hero-subtitle {
  margin: 1rem auto 0;
  max-width: 640px;
  font-size: 1.12rem;
  color: var(--olive);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 1rem;
}

.countdown-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 0.5rem;
  text-align: center;
}

.countdown-card:nth-child(odd) {
  transform: none;
}

.countdown-card:nth-child(even) {
  transform: none;
}

.countdown-value {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 7vw, 3rem);
  color: var(--text);
  font-weight: 700;
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.schedule-group {
  margin-top: 1.25rem;
}

.schedule-group:first-child {
  margin-top: 0;
}

.schedule-group-title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  letter-spacing: 0.04em;
  color: var(--rose);
}

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

.timeline-item {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  color: var(--text);
}

.timeline-item:nth-child(odd) {
  transform: none;
}

.timeline-item:nth-child(even) {
  transform: none;
}

.event-copy {
  display: grid;
  gap: 0.6rem;
}

.event-media {
  margin: 0;
  width: 320px;
  height: 210px;
  justify-self: end;
}

.event-photo-placeholder {
  min-height: 170px;
  border-radius: 0;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.8rem;
  color: var(--text-soft);
  background: var(--box-sundried);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.event-photo {
  width: 100%;
  min-height: 0;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}

.timeline-time {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.timeline-item .map-link {
  display: inline-block;
  margin-top: 0.6rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.location-card {
  background: var(--box-sundried);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.location-card iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 12px;
  margin: 0.75rem 0;
}

.map-link {
  color: var(--sea);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  width: fit-content;
}

.map-link:hover {
  color: var(--terracotta);
}

.rsvp-form {
  display: grid;
  gap: 0.65rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  color: var(--text);
}

.rsvp-note {
  margin-bottom: 1rem;
}

.rsvp-form label {
  font-weight: 700;
  color: var(--gold);
}

.rsvp-form input,
.rsvp-form textarea,
.rsvp-form button {
  font: inherit;
}

.rsvp-form input,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(232, 244, 246, 0.35);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: var(--box-sundried);
  color: var(--text);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  accent-color: var(--olive);
}

.checkbox-row label {
  margin: 0;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  outline: 2px solid rgba(144, 216, 210, 0.35);
  border-color: var(--olive);
}

.rsvp-form button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #8ad7d0, var(--sea));
  color: #0b2f4a;
  font-weight: 800;
  cursor: pointer;
  margin-top: 0.5rem;
}

.rsvp-form button:hover {
  filter: brightness(0.97);
}

.rsvp-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-message {
  margin-top: 0.9rem;
  min-height: 1.5em;
  font-weight: 700;
}

.form-message.success {
  color: #93e3aa;
}

.form-message.error {
  color: #ffab97;
}

.accommodation {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--text);
}

.footer {
  border-top: 1px solid rgba(232, 244, 246, 0.25);
  text-align: center;
  padding: 1.25rem 0 2.2rem;
  color: var(--text);
  font-weight: 700;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@media (max-width: 860px) {
  .timeline,
  .locations-grid {
    grid-template-columns: 1fr;
  }

  .section {
    margin: 3.5rem auto;
  }
}

@media (max-width: 580px) {
  .hero-content {
    padding-top: 2.4rem;
  }

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