@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f1ea;
  --paper-deep: #ece5d9;
  --ink: #1b2230;
  --muted: #565c66;
  --line: #ddd4c6;
  --accent: #1d5d80;
  --accent-deep: #154a67;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --space: clamp(4rem, 10vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
figure { margin: 0; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 8vw, 5.25rem); }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
p { margin: 0 0 1em; max-width: 38rem; text-wrap: pretty; }

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

.eyebrow {
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.lede { font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: var(--muted); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.logo {
  display: block;
  color: var(--ink);
  margin: 0;
}
.logo-mark { display: block; height: 2.6rem; width: auto; }
.footer-brand .logo-mark { height: 3.25rem; margin-bottom: 0.75rem; }
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.nav a { color: var(--ink); text-decoration: none; padding: 0.4rem 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }
.nav .nav-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--ink); color: var(--paper); text-decoration: none; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}
.button:hover { background: var(--accent-deep); color: #fff; }
.button[disabled] { background: var(--muted); cursor: not-allowed; }
.button--light { background: var(--paper); color: var(--ink); }
.button--light:hover { background: #fff; color: var(--ink); }

/* Sections */
.section { padding: var(--space) 0; }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* Home hero */
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 48rem) {
  .hero-photo img { aspect-ratio: 21 / 9; max-height: 78vh; }
}
.hero-text {
  display: grid;
  gap: 2rem;
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: var(--space);
  align-items: end;
}
.hero-text h1 { max-width: 14ch; }
.hero-portrait { max-width: 15rem; }
.hero-portrait img { aspect-ratio: 1; object-fit: cover; }
.hero-portrait figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
@media (min-width: 48rem) {
  .hero-text { grid-template-columns: 1fr auto; gap: 4rem; }
  .hero-portrait { max-width: 19rem; }
}

/* Page hero for inner pages */
.page-hero { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { max-width: 16ch; }
.wide-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 48rem) {
  .wide-photo img { aspect-ratio: 2 / 1; max-height: 80vh; }
}

/* Destination cards */
.cards {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards--four { grid-template-columns: repeat(4, 1fr); } }
.card a { color: inherit; text-decoration: none; display: block; }
.card picture, .card .photo-pending { margin-bottom: 1rem; overflow: hidden; }
.card img { aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.6s ease; }
.card a:hover img { transform: scale(1.03); }
.card h3 { margin-bottom: 0.25rem; }
.card a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.card p { color: var(--muted); margin: 0; }

.photo-pending {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}
.photo-pending--wide { aspect-ratio: 2 / 1; }

/* How it works */
.steps {
  display: grid;
  gap: 2.5rem;
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font: italic 400 2.5rem/1 var(--serif);
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Feature row */
.feature { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .feature { grid-template-columns: 3fr 2fr; gap: 4rem; } }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Films */
.film { margin: 0; }
.film-play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.film img, .film .photo-pending, .film iframe { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; display: block; }
.film-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  border-radius: 50%;
  background: rgba(245, 241, 234, 0.92);
}
.film-icon::after {
  content: "";
  position: absolute;
  left: 1.8rem;
  top: 1.35rem;
  border-style: solid;
  border-width: 0.9rem 0 0.9rem 1.4rem;
  border-color: transparent transparent transparent var(--ink);
}
.film-play:hover .film-icon { background: #fff; }
.film--pending { position: relative; }
.film-note {
  position: absolute;
  inset: 1rem 1rem auto 1rem;
  font-size: 0.9rem;
}
.film figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 0.75rem; }
.films { display: grid; gap: 3rem 2rem; }
@media (min-width: 48rem) { .films { grid-template-columns: repeat(2, 1fr); } }
.films > .film:only-child { grid-column: 1 / -1; max-width: 52rem; }

/* Closing band */
.band { background: var(--ink); color: var(--paper); padding: var(--space) 0; text-align: center; }
.band h2 { max-width: 20ch; margin: 0 auto 2rem; }
.nowrap { white-space: nowrap; }

/* About */
.about { display: grid; gap: 2.5rem; padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: var(--space); }
@media (min-width: 56rem) { .about { grid-template-columns: 2fr 3fr; gap: 5rem; align-items: start; } }
.about img { aspect-ratio: 1; object-fit: cover; }
.about-copy p { font-size: 1.15rem; }
.signoff { font-family: var(--serif); font-style: italic; font-size: 1.5rem !important; }

/* Trip pages */
.trip-section { display: grid; gap: 1.5rem; padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
@media (min-width: 56rem) { .trip-section { grid-template-columns: 1fr 2fr; gap: 4rem; } }
.trip-section h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.route { list-style: none; margin: 0; padding: 0; counter-reset: stop; }
.route li { counter-increment: stop; display: grid; grid-template-columns: 2.5rem 1fr; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.route li::before { content: counter(stop, decimal-leading-zero); color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 0.15rem; font-size: 0.9rem; }
.route strong { font-weight: 600; }
.route span { color: var(--muted); }
.route-note { color: var(--muted); font-size: 0.95rem; margin-top: 1.25rem; }

.why p { font-size: clamp(1.1rem, 2vw, 1.25rem); }
.why .why-pull { font: italic 400 clamp(1.6rem, 3.5vw, 2.25rem)/1.15 var(--serif); color: var(--accent); margin-bottom: 0.75em; }

.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; padding: 0 0 var(--space); }
@media (min-width: 56rem) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery .tall img { aspect-ratio: 4 / 5; }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 16 / 9; }
.gallery figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

.trip-cta { padding: 0 0 var(--space); }

/* Plan a trip */
.plan { display: grid; gap: 3rem; padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: var(--space); }
@media (min-width: 56rem) { .plan { grid-template-columns: 2fr 3fr; gap: 5rem; } }
.trip-note { background: var(--paper-deep); padding: 0.9rem 1.1rem; border-radius: 6px; }
.plan-list-title { font-size: 1.6rem; }
.plan-list { margin: 0 0 2rem; padding-left: 1.2rem; }
.plan-list li { margin-bottom: 0.5rem; }
.aside-note { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 3rem; font-size: 0.95rem; }
.footer-inner { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .footer-inner { grid-template-columns: 1fr 1.5fr auto; gap: 4rem; } }
.tagline { color: var(--muted); margin-top: 0.75rem; }
.footer-meta p { margin-bottom: 0.6rem; }
.fora { font-weight: 600; }
.privacy { color: var(--muted); font-size: 0.9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-links a { color: var(--ink); }

/* Placeholders that must be filled before launch */
mark.todo {
  background: #fff0a8;
  color: #5a4300;
  border: 1px dashed #b89211;
  padding: 0 0.3em;
  border-radius: 3px;
  font: 600 0.85em/1.4 var(--sans);
}

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