:root {
  --color-cream: #f7f3ed;
  --color-sage: #6b7f6a;
  --color-sage-dark: #4f6350;
  --color-gray: #5a5a5a;
  --color-gray-dark: #3d3d3d;
  --color-gray-light: #8a8a8a;
  --color-wood: #8b6f4e;
  --color-text: #3a342f;
  --color-muted: #6f655c;
  --color-white: #ffffff;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --shadow: 0 18px 40px rgba(58, 52, 47, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.container--narrow {
  width: min(760px, calc(100% - 2rem));
}

.hero {
  position: relative;
  min-height: 92vh;
  display: block;
  overflow: hidden;
  color: var(--color-gray-dark);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep couple on the right; light wall fills left for text */
  object-position: 78% 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

.hero__content {
  position: absolute;
  z-index: 1;
  top: clamp(1.25rem, 4vh, 3rem);
  left: clamp(1rem, 3.5vw, 3rem);
  width: min(640px, 52vw);
  margin: 0;
  padding: 0;
}

.hero__panel {
  position: relative;
  text-align: center;
  padding: clamp(1.1rem, 2vw, 1.75rem) clamp(1.5rem, 3.5vw, 3rem);
  /* Soft wall tone from the photo (circled area) */
  background: #c6c2bc;
  border-radius: 2px;
  /* Soft feathered edges — blend with photo blur */
  box-shadow:
    0 0 28px 22px #c6c2bc,
    0 0 56px 42px rgba(198, 194, 188, 0.75),
    0 0 90px 64px rgba(198, 194, 188, 0.35);
}

.hero__eyebrow {
  margin: 0 0 0.45rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.2;
  color: #4a4a4a;
}

.hero__names {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  color: #1f1f1f;
  white-space: nowrap;
}

.hero__names span {
  font-style: italic;
  font-weight: 400;
}

.hero__date,
.hero__city {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.25;
  color: #3d3d3d;
}

.hero__greeting {
  margin: 0.65rem 0 0;
  max-width: 100%;
  padding: 0.55rem 0 0;
  border-top: 1px solid rgba(61, 61, 61, 0.18);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #3d3d3d;
  line-height: 1.3;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  background: rgba(247, 243, 237, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 127, 106, 0.15);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  opacity: 0.85;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
  color: var(--color-sage-dark);
}

.nav__cta {
  color: var(--color-sage-dark);
  font-weight: 500;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: #f0ebe3;
}

.section--rsvp {
  background: linear-gradient(180deg, #f0ebe3 0%, #e8e6e4 100%);
}

.section__label {
  margin: 0 0 0.5rem;
  color: var(--color-sage);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.section h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
}

.section__grid {
  display: grid;
  gap: 2rem;
}

.section__grid--story {
  align-items: center;
}

.story-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.story-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(107, 127, 106, 0.18);
}

.timeline__item time {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-sage-dark);
}

.timeline__item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.timeline__item p {
  margin: 0;
  color: var(--color-muted);
}

.cards {
  display: grid;
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid rgba(107, 127, 106, 0.15);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

.card__address {
  margin: 0 0 0.75rem;
  color: var(--color-sage-dark);
  font-weight: 500;
}

.card__link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--color-sage-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.faq {
  margin: 0;
}

.faq__item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(107, 127, 106, 0.18);
}

.faq__item dt {
  margin-bottom: 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.faq__item dd {
  margin: 0;
  color: var(--color-muted);
}

.rsvp__text {
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

.rsvp__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  background: var(--color-gray-dark);
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-gray);
  transform: translateY(-1px);
}

.footer {
  padding: 3rem 1rem 4rem;
  text-align: center;
  background: var(--color-gray-dark);
  color: var(--color-cream);
}

.footer p {
  margin: 0.35rem 0;
}

.footer__names {
  font-family: var(--font-serif);
  font-size: 2rem;
}

.footer__date {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .section__grid--story {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero__content {
    width: min(520px, 68vw);
  }

  .hero__names {
    font-size: clamp(1.85rem, 4.5vw, 2.8rem);
  }
}

/* —— Tablet & mobile —— */
@media (max-width: 768px) {
  .container,
  .container--narrow {
    width: min(100%, calc(100% - 1.5rem));
  }

  .section {
    padding: 3.25rem 0;
  }

  .section h2 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    margin-bottom: 1.1rem;
  }

  .section__grid--story {
    gap: 1.5rem;
  }

  .story-photo img {
    aspect-ratio: 5 / 4;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.1rem 0;
  }

  .timeline__item time {
    font-size: 1.35rem;
  }

  .timeline__item h3 {
    font-size: 1.25rem;
  }

  .card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .card h3 {
    font-size: 1.35rem;
  }

  .btn {
    display: flex;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    justify-content: center;
    align-items: center;
    min-height: 3rem;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
  }

  .footer {
    padding: 2.5rem 1rem calc(2.5rem + env(safe-area-inset-bottom));
  }

  .footer__names {
    font-size: 1.65rem;
  }
}

/* —— Phones —— */
@media (max-width: 640px) {
  body {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
  }

  .hero {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero__image {
    object-position: 68% 28%;
  }

  .hero__content {
    top: max(0.85rem, env(safe-area-inset-top));
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }

  .hero__panel {
    padding: 1rem 1rem 1.1rem;
    box-shadow:
      0 0 18px 12px #c6c2bc,
      0 0 36px 24px rgba(198, 194, 188, 0.7),
      0 0 56px 40px rgba(198, 194, 188, 0.28);
  }

  .hero__eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
  }

  .hero__names {
    white-space: nowrap;
    font-size: clamp(1.55rem, 7.5vw, 2.15rem);
    line-height: 1.05;
  }

  .hero__date,
  .hero__city {
    margin-top: 0.3rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero__greeting {
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  /* Horizontal scroll nav — one row, easy thumb reach */
  .nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
  }

  .nav__cta {
    background: var(--color-gray-dark);
    color: #fff;
  }

  .nav__cta:hover,
  .nav__cta:focus-visible {
    color: #fff;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section__label {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }

  .faq__item dt {
    font-size: 1.2rem;
  }

  .rsvp__text {
    font-size: 0.95rem;
  }

  .section--rsvp {
    text-align: center;
  }

  .section--rsvp .container--narrow {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* —— Narrow phones —— */
@media (max-width: 380px) {
  .hero__names {
    white-space: normal;
    font-size: 1.7rem;
  }

  .hero__eyebrow {
    letter-spacing: 0.2em;
    font-size: 0.75rem;
  }

  .nav a {
    padding: 0.5rem 0.6rem;
    font-size: 0.65rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
