/* Grundlæggende stil – farver og skrifttyper samlet her, så de er nemme at ændre */
:root {
  --brown: #663232;
  --white: #fffdf6;
  --green: #1b4423;

  --bg: var(--white);
  --text: var(--brown);
  --muted: rgba(102, 50, 50, 0.7);
  --line: rgba(102, 50, 50, 0.18);
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-width: 960px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 253, 246, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--green);
}

.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--green); }

/* Forside */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  background: rgba(255, 253, 246, 0.92);
  padding: 2.5rem 2rem;
  border: 1px solid var(--line);
  max-width: 640px;
  width: 100%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--green);
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  line-height: 1.15;
  margin: 0.5rem 0;
}

.hero-date { color: var(--muted); font-size: 1.1rem; }

.countdown { margin-top: 1.5rem; font-size: 1.05rem; color: var(--green); }

/* Sektioner */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 3.5rem; /* så menuen ikke dækker overskriften */
}

.section h2 {
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--green);
}

/* Tidsplan: klokkeslæt til venstre, lodret linje med prikker, indhold til højre */
.timeline {
  list-style: none;
  max-width: 620px;
  margin: 2.5rem auto 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 2.25rem;
  position: relative;
  padding-bottom: 2.25rem;
}
.timeline li:last-child { padding-bottom: 0; }

/* linjen */
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(4.5rem + 1.125rem);
  top: 0.9rem;
  bottom: -0.9rem;
  width: 1px;
  background: var(--line);
}
.timeline li:last-child::before { display: none; }

/* prikken */
.timeline li::after {
  content: "";
  position: absolute;
  left: calc(4.5rem + 1.125rem - 5px);
  top: 0.55rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline time {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--green);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.timeline h3 {
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: 1.25rem;
  line-height: 1.4;
  padding-top: 0.1rem;
}

.timeline p { color: var(--muted); font-size: 0.95rem; }
.timeline a { text-underline-offset: 3px; }
.timeline a:hover { color: var(--green); }

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.section-accent {
  max-width: none;
  background: var(--green);
  color: var(--white);
  text-align: center;
  border-top: none;
}
.section-accent h2 { color: var(--white); }

/* Billeder og video */
.photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.lead { max-width: 60ch; margin-bottom: 2rem; }

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

/* Kort og rutevejledning */
.map-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2.5rem;
}

.map-info h3 {
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.map-info address { font-style: normal; margin-bottom: 1.25rem; }

.map {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #e9e2d3;
}

.button {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
}
.button:hover, .button:focus-visible { background: var(--brown); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.video,
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
}

.video-placeholder {
  background: var(--green);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.play-icon {
  width: 72px;
  height: 72px;
  border: 2px solid var(--white);
  border-radius: 50%;
  position: relative;
}
.play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--white);
}

/* Tilmeldingsformular */
.rsvp-form {
  max-width: 460px;
  margin: 2rem auto 0;
  display: grid;
  gap: 1.25rem;
  text-align: left;
}

.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.95rem; }

.field input,
.field select {
  width: 100%;
  font: inherit;
  color: var(--brown);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
}
.field input::placeholder { color: rgba(102, 50, 50, 0.45); }
.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid rgba(255, 253, 246, 0.55);
  outline-offset: 2px;
}
.field .invalid { border-color: #f0a8a0; box-shadow: 0 0 0 2px #f0a8a0; }

.hp { position: absolute; left: -9999px; }

.button { border: none; font: inherit; cursor: pointer; }
.button-light { background: var(--white); color: var(--green); justify-self: start; }
.button-light:hover, .button-light:focus-visible { background: var(--white); color: var(--brown); }
.button[disabled] { opacity: 0.6; cursor: default; }

.rsvp-status { min-height: 1.6em; }

.site-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--brown);
  color: var(--white);
}

@media (max-width: 700px) {
  .nav { flex-direction: column; }
  .nav-links { justify-content: center; font-size: 0.9rem; }
  .section { padding: 3.5rem 1.25rem; }
  .section-split, .venue-photos, .map-block { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
