:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-primary: #7c5c3e;
  --color-primary-light: #a07850;
  --color-text: #2c2c2c;
  --color-muted: #888888;
  --color-border: #e8e0d6;
  --color-olive: #6b7c45;
  --color-olive-light: #8a9e5a;
  --color-olive-pale: #eef1e6;
  --font-heading: 'Georgia', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 480px;
  --nav-height: 56px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  min-height: 100vh;
  padding-bottom: 2rem;
  overflow-x: hidden;
}

/* ── Navigation ──────────────────────────────── */
nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  justify-content: space-around;
  padding: 0 1rem;
}

nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: clamp(0.6rem, 2.2vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0.15rem 0.3rem;
  transition: color 0.2s;
  /* full-height touch target (nav is 56px) */
  height: var(--nav-height);
  display: inline-flex;
  align-items: center;
}

nav a.active,
nav a:hover {
  color: var(--color-primary);
}

/* ── Page wrapper ────────────────────────────── */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* ── Hero / Welcome ──────────────────────────── */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  position: relative;
}

/* Leaf sprigs flanking the hero */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 2.6rem;
  width: 44px;
  height: 58px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
}
.hero::before {
  left: max(0.5rem, calc(50% - 260px));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 90'%3E%3Cpath d='M32 85 Q28 60 18 48 Q8 36 12 18 Q16 4 32 2' fill='none' stroke='%236b7c45' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M32 50 Q20 44 14 32' fill='none' stroke='%236b7c45' stroke-width='1.5' stroke-linecap='round'/%3E%3Cellipse cx='11' cy='27' rx='10' ry='6' fill='%236b7c45' opacity='.5' transform='rotate(-30 11 27)'/%3E%3Cpath d='M32 65 Q22 58 17 46' fill='none' stroke='%236b7c45' stroke-width='1.5' stroke-linecap='round'/%3E%3Cellipse cx='14' cy='41' rx='10' ry='6' fill='%236b7c45' opacity='.5' transform='rotate(-20 14 41)'/%3E%3Cpath d='M32 35 Q22 28 20 16' fill='none' stroke='%236b7c45' stroke-width='1.5' stroke-linecap='round'/%3E%3Cellipse cx='17' cy='11' rx='9' ry='5' fill='%236b7c45' opacity='.45' transform='rotate(-40 17 11)'/%3E%3C/svg%3E");
}
.hero::after {
  right: max(0.5rem, calc(50% - 260px));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 90'%3E%3Cpath d='M32 85 Q36 60 46 48 Q56 36 52 18 Q48 4 32 2' fill='none' stroke='%236b7c45' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M32 50 Q44 44 50 32' fill='none' stroke='%236b7c45' stroke-width='1.5' stroke-linecap='round'/%3E%3Cellipse cx='53' cy='27' rx='10' ry='6' fill='%236b7c45' opacity='.5' transform='rotate(30 53 27)'/%3E%3Cpath d='M32 65 Q42 58 47 46' fill='none' stroke='%236b7c45' stroke-width='1.5' stroke-linecap='round'/%3E%3Cellipse cx='50' cy='41' rx='10' ry='6' fill='%236b7c45' opacity='.5' transform='rotate(20 50 41)'/%3E%3Cpath d='M32 35 Q42 28 44 16' fill='none' stroke='%236b7c45' stroke-width='1.5' stroke-linecap='round'/%3E%3Cellipse cx='47' cy='11' rx='9' ry='5' fill='%236b7c45' opacity='.45' transform='rotate(40 47 11)'/%3E%3C/svg%3E");
}

.hero .couple {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-primary);
  line-height: 1.2;
}

.hero .date {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .welcome-msg {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* ── Countdown ────────────────────────────────── */
.countdown-title {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.countdown-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* ── Section headings ────────────────────────── */
h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h2::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 16 Q8 10 4 6 Q2 4 3 2 Q6 1 9 5 Q12 1 15 2 Q16 4 14 6 Q10 10 9 16Z' fill='%236b7c45' opacity='.7'/%3E%3Cline x1='9' y1='16' x2='9' y2='6' stroke='%236b7c45' stroke-width='0.8' opacity='.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.8;
}

/* ── Cards ───────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 52px;
  height: 52px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Cpath d='M48 48 Q36 40 26 42 Q16 44 10 36 Q6 28 14 22 Q22 16 30 22 Q40 28 48 48Z' fill='%236b7c45' opacity='.13'/%3E%3Cpath d='M48 48 Q42 38 38 30' stroke='%236b7c45' stroke-width='1' fill='none' opacity='.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

.card p + p {
  margin-top: 0.5rem;
}

.card a {
  color: var(--color-primary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.card a:hover {
  text-decoration: underline;
}

/* ── Timeline (schedule) ─────────────────────── */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.5rem 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.45rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-olive);
  border: 2px solid var(--color-bg);
}

.timeline-item .time {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-item .event-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.15rem 0;
}

.timeline-item .event-desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.timeline-item .event-location {
  font-size: 0.8rem;
  color: var(--color-primary-light);
  margin-top: 0.25rem;
}

/* ── Language switcher ───────────────────────── */
#lang-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--color-primary);
  font-family: var(--font-body);
  white-space: nowrap;
  flex-shrink: 0;
}

#lang-btn:hover {
  background: var(--color-border);
}