/* The Temperate Rainforest Biome in Olympic National Park: a light, square-cornered site with #0a9600 accents,
   led by the photograph. The motion is parallax on scroll, all of it off for reduced motion. */
:root {
  --bg: #f5f7f1; --paper: #ffffff; --ink: #16211a; --muted: #4d5a50; --line: #d9e0d4;
  --green: #0a9600; --green-text: #087a00; --deep: #0b1a0f; --nav-h: 64px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: var(--green-text); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 8px; }

/* the bar along the top */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 8px; padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 2px solid var(--green); box-shadow: 0 6px 22px rgba(10, 30, 12, .22); }
.brand { margin-right: auto; color: var(--ink); text-decoration: none; font: 600 19px/1.1 var(--serif); letter-spacing: -.01em; }
.brand b { color: var(--green); font-weight: 600; }
.links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.links > li { position: relative; }
.links a, .links button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 0; background: none;
  color: var(--ink); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; }
.links a:hover, .links button:hover, .links button[aria-expanded="true"], .links a[aria-current="page"] { color: var(--green-text); box-shadow: inset 0 -3px 0 var(--green); }
.links svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .2s; }
.links button[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 190px; margin: 0; padding: 6px 0; list-style: none; background: var(--paper);
  border: 1px solid var(--line); border-top: 3px solid var(--green); box-shadow: 0 16px 40px rgba(20, 40, 20, .16);
  opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity .18s, transform .18s, visibility 0s .18s; }
.menu.open { opacity: 1; transform: none; visibility: visible; transition: opacity .18s, transform .18s; }
.menu a { display: flex; width: 100%; padding: 0 18px; box-shadow: none !important; }
.menu a:hover, .menu a:focus-visible { background: #eef6ea; }

/* home: the photograph stays put behind everything; the title drifts up and fades as you scroll */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #2b4a24; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; will-change: transform; }
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav-h) + 24px) 20px 72px; text-align: center; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(8, 24, 8, .55), rgba(8, 24, 8, .15) 70%); pointer-events: none; }
.hero .inner { position: relative; max-width: 980px; will-change: transform, opacity; }
.hero h1 { margin: 0; font: 600 clamp(36px, 6.4vw, 84px)/1.04 var(--serif); letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.hero .rule { width: 72px; height: 4px; margin: 26px auto 20px; background: var(--green); }
.hero .names { margin: 0; font: 600 clamp(15px, 1.8vw, 20px)/1.5 var(--sans); letter-spacing: .04em; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.cue { position: absolute; bottom: 22px; left: 50%; width: 2px; height: 44px; margin-left: -1px; background: linear-gradient(#fff, transparent); opacity: .8; }

/* the slightly see-through sections over the photograph */
/* a title over a button: left-aligned on the left side, on the same edge as the site title in the bar */
.panel { position: relative; padding: clamp(80px, 12vw, 150px) clamp(20px, 4vw, 48px); text-align: left; background: rgba(248, 250, 245, .8);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.panel .inner { max-width: 760px; margin: 0; }
/* under the main image the page holds still; depth comes from drop shadows instead */
.panel, .tiles { box-shadow: 0 16px 40px rgba(6, 20, 8, .3); z-index: 1; }
.tiles { position: relative; z-index: 2; }
.btn { box-shadow: 0 6px 16px rgba(10, 30, 12, .14); }
.btn:hover { box-shadow: 0 10px 24px rgba(10, 30, 12, .26); }
.tile span { text-shadow: 0 3px 14px rgba(0, 0, 0, .55); }
.kicker { margin: 0 0 12px; color: var(--green-text); font: 700 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.panel h2 { margin: 0; font: 600 clamp(38px, 6vw, 72px)/1.05 var(--serif); letter-spacing: -.02em; }
.panel p.lede { margin: 18px 0 0; max-width: 560px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 30px; padding: 0 30px; border: 2px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: 700 15px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); color: #fff; }

/* four tiles, edge to edge; a photo moves inside its box as you scroll and zooms in under the pointer */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; background: var(--ink); }
.tile { position: relative; display: block; height: clamp(320px, 42vw, 560px); overflow: hidden; color: #fff; text-decoration: none; }
.tile .par { position: absolute; inset: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.1); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .55)); transition: background .3s; }
.tile span { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; font: 600 clamp(26px, 2.6vw, 38px)/1.1 var(--serif); }
.tile span::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 12px; background: var(--green); transition: width .3s; }
.tile:hover span::before, .tile:focus-visible span::before { width: 64px; }
.tile:focus-visible { outline-offset: -5px; outline-color: #fff; }

/* the footer, on every page: the pages, the project, and VHproduct */
.foot { position: relative; z-index: 2; padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 48px) 44px; background: var(--deep); border-top: 3px solid var(--green); color: #c9d6cb; font-size: 15px; box-shadow: 0 -14px 34px rgba(0, 0, 0, .28); }
.foot .cols { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 40px; max-width: 1400px; margin: 0 auto; }
.foot h2 { margin: 0 0 14px; color: #7fd36f; font: 700 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.foot p { margin: 0; line-height: 1.6; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: #7fd36f; text-decoration: underline; }
.foot .fcol ul li a { display: inline-block; padding: 5px 0; }
.foot .vhlogo { display: inline-block; margin-bottom: 14px; }
.foot .vhlogo img { width: 180px; height: auto; }
.foot .vh p a { font-weight: 600; text-decoration: underline; }
.foot .contact { margin-top: 12px; line-height: 1.9; }
.foot .contact a { font-weight: 600; }
.foot .vhlinks { margin-top: 10px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; gap: 30px; } }

/* the article pages: the photograph edge to edge on top, then the article */
.ahero { position: relative; height: 72vh; height: 72svh; min-height: 380px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; }
.ahero .bg { position: absolute; inset: -10% 0 -10%; will-change: transform; }
.ahero .bg img { width: 100%; height: 100%; object-fit: cover; }
/* the photograph stays at the top and fades into an almost black green, the color of the rest of the page */
body.reading { background: var(--deep); }
.ahero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11, 26, 15, 0) 30%, rgba(11, 26, 15, .6) 65%, var(--deep)); }
.ahero .inner { position: relative; z-index: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 0 20px clamp(36px, 6vw, 64px); will-change: transform, opacity; }
@media (min-width: 1100px) { .ahero .inner { max-width: 1400px; padding-left: calc(20px + 240px + 28px); padding-right: calc(20px + 240px + 28px); } }
.ahero h1 { margin: 0; font: 600 clamp(40px, 7vw, 88px)/1.02 var(--serif); letter-spacing: -.02em; text-shadow: 0 2px 24px rgba(0, 0, 0, .4); }
.ahero .rule { width: 64px; height: 4px; margin-bottom: 18px; background: var(--green); }
/* three islands on a wide screen: the pages on the left, the article in the middle, the author on the right;
   on a narrower one they stack, the article first */
.layout { position: relative; z-index: 1; display: grid; gap: 24px; max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 20px clamp(64px, 10vw, 120px); }
.island { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.article { padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 56px) clamp(36px, 5vw, 56px); }
.side { padding: 22px 22px 24px; border-top: 3px solid var(--green); }
.side h2 { margin: 0 0 14px; color: var(--green-text); font: 700 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.pages ul { margin: 0; padding: 0; list-style: none; }
.pages a { display: block; padding: 10px 12px; margin: 0 -12px; color: var(--ink); font-weight: 600; text-decoration: none; border-left: 3px solid transparent; }
.pages a:hover { background: #eef6ea; }
.pages a[aria-current="page"] { border-left-color: var(--green); background: #eef6ea; color: var(--green-text); }
.author p { margin: 0; font: 500 22px/1.3 var(--serif); }
.pages { order: 3; } .author { order: 2; }
@media (min-width: 1100px) {
  .layout { max-width: 1400px; grid-template-columns: 240px minmax(0, 1fr) 240px; gap: 28px; align-items: start; }
  .pages, .author { order: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
  .pages { grid-column: 1; grid-row: 1; } .article { grid-column: 2; grid-row: 1; } .author { grid-column: 3; grid-row: 1; }
}
.article .meta { margin: 0 0 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.article .tbd { margin: 0; padding: 26px 28px; border-left: 4px solid var(--green); background: var(--bg); font: 500 clamp(22px, 3vw, 28px)/1.3 var(--serif); }
.article .back { display: inline-block; margin-top: 34px; font-weight: 600; }

@media (max-width: 760px) {
  :root { --nav-h: 104px; }
  .nav { flex-wrap: wrap; align-content: center; justify-content: center; gap: 0; padding: 8px 12px 0; }
  .brand { margin: 4px auto 2px; font-size: 18px; text-align: center; }
  .links { width: 100%; justify-content: center; }
  .links a, .links button { padding: 0 12px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { height: 56vw; min-height: 200px; }
  .tile span { left: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .backdrop img, .hero .inner, .panel .inner, .tile .par, .ahero .bg, .ahero .inner { transform: none !important; opacity: 1 !important; }
  .tile img, .menu, .btn, .links svg, .tile span::before { transition: none; }
}
