:root {
  --bg: #FBFAF6;
  --bg-outer: #E4E0CF;
  --bg-soft: #F3F1EA;
  --text: #2F3A2A;
  --muted: #6B7562;
  --sage: #8FA58A;
  --sage-dark: #6F8769;
  --line: #E4E1D6;
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --script: 'Alex Brush', 'Cormorant Garamond', cursive;
  --sans: 'Cormorant Garamond', 'Georgia', serif;
  --container: 1080px;
  --card: 1040px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(47, 58, 42, 0.06);
  --card-shadow: 0 0 80px rgba(47, 58, 42, 0.1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-outer);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  -webkit-font-smoothing: antialiased;
}

/* ---------- page card (invitation frame) ---------- */
.page-card {
  max-width: var(--card);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--sage);
  border-bottom: 4px solid var(--sage);
  overflow: hidden;
  isolation: isolate;
}


/* ---------- top banner (every page, sits above page heading) ---------- */
.page-banner {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 64px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 640px) {
  .page-banner { max-width: 78%; padding: 0; }
}

/* ---------- venue photo (homepage) ---------- */
.venue-photo {
  padding: 20px 0 60px;
  text-align: center;
}
.venue-frame {
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(47, 58, 42, 0.2);
}
.venue-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.venue-caption {
  margin: 20px auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

/* ornamental divider — sage line with dot */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto 26px;
  width: 140px;
  color: var(--sage);
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sage);
  opacity: 0.7;
}
.ornament-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

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

a {
  color: var(--sage-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
a:hover { border-bottom-color: var(--sage-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.2em; }

/* ---------- language visibility ---------- */
.lang-no [data-lang="en"] { display: none !important; }
.lang-en [data-lang="no"] { display: none !important; }

/* ---------- layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ---------- nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--text);
  border: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: none;
  padding-bottom: 2px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-bottom: 1px solid var(--sage);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--bg);
}
.lang-toggle button {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle button.active {
  background: var(--sage);
  color: white;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  color: var(--text);
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 64px 24px 100px;
  overflow: hidden;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 18px;
}
.hero h1 {
  margin-top: 10px;
  font-family: var(--script);
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text);
}
.hero .amp {
  color: var(--sage-dark);
  font-weight: 400;
  margin: 0 0.05em;
}
.hero-date {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-top: 10px;
}
.hero-venue {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.hero-welcome {
  max-width: 560px;
  margin: 36px auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--muted);
}


/* ---------- nav cards (homepage) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.card {
  display: block;
  padding: 48px 28px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--sage);
}
.card h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- page header (non-home pages) ---------- */
.page-head {
  position: relative;
  text-align: center;
  padding: 56px 24px 40px;
}
.page-head h1 {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
}
.page-head .eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--sage-dark);
  margin-bottom: 10px;
}

/* ---------- timeline (program) ---------- */
.timeline {
  max-width: 640px;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.timeline-item {
  position: relative;
  padding: 14px 0 28px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-time {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--sage-dark);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.timeline-label {
  font-family: var(--sans);
  color: var(--text);
  letter-spacing: 0.05em;
}
.timeline-note {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- info grid (practical) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card {
  padding: 28px 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--sage-dark);
}
.info-card p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* ---------- story (historie) ---------- */
.story-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  border-left: 1px solid var(--sage);
  border-right: 1px solid var(--sage);
}
.story-wrap p {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
}

/* ---------- gifts list ---------- */
.gift-list {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.gift-list li {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.gift-list li:last-child { border-bottom: none; }
.gift-list h3 {
  font-size: 1.3rem;
  color: var(--sage-dark);
  margin-bottom: 4px;
}
.gift-list p {
  margin: 0;
  color: var(--muted);
}
.gift-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  text-align: center;
  padding: 90px 24px 40px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  overflow: hidden;
}
.site-footer .footer-leaves {
  position: absolute;
  bottom: -10px;
  right: -40px;
  width: 220px;
  opacity: 0.55;
  pointer-events: none;
}
.site-footer .footer-leaves.left {
  right: auto;
  left: -40px;
  transform: scaleX(-1);
  top: -10px;
  bottom: auto;
}
.site-footer p {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin: 0 0 4px;
}
.site-footer .ampersand {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--sage);
  font-style: italic;
}

/* ---------- corner decorations ---------- */
.corner {
  position: absolute;
  width: 260px;
  pointer-events: none;
  opacity: 0.9;
}
.corner.top-left { top: 0; left: 0; }
.corner.bottom-right { bottom: 0; right: 0; }

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 16px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; }
  .nav-toggle { display: inline-block; }

  .card-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }

  section { padding: 60px 0; }

  .corner { width: 140px; }
  .hero-wreath { width: 90%; }
}
