/* ============================================================
   ROOT & RESET
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette */
  --cream:        #FAF7F2;
  --ivory:        #F5EDE0;
  --env-body:     #F0E6D2;
  --env-flap:     #E8DAC4;
  --env-interior: #EAE0CC;
  --env-shadow:   #D4C4A4;
  --gold:         #B8936A;
  --gold-light:   #D4B48A;
  --gold-dark:    #8C6840;
  --charcoal:     #2A2520;
  --charcoal-mid: #4A4035;
  --charcoal-lt:  #6A5E52;
  --muted:        #9A8E82;
  --warm-white:   #FDFAF6;

  /* Typography */
  --script:  'Great Vibes', cursive;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Jost', system-ui, sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --container:   960px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

[hidden] {
  display: none !important;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}


/* ============================================================
   SECTIONS — shared
============================================================ */
.section {
  padding: var(--section-pad) 24px;
}

.section-warm {
  background: var(--ivory);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.container-narrow {
  max-width: 640px;
}

.container-wide {
  max-width: 1100px;
}

/* eyebrow labels */
.eyebrow {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.58rem, 1.4vw, 0.68rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

/* Script heading (used in message) */
.script-heading {
  font-family: var(--script);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 28px;
}

/* Regular section heading */
.section-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-heading .muted {
  color: var(--muted);
}

/* Body prose */
.prose {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.85;
  color: var(--charcoal-lt);
  max-width: 560px;
  margin: 0 auto 40px;
}


/* ============================================================
   LOCATION
============================================================ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  text-align: left;
}

.location-info .section-heading {
  margin-bottom: 24px;
}

.location-info .prose {
  margin: 0 0 28px;
  max-width: 100%;
  text-align: left;
}

.location-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--charcoal-lt);
  line-height: 1.5;
}

.loc-icon {
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.location-list em {
  font-style: normal;
  color: var(--muted);
}

.location-map {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.location-map iframe {
  width: 100%;
  height: clamp(280px, 40vw, 440px);
  border: none;
}

@media (max-width: 720px) {
  .location-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .location-info .prose,
  .location-list {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }
  .location-list {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  padding: 60px 24px;
  text-align: center;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-script {
  font-family: var(--script);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--warm-white);
}

.footer-date {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 0.65rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-light);
}





/* ============================================================
   HEADER
============================================================ */
.site-header {
  padding: clamp(56px, 9vw, 96px) 24px clamp(36px, 5vw, 56px);
  text-align: center;
  background: var(--cream);
}

.seal {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  background: radial-gradient(circle at 38% 32%, #D8A86C 0%, #9C6830 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 10px rgba(0,0,0,0.22),
    inset 0 1px 2px rgba(255,255,255,0.18);
}

.seal-monogram {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(255, 248, 235, 0.92);
  line-height: 1;
}

.seal-monogram em {
  font-style: normal;
}

.site-header .script-heading {
  margin-bottom: 14px;
}

.header-meta {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.6rem, 1.5vw, 0.7rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.greeting {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--charcoal-lt);
  margin-top: 28px;
}


/* ============================================================
   TABS
============================================================ */
.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(8px, 4vw, 48px);
  padding: 0 16px;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--env-shadow);
  border-bottom: 1px solid var(--env-shadow);
}

.tab {
  position: relative;
  padding: 18px 6px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.6rem, 1.6vw, 0.72rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.tab:hover,
.tab[aria-current="page"] {
  color: var(--charcoal);
}

.tab::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab[aria-current="page"]::after {
  transform: scaleX(1);
}

.panel {
  min-height: 60vh;
}

@media (max-width: 480px) {
  .tab { letter-spacing: 0.14em; padding: 16px 4px; }
}


/* ============================================================
   TRANSPORT
============================================================ */
.transport {
  margin-top: clamp(64px, 9vw, 110px);
  padding-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--env-shadow);
}

.transport-options {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
  margin-top: 36px;
  text-align: left;
}

.transport-option {
  background: rgba(253, 250, 246, 0.55);
  border: 1px solid var(--env-shadow);
  border-radius: 4px;
  padding: clamp(28px, 4.5vw, 52px) clamp(20px, 4.5vw, 52px);
}

.option-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--env-shadow);
}

.option-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  color: var(--gold);
  font-size: 1.2rem;
}

.option-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  line-height: 1.2;
  color: var(--charcoal);
}

.option-title .muted {
  color: var(--muted);
}

.option-intro {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 2.3vw, 1.15rem);
  line-height: 1.75;
  color: var(--charcoal-lt);
  max-width: 720px;
  margin-bottom: 28px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.transport-card {
  background: var(--warm-white);
  border: 1px solid rgba(212, 196, 164, 0.6);
  border-radius: 3px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transport-card h4 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.transport-card p,
.transport-list li {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--charcoal-lt);
}

.transport-card strong {
  font-weight: 600;
  color: var(--charcoal-mid);
}

.transport-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transport-list li {
  position: relative;
  padding-left: 16px;
}

.transport-list li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--gold);
  font-weight: 600;
}

.transport-prices li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 8px;
  border-bottom: 1px dotted var(--env-shadow);
}

.transport-prices li::before {
  content: none;
}

.transport-prices li span:last-child {
  color: var(--charcoal);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.transport-tip {
  margin-top: auto;
  padding-top: 6px;
  font-style: italic;
  color: var(--muted) !important;
}


/* ============================================================
   DOCUMENT CARDS (PDF links)
============================================================ */
.doc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 440px;
  margin: 0 auto;
  padding: 22px 26px;
  background: var(--warm-white);
  border: 1px solid rgba(212, 196, 164, 0.8);
  border-radius: 3px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 28px rgba(90, 70, 50, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  box-shadow: 0 14px 36px rgba(90, 70, 50, 0.14);
}

.doc-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.doc-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.doc-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--charcoal);
}

.doc-meta {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-arrow {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.25s ease;
}

.doc-card:hover .doc-arrow {
  transform: translateX(4px);
}


/* ============================================================
   TIPI
============================================================ */
.tipi {
  margin-bottom: clamp(56px, 8vw, 88px);
}

.tipi-divider {
  margin: clamp(56px, 8vw, 88px) 0 0;
}

.ornament {
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.tipi .prose p + p {
  margin-top: 1em;
}

.tipi-cta {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--charcoal-lt);
}

.tipi-cta a,
.field-hint a {
  color: var(--gold-dark);
}


/* ============================================================
   RSVP FORM
============================================================ */
.rsvp-form {
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.field {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0;
  margin-bottom: 12px;
}

.field > .field-label {
  margin-bottom: 0;
}

.field-hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--muted);
}

.invite-names {
  list-style: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--charcoal);
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: block;
  padding: 16px 14px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--charcoal-lt);
  background: var(--warm-white);
  border: 1px solid rgba(212, 196, 164, 0.8);
  border-radius: 3px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.choice:hover span {
  border-color: var(--gold-light);
}

.choice input:checked + span {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--warm-white);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

textarea,
.code-form input {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--charcoal);
  background: var(--warm-white);
  border: 1px solid rgba(212, 196, 164, 0.8);
  border-radius: 3px;
  padding: 14px 16px;
  resize: vertical;
}

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

textarea::placeholder,
.code-form input::placeholder {
  color: var(--muted);
  font-style: italic;
}

.btn {
  align-self: center;
  padding: 16px 44px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--gold-dark);
  border-radius: 2px;
  transition: background 0.25s ease;
}

.btn:hover {
  background: var(--charcoal);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-ghost {
  color: var(--gold-dark);
  background: transparent;
  border: 1px solid var(--gold-light);
}

.btn-ghost:hover {
  color: var(--warm-white);
}

.code-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 420px) {
  .code-form { flex-direction: column; }
}

.form-error {
  font-family: var(--serif);
  font-style: italic;
  color: #9C4A30;
  text-align: center;
  margin-top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ── Airports (inside the "By plane" option) ──────────────── */
.airports {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 5vw, 56px);
}

.airport {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.airport + .airport {
  border-left: 1px solid var(--env-shadow);
  padding-left: clamp(28px, 5vw, 56px);
}

@media (max-width: 700px) {
  .airport + .airport {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--env-shadow);
    padding-top: 28px;
  }
}

.airport-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold-light);
}

.airport-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  color: var(--charcoal);
}

.airport-name .muted {
  color: var(--muted);
  font-weight: 300;
}

.airport-meta {
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.airport p:not(.airport-meta),
.airport .transport-list li {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--charcoal-lt);
}

.airport strong {
  font-weight: 600;
  color: var(--charcoal-mid);
}

.transport-option > .transport-tip {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--env-shadow);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
}

.option-address {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--env-shadow);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 2.3vw, 1.15rem);
  color: var(--charcoal);
}


/* ============================================================
   HOUSE
============================================================ */
.house-icon {
  color: var(--gold);
  display: flex;
  justify-content: center;
  margin: 8px 0 28px;
}

.house .prose p + p {
  margin-top: 1em;
}


/* ── Tipi reservation box (RSVP) ───────────────────────────── */
.tipi-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px clamp(18px, 4vw, 28px) 28px;
  background: rgba(253, 250, 246, 0.7);
  border: 1px solid var(--gold-light);
  border-radius: 4px;
}

.tipi-box-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--env-shadow);
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--charcoal);
}

.tipi-box-title svg {
  color: var(--gold);
  flex-shrink: 0;
}

.choices-sizes {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choices-sizes .choice span {
  padding: 12px 4px;
  font-size: 1.3rem;
  line-height: 1.1;
}

.choices-sizes small {
  display: block;
  font-family: var(--sans);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

@media (max-width: 420px) {
  .choices-sizes { grid-template-columns: repeat(3, 1fr); }
}


/* ============================================================
   PROGRAM (three-day timeline)
============================================================ */
.program {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
  margin-top: 8px;
  text-align: left;
}

@media (max-width: 860px) {
  .program {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 8px auto 0;
  }
}

.day {
  background: var(--warm-white);
  border: 1px solid rgba(212, 196, 164, 0.8);
  border-radius: 4px;
  padding: clamp(26px, 3.5vw, 36px) clamp(22px, 3vw, 32px);
}

.day-header {
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--env-shadow);
}

.day-date {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.day-date span {
  color: var(--charcoal-mid);
}

.day-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  color: var(--charcoal);
}

/* The wedding day — the star of the weekend */
.day-main {
  background: var(--charcoal);
  border-color: var(--charcoal);
  box-shadow: 0 18px 48px rgba(42, 37, 32, 0.22);
}

.day-main .day-header {
  border-bottom-color: rgba(212, 180, 138, 0.35);
}

.day-main .day-date span {
  color: var(--warm-white);
}

.day-main .day-title {
  font-family: var(--script);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  color: var(--warm-white);
  line-height: 1;
}

/* Timeline */
.timeline {
  list-style: none;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 26px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--gold-light);
  opacity: 0.6;
}

.timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warm-white);
  border: 1px solid var(--gold);
}

.tl-time {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.tl-event {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--charcoal);
}

.tl-detail {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
}

.day-main .timeline li::before {
  background: var(--charcoal);
  border-color: var(--gold-light);
}

.day-main .timeline li:nth-child(2)::before {
  /* the ceremony */
  background: var(--gold-light);
}

.day-main .tl-time  { color: var(--gold-light); }
.day-main .tl-event { color: var(--warm-white); }
.day-main .tl-detail { color: rgba(253, 250, 246, 0.6); }


/* ── Day selection (RSVP) ──────────────────────────────────── */
.choices-days {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 420px) {
  .choices-days { grid-template-columns: 1fr; }
}

.choices-days .choice span {
  padding: 14px 8px 12px;
}

.choices-days small {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}



/* ============================================================
   GATE (code screen) — only the header, gate and footer show
   until a valid invitation code is known
============================================================ */
body.locked .tabs,
body.locked main {
  display: none;
}

body:not(.locked) .gate {
  display: none;
}

.gate {
  min-height: 55vh;
  border-top: 1px solid var(--env-shadow);
}

.gate .code-form {
  margin-top: -8px;
}
