/* Atlas: travel-document wedding. Navy and terracotta on white and a pale sky wash. */
:root {
  --navy: #0F2A5C;
  --navy-deep: #0A1F47;
  --terra: #B4482A;
  --terra-hover: #963A20;
  --terra-soft: #F0A884;
  --sky: #E6EEF9;
  --sky-deep: #C9D8EE;
  --ink: #14203A;
  --mute: #4A5876;
  --paper: #FFFFFF;
  --max: 1120px;
  --gutter: 16px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--display);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 0.18em; }
p { margin: 0 0 1em; }
ol, ul { padding-left: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  color: var(--navy);
  margin: 0;
  font-stretch: 118%;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.5rem, 8.2vw, 7rem);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
}
h2 { font-size: clamp(1.8rem, 4.6vw, 3.25rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; font-stretch: 112%; }

.label {
  display: block;
  font-family: var(--label);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 42ch; }

/* Header */
.site-head { border-bottom: 1px solid var(--sky-deep); }
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.wordmark {
  font-stretch: 125%;
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
}
.wordmark span { color: var(--terra); }

.top-nav { display: none; align-items: center; gap: 22px; }
.top-nav a {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.top-nav a:hover { border-bottom-color: var(--navy); }
.top-nav a[aria-current="page"] { border-bottom-color: var(--terra); }
.top-nav a.btn { padding: 12px 22px; border-bottom: 0; color: #fff; }

.menu { position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--label);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 5;
  display: grid;
  min-width: 250px;
  margin-top: 6px;
  padding: 6px;
  background: var(--paper);
  border: 2px solid var(--navy);
}
.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}
.menu-panel a:hover { background: var(--sky); }
.menu-panel a[aria-current="page"] { color: var(--terra); }

@media (min-width: 820px) {
  .top-nav { display: flex; }
  .menu { display: none; }
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--terra);
  color: #fff;
  font-weight: 800;
  font-stretch: 110%;
  text-decoration: none;
  border-radius: 3px;
}
.btn:hover { background: var(--terra-hover); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
  color: var(--navy);
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }

/* Hero */
.hero { padding: 56px 0 48px; }
.hero h1 { margin: 14px 0 22px; }

/* Boarding pass: the signature device */
.boarding {
  position: relative;
  padding: 56px 0 72px;
  background: var(--sky);
  overflow: hidden;
}
.pass {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 30px 50px -30px rgba(15, 42, 92, 0.55);
}
.pass-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 18px 24px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px 10px 0 0;
}
.pass-head .label { color: #B9C9E6; }
.pass-head strong { font-stretch: 115%; font-size: 1.25rem; font-weight: 800; }
.pass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  padding: 24px;
}
.pass-grid strong {
  display: block;
  color: var(--navy);
  font-stretch: 115%;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-weight: 850;
  line-height: 1.05;
}
.pass-stub {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-top: 2px dashed rgba(15, 42, 92, 0.4);
}
.pass-stub::before,
.pass-stub::after {
  content: "";
  position: absolute;
  top: -15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sky);
}
.pass-stub::before { left: -15px; }
.pass-stub::after { right: -15px; }
.pass-stub p { margin: 0; max-width: 36ch; }

/* Passport stamps: CSS only. They land as they scroll in, if the browser supports it. */
.stamp {
  position: absolute;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  padding: 8px;
  border: 3px solid var(--terra);
  border-radius: 50%;
  color: var(--terra);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 6px var(--terra);
  font-family: var(--label);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
  opacity: 0.92;
  pointer-events: none;
}
.stamp strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: 0.04em; }
.stamp.in-flow { position: relative; top: auto; right: auto; }
.stamp-corner { top: auto; bottom: 104px; right: -14px; }
.stamp-sm { width: 108px; height: 108px; font-size: 0.8rem; }
.stamp-sm strong { font-size: 1.1rem; }
@media (min-width: 1001px) { .pass-grid { padding-right: 190px; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stamp.land {
      animation: land-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}
@keyframes land-in {
  from { transform: rotate(-12deg) scale(1.5); opacity: 0; }
  to { transform: rotate(-12deg) scale(1); opacity: 0.92; }
}

/* Sections */
.section { padding: 80px 0; }
.section-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.section-head p { margin: 0; }

/* Ticket cards (itinerary previews) */
.tickets { display: grid; gap: 24px; }
@media (min-width: 900px) { .tickets { grid-template-columns: repeat(3, 1fr); } }
.ticket {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 8px;
}
.ticket .when {
  display: block;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(15, 42, 92, 0.35);
}
.ticket .when strong {
  display: block;
  color: var(--navy);
  font-stretch: 118%;
  font-size: 1.6rem;
  font-weight: 850;
  line-height: 1.1;
}
.ticket p { margin: 0 0 10px; }
.ticket .when { display: flow-root; }
.ticket .when .stamp {
  position: relative;
  top: auto;
  right: auto;
  float: right;
  margin: -6px -6px 6px 16px;
}

/* Route: map-line art beside a transport list */
.route { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .route { grid-template-columns: 1.1fr 1fr; } }
.frame { position: relative; margin: 0; border-radius: 8px; overflow: hidden; }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.routes li {
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--terra);
}
.route h2, .stays h2 { margin: 12px 0 22px; }
.routes h3 { margin-bottom: 6px; }
.routes p { margin: 0; }

/* Stays: leader-dot price list */
.stays { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .stays { grid-template-columns: 1fr 1fr; } }
.leaders { list-style: none; margin: 0; padding: 0; }
.leaders li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--sky-deep);
}
.leaders li:first-child { border-top: 2px solid var(--navy); }
.leaders .name { font-stretch: 112%; font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.leaders .dots {
  flex: 1;
  min-width: 24px;
  border-bottom: 3px dotted rgba(15, 42, 92, 0.5);
  transform: translateY(-5px);
}
.leaders .price { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); }
.leaders .note { flex-basis: 100%; margin: 0; color: var(--mute); font-size: 0.95rem; }
.leaders .note a { font-weight: 700; }

/* Departures board: activities */
.board {
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.board-head {
  display: grid;
  grid-template-columns: 84px 1fr;
  padding: 14px 20px;
  background: var(--navy-deep);
  font-family: var(--label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B9C9E6;
  font-size: 0.85rem;
}
.board-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 4px 16px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.board-row time {
  font-family: var(--label);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--terra-soft);
  font-variant-numeric: tabular-nums;
}
.board-row h3 { color: #fff; font-size: 1.2rem; }
.board-row p { margin: 4px 0 0; color: #DCE6F7; font-size: 0.95rem; }
.status {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--label);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.status::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--terra-soft); border-radius: 50%; }

/* Timed list inside a ticket (itinerary) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 4px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--sky-deep);
}
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline time {
  font-family: var(--label);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--terra);
  font-variant-numeric: tabular-nums;
}
.timeline h3 { font-size: 1.15rem; margin-bottom: 4px; }
.timeline p { margin: 0; }
.ticket .timeline { margin-bottom: 34px; }

/* Carry-on checklist */
.carry-card {
  padding: 28px;
  background: var(--sky);
  border-radius: 8px;
}
.carry {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px 28px;
}
@media (min-width: 700px) { .carry { grid-template-columns: 1fr 1fr; } }
.carry li {
  position: relative;
  padding: 12px 0 12px 40px;
  border-bottom: 1px dashed rgba(15, 42, 92, 0.3);
}
.carry li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--navy);
  border-radius: 3px;
  background: var(--paper);
}

/* Final call band */
.band { background: var(--navy); color: #fff; padding: 72px 0; }
.band h2 { color: #fff; }
.band p { color: #DCE6F7; max-width: 46ch; }
.band :focus-visible { outline-color: #fff; }
.band .actions { margin-top: 26px; }
.band .text-link { color: #fff; }

/* Page heading for inner pages */
.page-head { padding: 56px 0 40px; border-bottom: 2px solid var(--navy); }
.page-head h1 { font-size: clamp(2.4rem, 7.4vw, 5.8rem); margin-top: 12px; }
.page-head p { margin: 20px 0 0; max-width: 46ch; font-size: clamp(1.05rem, 1.9vw, 1.2rem); }

/* Photos */
.photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }

/* Forms (RSVP). Styled now so a form plugin's markup can reuse the classes. */
.rsvp-form { display: grid; gap: 22px; max-width: 680px; }
.field { display: grid; gap: 6px; }
.field > label, .field legend { font-weight: 700; color: var(--navy); }
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid var(--navy);
  border-radius: 3px;
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}
.field textarea { min-height: 110px; }
.rsvp-form fieldset { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--terra); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Footer */
.site-foot { padding: 48px 0; background: var(--sky); border-top: 1px solid var(--sky-deep); }
.site-foot .wrap { display: grid; gap: 22px; }
@media (min-width: 820px) { .site-foot .wrap { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.site-foot .names { font-stretch: 118%; font-weight: 850; font-size: 1.3rem; color: var(--navy); margin: 0 0 6px; }
.site-foot p { margin: 0 0 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1000px) {
  .stamp-corner { position: relative; top: auto; right: auto; bottom: auto; display: grid; margin: 0 auto 18px; }
}
@media (max-width: 560px) {
  .pass-grid { grid-template-columns: 1fr; }
  .stamp { width: 112px; height: 112px; font-size: 0.85rem; }
  .stamp strong { font-size: 1.15rem; }
  .board-head, .board-row { grid-template-columns: 64px 1fr; padding-left: 16px; padding-right: 16px; }
  .board-row time { font-size: 1.3rem; }
}

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

/* Day titles inside itinerary tickets */
.ticket .when h2.day {
  font-size: 1.6rem;
  font-stretch: 118%;
  font-weight: 850;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: 0;
  color: var(--navy);
}
