:root {
  color-scheme: dark;
  --ground: #171b19;
  --panel: #242b26;
  --ink: #f5f1e8;
  --muted: #c1c8ba;
  --line: #3d483e;
  --accent: #d7e4bc;
  --serif: Iowan Old Style, Charter, Georgia, serif;
  font-family: system-ui, sans-serif;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.04; }
h1 { font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.035em; }
.frame { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; padding: 12px; background: var(--ground); transform: translateY(-110%); }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.wordmark { font: 600 1.45rem var(--serif); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--accent); }
nav { display: flex; gap: clamp(16px, 4vw, 42px); }
nav a { text-underline-offset: .55em; text-decoration-color: transparent; font-size: .93rem; }
nav a:hover, nav a[aria-current] { text-decoration-color: var(--accent); }
.hero { position: relative; display: grid; align-items: end; min-height: min(650px, 78svh); isolation: isolate; }
.hero img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero img { object-fit: cover; object-position: center 49%; }
.hero-shade { background: linear-gradient(90deg, #151a18e8 0%, #151a18a6 38%, #151a1808 95%), linear-gradient(0deg, #151a188c, transparent 60%); }
.hero-copy { padding-block: clamp(55px, 9vw, 105px); }
.eyebrow { color: var(--accent); font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3.6rem, 9vw, 8rem); margin: 13px 0 20px; line-height: .93; }
.hero-line { max-width: 28rem; font-size: clamp(1rem, 2.2vw, 1.2rem); }
.button { display: inline-block; margin-top: 30px; padding: 12px 20px; text-decoration: none; color: var(--ground); background: var(--accent); font-weight: 650; }
.button:hover { background: var(--ink); }
.home-story { padding-block: 55px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.home-story h2 { margin-block: 10px; }
.home-story p:last-child, .trip-copy p { color: var(--muted); }
.text-link { color: var(--accent); text-underline-offset: .25em; }
.text-link:hover { color: var(--ink); }
.listing, .album { padding-block: clamp(37px, 6vw, 80px); }
.listing h1 { margin: 10px 0 29px; }
.trip-card { background: var(--panel); text-decoration: none; display: block; max-width: 900px; }
.trip-card img { aspect-ratio: 2.45; object-fit: cover; }
.trip-card + .trip-card { margin-top: 24px; }
.trip-card:hover h2 { text-decoration: underline; text-underline-offset: .15em; }
.trip-copy { padding: 21px 25px 24px; }
.trip-copy h2 { margin-block: 6px; }
.story-card { display: grid; grid-template-columns: 36% 1fr; }
.story-card img { aspect-ratio: 1.38; height: 100%; }
.story-card .trip-copy { align-self: center; }
.breadcrumb { display: inline-block; margin-bottom: 20px; }
.album-head { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 32px; margin-bottom: 26px; }
.album-head h1 { margin-top: 9px; }
.album-head > p { color: var(--muted); max-width: 34rem; }
.album-cover { width: 100%; aspect-ratio: 2; object-fit: cover; margin-bottom: 28px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.album-stops { flex-wrap: wrap; gap: 10px 24px; padding-block: 14px; border-block: 1px solid var(--line); }
.album-stops a { text-decoration-color: var(--line); text-underline-offset: .26em; }
.album-stop { margin-top: clamp(30px, 6vw, 70px); scroll-margin-top: 24px; }
.album-stop-copy { margin-bottom: 18px; }
.album-stop-copy p { margin-top: 8px; color: var(--muted); max-width: 58ch; }
.photo-grid a { display: block; }
.photo-grid img { background: var(--panel); }
figcaption { color: var(--muted); font-size: .93rem; padding-block: 8px 3px; }
.related { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 18px; }
.related .text-link { display: inline-block; margin-top: 6px; font: 500 1.45rem var(--serif); }
.reading { width: min(720px, calc(100% - 64px)); margin-inline: auto; padding-block: clamp(37px, 6vw, 80px); }
.reading h1 { margin: 10px 0 27px; font-size: clamp(2.8rem, 7vw, 5rem); }
.reading > p:not(.eyebrow) { margin-bottom: 18px; color: var(--muted); }
.reading .lede { font-size: 1.19rem; }
.reading figure { margin-block: 28px; }
.reading h2 { margin-bottom: 12px; }
.footer { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 21px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.viewer { width: min(94vw, 960px); max-height: 93dvh; background: var(--ground); color: var(--ink); border: 1px solid var(--line); padding: 16px; }
.viewer::backdrop { background: #0d100ef0; }
.viewer img { max-height: 65dvh; object-fit: contain; }
.viewer button { background: var(--panel); border: 1px solid var(--line); color: var(--ink); padding: 8px 14px; font: inherit; cursor: pointer; }
.viewer-tools { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 10px; }
.viewer-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; }
.viewer.viewer-expanded { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: 0; }
.viewer-expanded .viewer-shell, .viewer-shell:fullscreen {
  background: #101311;
  color: var(--ink);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 2vw, 24px);
}
.viewer-expanded figure, .viewer-shell:fullscreen figure { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.viewer-expanded img, .viewer-shell:fullscreen img { flex: 1; min-height: 0; max-height: none; }
.viewer-expanded figcaption, .viewer-shell:fullscreen figcaption { text-align: center; }
@media (max-width: 640px) {
  .frame, .reading { width: calc(100% - 36px); }
  .masthead-inner { min-height: 64px; }
  .hero { min-height: 510px; }
  .hero img { object-position: 60%; }
  .hero-shade { background: linear-gradient(0deg, #151a18f0, #151a1855 66%, #151a1820); }
  .home-story { align-items: start; flex-direction: column; }
  .album-head, .photo-grid, .story-card { grid-template-columns: 1fr; }
  .album-head { gap: 14px; }
  .trip-card img { aspect-ratio: 1.55; }
}
