/* Wissahickon Outfitters. One stylesheet for every page.
   Concept: quiet luxury in the Wissahickon woods. A full-bleed creek photo opens the page and ends on a
   ridgeline; everything after it is restrained: deep hemlock green, chestnut wood, pale lichen ground,
   light serif type, hairline rules, and photographs doing the talking. */

:root {
  --ground: #e4e8df;      /* pale lichen */
  --ink: #1d2b22;         /* hemlock */
  --muted: #4d5b4f;
  --rule: #bcc5b8;
  --chestnut: #6a4128;    /* wood, for rules and links on the light ground */
  --oak: #b98a5a;         /* light wood, for accents on dark */
  --forest: #14201a;      /* deep green */
  --walnut: #3a261a;      /* dark wood */
  --bone: #eeeee6;        /* text on dark */
  --bone-muted: #b5bdb0;
  --f-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --f-sans: "Avenir Next", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #111a14; --ink: #e8ebe4; --muted: #a3ae9f; --rule: #2a382e; --chestnut: #cf9d6c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #111a14; --ink: #e8ebe4; --muted: #a3ae9f; --rule: #2a382e; --chestnut: #cf9d6c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 1.1875rem/1.7 var(--f-serif);
}
img { display: block; max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding-left: max(20px, 6vw, env(safe-area-inset-left, 0px));
  padding-right: max(20px, 6vw, env(safe-area-inset-right, 0px));
}

a { color: inherit; text-decoration-color: var(--chestnut); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--forest); padding: .6em 1em; z-index: 20; font: .9rem var(--f-sans); }
.skip:focus { left: 8px; }

/* Hero: photograph, scrim, wordmark, ridgeline */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(88vh, 820px); background: var(--forest); color: var(--bone); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12,20,15,.55) 0%, rgba(12,20,15,.14) 24%, rgba(12,20,15,.4) 50%, rgba(12,20,15,.82) 100%); }
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: flex-end; gap: 2.2rem; padding-top: max(22px, env(safe-area-inset-top, 0px)); font: .95rem/1 var(--f-sans); letter-spacing: .06em; }
.top a { color: var(--bone); text-decoration: none; padding: .8rem 0; border-bottom: 1px solid transparent; }
.top a:hover { border-bottom-color: var(--oak); }
.hero-text { position: relative; z-index: 2; padding-bottom: calc(clamp(56px, 9vw, 130px) + 1.5rem); animation: rise 1.4s .15s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 { margin: 0; max-width: 11em; font: 400 clamp(2.9rem, 8.6vw, 6.6rem)/1.02 var(--f-serif); letter-spacing: -.018em; text-wrap: balance; text-shadow: 0 1px 24px rgba(0, 0, 0, .25); }
.hero p { margin: 1.3rem 0 0; max-width: 30rem; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; color: var(--bone); text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.ridge { position: absolute; left: 0; bottom: -2px; width: 100%; height: calc(clamp(48px, 9vw, 130px) + 2px); display: block; z-index: 2; }
.ridge path { fill: var(--ground); }
@keyframes rise { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Sections on the lichen ground */
.sec { padding-block: clamp(56px, 9vw, 120px); }
.sec + .sec { border-top: 1px solid var(--rule); }
.cols { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 52em) {
  .cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .cols.flip { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .cols.flip > .pics { order: -1; }
}
h2 { margin: 0 0 1.4rem; font: 400 clamp(2rem, 4.2vw, 3rem)/1.08 var(--f-serif); letter-spacing: -.012em; text-wrap: balance; }
h2::after { content: ""; display: block; width: 3.2rem; height: 1px; margin-top: 1.1rem; background: var(--chestnut); }
.sec p { margin: 0 0 1.1rem; max-width: 34rem; }
.sec p:last-child { margin-bottom: 0; }

figure { margin: 0; }
figcaption { margin-top: .7rem; font: .85rem/1.5 var(--f-sans); letter-spacing: .02em; color: var(--muted); }
.pics { display: grid; gap: 1.5rem; }
.pics img { width: 100%; }
.pics .tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.pics .crop { overflow: hidden; aspect-ratio: 5 / 4; background: var(--forest); }
.pics .crop img { width: 100%; height: 100%; object-fit: cover; object-position: 13% 50%; transform: scale(1.18); }
.pics .small { max-width: 24rem; }

/* Full-bleed photograph between sections */
.bleed { position: relative; }
.bleed img { width: 100%; height: clamp(240px, 44vw, 560px); object-fit: cover; object-position: 50% 60%; }
.bleed figcaption { padding: .8rem max(20px, 6vw) 0; max-width: 74rem; margin: 0 auto; }

/* Connect */
.connect { background: var(--walnut); color: var(--bone); padding-block: clamp(60px, 9vw, 120px); scroll-margin-top: 0; }
.connect h2::after { background: var(--oak); }
.connect .cols { align-items: start; }
.connect p { max-width: 34rem; margin: 0 0 1.1rem; }
.ask { margin: 0; padding: clamp(22px, 3vw, 36px); border: 1px solid rgba(185, 138, 90, .55); }
.ask h3 { margin: 0 0 1rem; font: 400 1.5rem/1.2 var(--f-serif); }
.ask ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.ask li { padding-left: 1.4rem; position: relative; }
.ask li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7rem; height: 1px; background: var(--oak); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.4rem; }
.btn { display: inline-block; padding: 1rem 1.7rem; min-height: 48px; background: var(--oak); color: var(--forest); border: 1px solid var(--oak); font: 600 .95rem/1.2 var(--f-sans); letter-spacing: .06em; text-decoration: none; }
.btn:hover { background: transparent; color: var(--bone); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--bone); border-color: rgba(238, 238, 230, .5); }
.btn.ghost:hover { border-color: var(--bone); background: rgba(238, 238, 230, .08); }
.email { font: 400 clamp(1.35rem, 3.6vw, 2rem)/1.2 var(--f-serif); word-break: break-word; }
.connect .note { font: .9rem/1.5 var(--f-sans); color: var(--bone-muted); letter-spacing: .02em; }

/* Footer */
footer { background: var(--forest); color: var(--bone-muted); padding-block: 36px max(40px, env(safe-area-inset-bottom, 0px)); font: .85rem/1.6 var(--f-sans); letter-spacing: .02em; }
footer a { color: var(--bone); text-decoration-color: rgba(185, 138, 90, .7); }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; }
.credits { margin: 1.4rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid rgba(238, 238, 230, .14); list-style: none; display: grid; gap: .35rem; font-size: .8rem; }

/* 404 */
.lost { padding-block: clamp(80px, 16vw, 200px); }
.lost h1 { margin: 0 0 1.2rem; font: 400 clamp(2.4rem, 6vw, 4rem)/1.05 var(--f-serif); letter-spacing: -.015em; }
.lost p { max-width: 30rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-text { animation: none; }
}
