:root {
  --teal-900: #04342C;
  --teal-700: #085041;
  --teal-600: #0F6E56;

  --gold-900: #412402;
  --gold-600: #854F0B;
  --gold-500: #BA7517;
  --gold-300: #FAC775;

  --cream: #FAEEDA;
  --cream-white: #FFFDF8;

  --teal-tint: #DCEBE4;
  --terracotta-tint: #F5E1D3;

  --rule: rgba(4, 52, 44, 0.1);
  --rule-soft: rgba(4, 52, 44, 0.08);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --label-col: 8.5rem;
  --measure: 680px;
  --header-h: 4rem;
}

* { box-sizing: border-box; }

/* Class selectors that set `display` outrank the browser's [hidden] rule,
   so hidden elements would otherwise stay visible. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--teal-900);
  background: var(--cream-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 0.5em; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

h2 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-700);
  margin: 2.25rem 0 0.85rem;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

strong { font-weight: 500; }

/* ---------- Focus & skip link ---------- */

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-300);
}

.section--gold :focus-visible { outline-color: var(--teal-900); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--teal-900);
  color: var(--cream);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav { display: flex; gap: 1.75rem; }

.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal-700);
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 0.35rem 0;
  transition: color 0.18s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.site-nav a:hover { color: var(--gold-600); }
.site-nav a.is-active { color: var(--gold-600); }
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--teal-700);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

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

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

  .site-header__inner { justify-content: flex-end; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    border-bottom: 1px solid var(--rule);
  }

  .site-nav.is-open { max-height: 420px; }

  .site-nav a {
    padding: 0.95rem 1.5rem;
    border-top: 1px solid var(--rule-soft);
  }

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

/* ---------- Hero ---------- */

.hero {
  background: var(--teal-900);
  color: var(--cream);
  text-align: center;
  padding: clamp(5rem, 13vw, 8.5rem) 1.5rem;
}

.hero__content { max-width: 620px; margin: 0 auto; }

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--gold-300);
  margin-bottom: 1.5rem;
}

.hero__names {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero__date {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  margin-bottom: 0.35rem;
}

.hero__place {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn--gold {
  background: var(--gold-500);
  color: var(--gold-900);
}

.btn--gold:hover {
  background: var(--gold-300);
  transform: translateY(-1px);
}

/* ---------- Section layout ---------- */

.section { padding: clamp(4rem, 9vw, 6.5rem) 1.5rem; }

.section--cream { background: var(--cream); }
.section--teal-tint { background: var(--teal-tint); }
.section--terracotta-tint { background: var(--terracotta-tint); }

/* Saturated gold moment, reserved for the call to action. Uses the lighter
   gold so dark teal body copy clears WCAG AA against it (~8.8:1). */
.section--gold {
  background: var(--gold-300);
  color: var(--teal-900);
  text-align: center;
}

.section--gold .eyebrow { color: var(--gold-900); }

.section--gold .placeholder-block {
  border-color: rgba(4, 52, 44, 0.32);
  background: rgba(255, 253, 248, 0.45);
}

.section__inner { max-width: var(--measure); margin: 0 auto; }

.section__lead {
  font-size: 1.1rem;
  color: var(--teal-700);
  margin-bottom: 2.5rem;
  max-width: 34em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--gold-600);
  margin-bottom: 0.85rem;
}

[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ---------- Subsections ---------- */

/* Two related parts inside one section, joined by a hairline rather than
   split across separate colour blocks. */
.subsection + .subsection {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--rule);
}

.subsection > h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.6rem);
  margin-bottom: 0.9rem;
}

.subsection__lead {
  color: var(--teal-700);
  margin-bottom: 1.75rem;
  max-width: 34em;
}

/* ---------- Weekend timeline ---------- */

.events {
  list-style: none;
  margin: 0;
  padding: 0;
}

.event {
  position: relative;
  padding-left: 2.25rem;
  padding-bottom: 4rem;
}

.event:last-child { padding-bottom: 0; }

/* connecting spine */
.event::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.65rem;
  bottom: 0.75rem;
  width: 1px;
  background: rgba(4, 52, 44, 0.18);
}

.event:last-child::before { display: none; }

/* marker dot */
.event::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-500);
}

.event__day {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--gold-600);
  margin-bottom: 0.3rem;
}

.event__title {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin-bottom: 0.3rem;
}

.event__subtitle {
  font-size: 0.9rem;
  color: var(--teal-700);
  font-style: italic;
  margin-bottom: 1.5rem;
}

@media (max-width: 560px) {
  .event { padding-left: 1.6rem; }
}

/* ---------- Info cards ---------- */

.info-card {
  background: var(--cream-white);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.info-card:last-child { margin-bottom: 0; }

.info-card__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-600);
  margin-bottom: 0.45rem;
}

.info-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.info-list { margin: 0; }

.info-list > div {
  display: grid;
  grid-template-columns: var(--label-col) 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule-soft);
}

.info-list > div:first-child { border-top: none; padding-top: 0; }
.info-list > div:last-child { padding-bottom: 0; }

.info-list dt {
  font-weight: 500;
  color: var(--teal-700);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.info-list dd { margin: 0; }

@media (max-width: 560px) {
  .info-list > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .info-card { padding: 1.35rem; }
}

/* ---------- Hotel cards ---------- */

.hotel {
  background: var(--cream-white);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hotel__body { padding: 1.6rem 1.75rem; }

.hotel__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--teal-900);
  margin: 0 0 0.5rem;
}

.hotel__blurb {
  font-size: 0.96rem;
  color: var(--teal-700);
  margin-bottom: 1.1rem;
}

.hotel__note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-left: 2px solid var(--rule-soft);
  padding: 0.1rem 0 0.1rem 0.75rem;
  font-size: 0.86rem;
  color: var(--teal-700);
  margin: 0 0 1.1rem;
}

.hotel__note-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--teal-700);
  opacity: 0.6;
}

.hotel__facts { margin: 0; }

.hotel__facts > div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.94rem;
}

.hotel__facts > div:first-child { border-top: none; }

.hotel__facts dt {
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  padding-top: 0.1rem;
}

.hotel__facts dd { margin: 0; }

@media (max-width: 640px) {
  .hotel__body { padding: 1.35rem; }

  .hotel__facts > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- Agenda ---------- */

.agenda { list-style: none; margin: 0; padding: 0; }

.agenda li {
  display: grid;
  grid-template-columns: var(--label-col) 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule-soft);
}

.agenda li:first-child { border-top: none; }

.agenda__time {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gold-600);
  letter-spacing: 0.01em;
}

@media (max-width: 560px) {
  .agenda li { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* ---------- RSVP form ---------- */

.rsvp__lead {
  font-size: 1.05rem;
  max-width: 30em;
  margin: 0 auto 2.5rem;
}

/* Cream card so the inputs aren't sitting straight on saturated gold. */
.rsvp-form {
  background: var(--cream-white);
  border-radius: 8px;
  padding: 2rem;
  max-width: 34rem;
  margin: 0 auto;
  text-align: left;
}

.rsvp-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { margin-bottom: 1.4rem; border: none; padding: 0; }

.field > label,
.field legend {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-700);
  margin-bottom: 0.45rem;
  padding: 0;
}

.field__hint {
  font-size: 0.88rem;
  color: var(--teal-700);
  opacity: 0.85;
  margin: -0.2rem 0 0.6rem;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(4, 52, 44, 0.22);
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--teal-900);
  transition: border-color 0.18s ease;
}

.rsvp-form input[type="text"]:hover,
.rsvp-form input[type="email"]:hover,
.rsvp-form textarea:hover { border-color: rgba(4, 52, 44, 0.4); }

.rsvp-form textarea { resize: vertical; min-height: 5rem; }

.guest-input + .guest-input { margin-top: 0.6rem; }

.btn-add {
  margin-top: 0.7rem;
  background: none;
  border: 1px dashed rgba(4, 52, 44, 0.3);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--teal-700);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.btn-add:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* Accept / decline */
.field--choice { display: block; }

.choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(4, 52, 44, 0.22);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.98rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.choice + .choice { margin-top: 0.6rem; }
.choice:hover { border-color: rgba(4, 52, 44, 0.4); }
.choice input { accent-color: var(--gold-500); margin: 0; }
.choice:has(input:checked) { border-color: var(--gold-500); background: rgba(250, 199, 117, 0.16); }

.btn--teal {
  background: var(--teal-900);
  color: var(--cream);
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.btn--teal:hover { background: var(--teal-700); transform: translateY(-1px); }
.btn--teal:disabled { opacity: 0.6; cursor: default; transform: none; }

.rsvp-form__status {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  text-align: center;
}

.rsvp-form__status.is-success {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--teal-900);
  margin: 0;
}

.rsvp-form__status.is-error { color: #A32D2D; }

@media (max-width: 560px) {
  .rsvp-form { padding: 1.4rem; }
}

/* ---------- FAQs ---------- */

.faq-item {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.faq-item:first-of-type { border-top: none; padding-top: 0.5rem; }
.faq-item:last-child { padding-bottom: 0; }

/* ---------- Placeholders ---------- */

.placeholder-block {
  border: 1px dashed rgba(4, 52, 44, 0.3);
  border-radius: 6px;
  padding: 1.5rem;
  font-style: italic;
  color: var(--teal-700);
  background: rgba(255, 255, 255, 0.4);
}

.placeholder-inline {
  display: inline-block;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--teal-600);
  border: 1px dashed rgba(4, 52, 44, 0.28);
  border-radius: 4px;
  padding: 0.1rem 0.6rem;
  margin-bottom: 0.6rem;
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  border: 1px dashed rgba(4, 52, 44, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-700);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.4);
  margin-top: 2rem;
}

.photo-placeholder--wide { aspect-ratio: 3 / 2; }

/* ---------- Figures ---------- */

.figure {
  margin: 1.75rem 0;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--rule-soft);
}

/* ---------- Flight table ---------- */

/* Visible only to screen readers, so the plane glyphs carry real meaning. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Eight columns will not fit a phone, so the table scrolls inside its own box
   rather than pushing the page sideways. */
.table-wrap {
  margin: 1.75rem 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--cream-white);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
}

.flights {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.92rem;
}

.flights th,
.flights td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--rule-soft);
  text-align: center;
}

.flights tbody tr:last-child th,
.flights tbody tr:last-child td { border-bottom: none; }

.flights thead th {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  white-space: nowrap;
}

.flights tbody th {
  text-align: left;
  font-weight: 400;
  white-space: nowrap;
  padding-left: 1rem;
}

.flights thead th:first-child { text-align: left; padding-left: 1rem; }

.flights .fly::before {
  content: '\2708\FE0E';
  color: var(--gold-500);
  font-size: 1rem;
}

.flights .none::before {
  content: '\00B7';
  color: rgba(4, 52, 44, 0.3);
  font-size: 1.1rem;
}

.table-note {
  font-size: 0.88rem;
  color: var(--teal-700);
  margin-top: 0.9rem;
}

/* ---------- Weather card ---------- */

.weather-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  margin: 1.75rem 0 0;
  padding: 1.75rem 1.5rem;
  background: var(--cream-white);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
}

.weather-stat {
  text-align: center;
}

.weather-stat__icon {
  width: 2rem;
  height: 2rem;
  color: var(--gold-500);
  margin: 0 auto 0.5rem;
}

.weather-stat:last-child .weather-stat__icon { color: var(--teal-600); }

.weather-stat__value {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--teal-900);
  margin: 0;
  line-height: 1;
}

.weather-stat__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-700);
  margin: 0.4rem 0 0;
}

.weather-range {
  width: 0.6rem;
  height: 5.5rem;
}

.weather-range svg { width: 100%; height: 100%; }

@media (max-width: 560px) {
  .weather-card { gap: 1.25rem; padding: 1.5rem 1rem; }
  .weather-stat__value { font-size: 1.5rem; }
}

/* ---------- Phrases table ---------- */

.phrases {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.92rem;
}

.phrases th,
.phrases td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
}

.phrases tbody tr:last-child th,
.phrases tbody tr:last-child td { border-bottom: none; }

.phrases thead th {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  white-space: nowrap;
}

.phrases tbody th { font-weight: 500; color: var(--teal-900); }

/* ---------- Inline links ---------- */

.text-link {
  color: var(--gold-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease;
}

.text-link:hover { color: var(--teal-700); }


/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-900);
  color: var(--cream);
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5rem) 1.5rem;
}

.site-footer__inner { max-width: 34rem; margin: 0 auto; }

.site-footer__signoff {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.45;
  margin-bottom: 1.75rem;
}

.site-footer__names {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold-300);
  margin-bottom: 0.4rem;
}

.site-footer__meta {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
