/* ---------- Tokens ---------- */
:root {
  /* Crisp white base with soft turquoise accents pulled from the hero photo. */
  --bg: #ffffff;
  --bg-soft: #ebf3f1;
  --bg-dark: #2c3a55;
  --ink: #1f2624;
  --ink-soft: #5b6361;
  --muted: #8d9492;
  --line: #e3ece9;
  --accent: #5d9089;
  --accent-warm: #8ec0b8;
  --accent-deep: #2c3a55;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --narrow: 720px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

p {
  margin: 0 0 1em;
}

/* ---------- Typography ---------- */
.display,
.display-sm {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.05;
  margin: 0;
}

.display {
  font-size: clamp(3.5rem, 11vw, 8.5rem);
}

.display span {
  display: inline-block;
}

.display .amp {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-warm);
  margin: 0 0.15em;
  transform: translateY(-0.05em);
}

.display-sm {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.15;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}

h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.2rem;
}

.eyebrow.center {
  text-align: center;
}

.center {
  text-align: center;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.86rem;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
  max-width: 38ch;
  margin: 0 auto 1.5rem;
}

.signature {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-top: 2rem;
}

/* ---------- Topbar / Nav ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.topbar.scrolled {
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.brand-amp {
  color: var(--accent-warm);
  font-style: italic;
  font-weight: 300;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.primary-nav a:hover {
  color: var(--ink);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}

.primary-nav a:hover::after {
  right: 0;
}

.nav-cta {
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.18em;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    background: var(--bg);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
    padding: 5.5rem 1.5rem 3rem;
    z-index: 55;
    overflow-y: auto;
  }

  .primary-nav.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.5s var(--ease), visibility 0s linear 0s;
  }

  .primary-nav a {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav .nav-cta {
    border: 0;
    padding: 0;
    border-radius: 0;
    letter-spacing: 0.04em;
  }

  .primary-nav .nav-cta:hover {
    background: transparent;
    color: var(--accent) !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  text-align: center;
  padding: 6rem clamp(1.25rem, 4vw, 2.5rem) 5rem;
  overflow: hidden;
  isolation: isolate;
  color: #f7faf9;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #1d2a3f;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1.5%, 0); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(15, 25, 40, 0) 0%,
      rgba(15, 25, 40, 0) 35%,
      rgba(15, 25, 40, 0.35) 65%,
      rgba(15, 25, 40, 0.78) 92%,
      rgba(15, 25, 40, 0.92) 100%
    );
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
  animation: rise 1.2s var(--ease) both;
  position: relative;
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.25);
}

.hero .eyebrow {
  color: #b8d8d2;
}

.hero .display {
  color: #fbfdfc;
}

.hero .display .amp {
  color: #b8d8d2;
}

.hero-date {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  letter-spacing: 0.45em;
  margin: 1.5rem 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: #ecf2f0;
}

.hero-date .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #b8d8d2;
  display: inline-block;
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: #e3eae8;
  max-width: 36ch;
  margin: 0 auto 2rem;
}

.hero .btn {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fbfdfc;
  text-shadow: none;
  backdrop-filter: blur(2px);
}

.hero .btn:hover {
  background: #fbfdfc;
  color: var(--ink);
  border-color: #fbfdfc;
}

.hero .scroll-indicator {
  color: rgba(255, 255, 255, 0.75);
}

.hero .scroll-indicator::after {
  background: rgba(255, 255, 255, 0.7);
}

.btn {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-1px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.scroll-indicator::after {
  content: "";
  width: 1px;
  height: 36px;
  background: var(--ink-soft);
  animation: stretch 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes stretch {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

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

/* ---------- Countdown band ---------- */
.countdown-band {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  padding: 2.2rem 1.5rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 2vw, 1rem);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.countdown strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
}

.countdown span {
  display: block;
  font-size: clamp(0.62rem, 1.6vw, 0.7rem);
  letter-spacing: clamp(0.12em, 1vw, 0.32em);
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.6rem;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section.dark {
  background: var(--bg-soft);
}

.section .narrow,
.narrow {
  max-width: var(--narrow);
  margin: 0 auto;
}

.section .grid-2,
.section.dark .grid-2 {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section .narrow + .grid-2 {
  margin-top: 3rem;
}

.story .lede {
  margin-top: 1.4rem;
}

/* ---------- Wann & Wo ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--accent-warm);
}

.card-time {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.4rem 0 0.2rem;
  letter-spacing: 0.05em;
}

.card-meta {
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.4rem;
}

.card-body {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 90px;
  width: 1px;
  background: var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 90px 24px 1fr;
  align-items: start;
  padding: 1rem 0;
  position: relative;
}

.timeline li::after {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: 86px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--accent-warm);
}

.timeline .time {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.timeline .event {
  grid-column: 3;
  display: flex;
  flex-direction: column;
}

.timeline .event strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.timeline .event em {
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.2rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .timeline::before {
    left: 8px;
  }

  .timeline li {
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0.2rem;
    padding: 0.8rem 0;
  }

  .timeline li::after {
    top: 1.45rem;
    left: 4px;
  }

  .timeline .time {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.05rem;
    color: var(--accent);
  }

  .timeline .event {
    grid-column: 2;
    grid-row: 2;
  }

  .timeline .event strong {
    font-size: 1.15rem;
  }
}

/* ---------- Note & contacts ---------- */
.note {
  margin-top: 3.5rem;
  padding: 2rem;
  background: var(--bg-soft);
  border-left: 2px solid var(--accent-warm);
  border-radius: 2px;
}

.note h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.note p {
  margin: 0;
  color: var(--ink-soft);
}

.contacts {
  margin-top: 2.5rem;
  text-align: center;
}

.contacts h4 {
  margin-bottom: 1.4rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.4rem 1.2rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-name {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.contact-list a {
  color: var(--accent);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.contact-list a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Menu ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.menu-grid > div {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.menu-grid p {
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 600px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Gifts ---------- */
.gift-text {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto;
  color: var(--ink-soft);
}

.gift-card {
  margin: 3rem auto 0;
  max-width: 460px;
  border: 1px solid var(--line);
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 4px;
  background: var(--bg);
  position: relative;
}

.gift-card::before,
.gift-card::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--accent-warm);
}

.gift-card::before {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
}

.gift-card::after {
  bottom: 8px;
  right: 8px;
  border-left: 0;
  border-top: 0;
}

.gift-label {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.4rem;
}

.gift-detail {
  margin: 0;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Dresscode palette ---------- */
.palette {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.5rem 0 1rem;
}

.palette span {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--c);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s var(--ease);
}

.palette span:hover {
  transform: scale(1.1);
}

/* ---------- Address ---------- */
.address {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.address h4 {
  margin-top: 0;
}

.address p {
  margin: 0 0 0.6rem;
}

.address-tag {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.8rem;
  font-weight: 500;
}

.address-lines {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1rem;
}

.address-lines em {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.address-link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: color 0.2s var(--ease);
}

.address-link:hover {
  color: var(--ink);
}

/* ---------- FAQ ---------- */
details {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 0.5rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-warm);
  transition: transform 0.3s var(--ease);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
}

/* ---------- RSVP ---------- */
.rsvp {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.rsvp-text {
  max-width: 56ch;
  margin: 0 auto;
}

.rsvp-form {
  display: grid;
  gap: 1.4rem;
  margin-top: 3rem;
}

.rsvp-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rsvp-form label > span,
.rsvp-form legend {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.rsvp-form input,
.rsvp-form textarea {
  font: inherit;
  font-size: 1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.1rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.rsvp-form textarea {
  resize: vertical;
  min-height: 80px;
}

.radio-row {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.radio-row legend {
  margin-bottom: 0.6rem;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  cursor: pointer;
}

.radio input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink-soft);
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  margin: 0;
}

.radio input::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-warm);
  transform: scale(0);
  transition: transform 0.2s var(--ease);
}

.radio input:checked::after {
  transform: scale(1);
}

.rsvp-form .btn {
  justify-self: start;
  margin-top: 0.5rem;
}

.form-message {
  font-style: italic;
  color: var(--accent);
  margin: 0;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
