:root {
  --bg: #faf7f2;
  --bg-deep: #f0ebe3;
  --text: #2c2825;
  --muted: #6b635c;
  --gold: #b8956a;
  --gold-light: #d4b896;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(44, 40, 37, 0.08);
  --radius: 18px;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page {
  overflow-x: hidden;
}

.container {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: end;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #181210;
}

.hero__photo {
  width: 118%;
  height: 100%;
  margin-left: -9%;
  object-fit: cover;
  object-position: 53% 62%;
  filter: blur(0.8px) saturate(0.96) contrast(1.02) brightness(1.02);
  transform: none;
  backface-visibility: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(24, 18, 16, 0.1) 0%,
      rgba(24, 18, 16, 0.06) 36%,
      rgba(24, 18, 16, 0.52) 72%,
      rgba(24, 18, 16, 0.8) 100%
    ),
    radial-gradient(circle at 18% 22%, rgba(255, 220, 180, 0.16), transparent 32%),
    radial-gradient(circle at 82% 28%, rgba(255, 210, 170, 0.12), transparent 30%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.1), transparent 46%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 2rem));
  padding: 2.5rem 1.5rem 4.5rem;
  animation: fadeUp 1.2s ease both;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero__eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 2.6vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero__names {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.35em;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 9vw, 6.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero__amp {
  display: inline-block;
  margin: 0 0.15em;
  color: var(--gold-light);
  font-style: italic;
}

.hero__date {
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scroll {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1.5rem;
  opacity: 0.85;
  animation: bounce 2s infinite;
}

@media (min-width: 768px) {
  .hero__photo {
    width: 100%;
    margin-left: 0;
    object-position: 36% 66%;
    transform: scale(1.1) translateX(-6%);
    transform-origin: center center;
  }

  .hero__content {
    padding: 3rem 2rem 4rem;
  }
}

@media (min-width: 1100px) {
  .hero__photo {
    object-position: 34% 70%;
    transform: scale(1.1) translateX(-5%);
  }
}

.section {
  padding: 5rem 0;
}

.section--intro {
  text-align: center;
}

.section--info {
  background: var(--bg-deep);
}

.section--timeline {
  background: var(--white);
}

.section--rsvp {
  background:
    linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}

.section--contact {
  text-align: center;
  padding-bottom: 3rem;
}

.section__label {
  margin: 0 0 1rem;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
}

.intro__text {
  margin: 0 auto;
  max-width: 640px;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.5;
}

.info-grid {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.info-card__icon {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-size: 1.2rem;
}

.info-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.info-card p {
  margin: 0.25rem 0;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.link:hover {
  border-bottom-color: var(--gold);
}

.timeline {
  list-style: none;
  margin: 2rem auto 0;
  padding: 0 0 0 1.25rem;
  max-width: 520px;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  column-gap: 1.5rem;
  align-items: baseline;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 1px solid rgba(184, 149, 106, 0.35);
}

.timeline li:last-child {
  border-left-color: transparent;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline__time {
  font-weight: 500;
  color: var(--gold);
  text-align: right;
  white-space: nowrap;
}

.timeline__text {
  min-width: 0;
}

.rsvp {
  max-width: 560px;
  text-align: center;
}

.rsvp__deadline {
  margin: 0 0 2rem;
  color: var(--muted);
}

.rsvp-form {
  text-align: left;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  display: block;
  margin-bottom: 1.25rem;
}

.field > span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.field small {
  color: var(--muted);
  font-weight: 300;
}

.field input[type="text"],
.field input[type="number"],
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(44, 40, 37, 0.12);
  border-radius: 12px;
  background: var(--bg);
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

fieldset.field {
  border: 0;
  padding: 0;
  margin-bottom: 1.25rem;
}

.choice-group {
  display: grid;
  gap: 0.75rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(44, 40, 37, 0.12);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.choice:has(input:checked) {
  border-color: var(--gold);
  background: rgba(184, 149, 106, 0.08);
}

.choice input {
  accent-color: var(--gold);
}

.btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #9c784f);
  color: var(--white);
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-message {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}

.form-message--success {
  color: #3d6b4f;
}

.form-message--error {
  color: #9b3d3d;
}

.footer {
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
