:root {
  color-scheme: light;
  --paper: #f3f3e2;
  --forest-overlay: rgb(24 46 37 / .86);
  --ink: #1c3027;
  --muted: #4e6255;
  --line: #d7ddd1;
  --gold: #efbd72;
  font: 100%/1.6 system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper) url("assets/contours.svg") center top / 78rem auto repeat;
  color: var(--ink);
}
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, button:focus-visible { outline: 3px solid #916533; outline-offset: 4px; }
.wrap { width: min(74rem, calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { flex: none; width: clamp(12rem, 20vw, 16rem); }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); font-weight: 600; font-size: .94rem; }
.main-nav a { padding-block: .65rem; text-decoration: none; }
.main-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .65rem 1.05rem; border-radius: .5rem; font-weight: 700; text-align: center; text-decoration: none; }
.header-button { border: 1px solid #7c8e80; }
.header-button:hover { background: #ecf0e7; }

.hero { background: var(--forest-overlay); color: #fff9ed; }
.hero-inner { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(1.8rem, 5vw, 5rem); padding-block: clamp(2.3rem, 5vw, 4.4rem); }
h1, h2 { font-weight: 730; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 4.5vw, 3.8rem); }
.hero p { max-width: 34ch; margin-block: 1.25rem 1.65rem; color: #e4ebdf; font-size: clamp(1rem, 1.35vw, 1.15rem); }
.button-gold { min-height: 3.15rem; padding-inline: 1.4rem; background: var(--gold); color: #17271c; }
.button-gold:hover { background: #ffcf8c; }
.hero-photo { overflow: hidden; border-radius: .85rem; outline: 1px solid #faf8e339; outline-offset: 5px; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 66%; }

.guide { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(3.2rem, 8vw, 6.3rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.15rem); }
.guide-intro, .guide-list {
  border-radius: .85rem;
  background: rgb(255 255 255 / .62);
}
.guide-intro { align-self: start; padding: clamp(1rem, 3vw, 1.8rem); }
.guide-intro p { margin-top: 1rem; max-width: 38ch; color: var(--muted); }
.guide-list { margin: 0; padding: 0 clamp(1rem, 3vw, 1.8rem); list-style: none; }
.guide-list li { position: relative; padding: 1.05rem 0 1.05rem 3rem; border-top: 1px solid var(--line); }
.guide-list li:first-child { border-top: 0; }
.step-number { position: absolute; top: 1.1rem; left: 0; display: grid; place-items: center; width: 1.95rem; height: 1.95rem; border-radius: 50%; background: #e7ebdf; font-size: .9rem; font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 720; line-height: 1.3; }
.guide-list p { margin-top: .35rem; color: var(--muted); }

.gallery { padding-block: clamp(2.6rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.gallery > .wrap { max-width: 58rem; }
.gallery h2 { margin-bottom: 1.45rem; }
.film-strip {
  --film: #1d2420;
  padding: 0 clamp(.6rem, 2.3vw, 1.3rem);
  overflow: hidden;
  border-radius: .8rem;
  background: var(--film);
  box-shadow: 0 .65rem 1.7rem rgb(28 48 39 / .16);
}
.film-strip::before,
.film-strip::after {
  content: "";
  display: block;
  height: clamp(1.35rem, 3.6vw, 2.05rem);
  background: radial-gradient(ellipse 7px 4px, #b6baaa 90%, transparent 100%) left center / 28px 100% repeat-x;
}
.film-frames { display: grid; gap: .65rem; }
.film-set {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.25rem, 1.1vw, .75rem);
}
.film-frames figure {
  position: relative;
  overflow: hidden;
  border-radius: .25rem;
  background: var(--film);
}
.film-frames img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.film-frame-sunset img { object-position: 50% 55%; }
.film-frame-waterfall img { object-position: 55% 50%; }
.film-frame-pitch img { object-position: 62% 60%; }
.film-frame-pond img { object-position: 53% 70%; }
.film-frames figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.75rem clamp(.5rem, 1.6vw, 1rem) .65rem;
  background: linear-gradient(transparent, rgb(17 23 19 / .92));
  color: #fff;
  font-weight: 650;
}
.gallery[data-enhanced] .film-frames {
  --dissolve: 1s;
  --stagger-step: .16s;
  gap: 0;
}
.gallery[data-enhanced] .film-set {
  grid-area: 1 / 1;
  pointer-events: none;
}
.gallery[data-enhanced] .film-set.is-current { z-index: 1; pointer-events: auto; }
.gallery[data-enhanced] figure {
  --stagger: 0s;
  opacity: 0;
  transition: opacity 0s linear calc(var(--dissolve) + var(--stagger));
}
.gallery[data-enhanced] figure:nth-child(2) { --stagger: var(--stagger-step); }
.gallery[data-enhanced] figure:nth-child(3) { --stagger: calc(var(--stagger-step) * 2); }
.gallery[data-enhanced] .film-set.is-current figure {
  opacity: 1;
  transition: opacity var(--dissolve) ease-in-out var(--stagger);
}
.film-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.film-controls[hidden] { display: none; }
.film-controls button {
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border: 1px solid #879584;
  border-radius: .45rem;
  background: #fafbf2;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
}
.film-controls button:hover { background: #e6ebda; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer { background: var(--forest-overlay); color: #faf7e9; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; }
.footer-brand { display: flex; align-items: center; gap: .65rem; font-size: 1.15rem; font-weight: 720; }
.footer-brand img { border-radius: .45rem; }
.site-footer a { color: #f8e0b8; font-weight: 650; }

@media (max-width: 49rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 4.2rem; flex-wrap: wrap; gap: 0 .7rem; }
  .brand { width: clamp(10.5rem, 36vw, 13rem); }
  .main-nav { order: 1; width: 100%; border-top: 1px solid var(--line); }
  .main-nav a { padding-block: .6rem; }
  .header-button { font-size: .9rem; min-height: 2.55rem; }
  .hero-inner, .guide { grid-template-columns: 1fr; }
  h1 { max-width: 16ch; font-size: clamp(2.25rem, 8vw, 4rem); }
  .hero p { max-width: 42ch; }
}

@media (max-width: 31rem) {
  .film-frames img { aspect-ratio: 4 / 5; }
  .film-frames figcaption {
    position: static;
    padding: .4rem .15rem .3rem;
    background: none;
    font-size: .8rem;
    line-height: 1.25;
  }
}

@media (max-width: 22rem) {
  .wrap { width: calc(100% - 1.6rem); }
  .brand { width: 9.5rem; }
  .header-button { padding-inline: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery[data-enhanced] .film-frames { --dissolve: 0s; --stagger-step: 0s; }
}
