:root {
  --ink: #102b3d;
  --ink-soft: #46616a;
  --navy: #0e3447;
  --green: #3d6b53;
  --green-deep: #244d3b;
  --sage: #dfe9df;
  --mist: #f2f5f1;
  --cream: #fbfcf8;
  --line: #d5dfd9;
  --white: #ffffff;
  --gold: #c89543;
  --link: #0b6370;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter Tight', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --measure: 75rem;
  --gutter: clamp(1.15rem, 3vw, 3.25rem);
  --radius: 1.2rem;
  color-scheme: light;
}

html[data-theme="dark"], html.dark {
  --ink: #e8f0ec;
  --ink-soft: #afc5be;
  --navy: #d4e8e3;
  --green: #8db69a;
  --green-deep: #a9d2b2;
  --sage: #29453d;
  --mist: #172a2e;
  --cream: #102027;
  --line: #38534f;
  --white: #15272d;
  --gold: #e2b664;
  --link: #8fd5d0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 1.05rem; line-height: 1.55; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(var(--measure), calc(100% - 2 * var(--gutter))); min-height: 5.75rem; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; min-width: max-content; }
.brand-mark { width: 2.85rem; height: 2.85rem; flex: 0 0 auto; }
.brand-name { color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1.42rem; letter-spacing: -.045em; }
.brand-sub { display: block; color: var(--green); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; line-height: 1.1; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.65rem); }
.site-nav a { color: var(--ink-soft); font-family: var(--font-display); font-size: .86rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green-deep); }
.trailing-controls { display: flex; align-items: center; gap: .6rem; }
[data-haven88], .mercury-944e { display: inline-grid; place-items: center; width: 2.55rem; height: 2.55rem; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--white); }
[data-haven88] { font-size: 1.05rem; }
.mercury-944e { display: none; }

.page-wrap { width: min(var(--measure), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.quiet-4854 { display: grid; grid-template-columns: minmax(0, 1fr) 11.5rem; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.quiet-4854:has([data-amber7b][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-amber7b][hidden] { display: none; }
.mercury-9982 { position: sticky; top: 7rem; border-top: 2px solid var(--green); padding-top: .75rem; }
.mercury-9982 h2 { margin: 0 0 .7rem; color: var(--green); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.mercury-9982 ol { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.mercury-9982 a { color: var(--ink-soft); font-size: .88rem; text-decoration: none; }
.mercury-9982 a:hover { color: var(--link); }

.eyebrow { margin: 0 0 1rem; color: var(--green); font-family: var(--font-mono); font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.04; letter-spacing: -.055em; }
h1 { font-size: clamp(2.65rem, 6vw, 5.8rem); max-width: 11ch; }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0; }
.lede { max-width: 42rem; color: var(--ink-soft); font-size: clamp(1.06rem, 1.5vw, 1.25rem); line-height: 1.55; }
.mono-label { color: var(--green); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }

.hero { position: relative; min-height: min(47rem, 78vh); display: grid; align-items: end; margin-bottom: clamp(4.5rem, 9vw, 8.5rem); overflow: hidden; background: var(--navy); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .67; }
.hero::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(8, 35, 46, .92) 0%, rgba(8, 35, 46, .62) 45%, rgba(8, 35, 46, .16) 100%), linear-gradient(0deg, rgba(8, 35, 46, .7), transparent 56%); }
.hero-content { position: relative; z-index: 1; width: min(var(--measure), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 6.5rem); color: var(--white); }
.hero h1 { color: #fff; max-width: 12ch; }
.hero .eyebrow { color: #b6d8b9; }
.hero .lede { margin-top: 1.5rem; color: #e5f1e8; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.1rem; padding: .75rem 1.1rem; border: 1px solid transparent; border-radius: .55rem; background: var(--green); color: #fff; font-family: var(--font-display); font-size: .9rem; font-weight: 600; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--green-deep); }
.button.secondary { border-color: currentColor; background: transparent; color: inherit; }
.button.secondary:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.button.light { background: #fff; color: var(--navy); }

.section { margin-bottom: clamp(4.75rem, 10vw, 9rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.section-head p { max-width: 28rem; color: var(--ink-soft); }
.intro-grid { display: grid; grid-template-columns: minmax(12rem, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 7vw, 8rem); align-items: start; }
.intro-grid h2 { max-width: 12ch; }
.intro-copy { display: grid; gap: 1.1rem; }
.rule { height: 1px; background: var(--line); }

.signal-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); }
.signal { display: grid; gap: .55rem; min-height: 8rem; padding: 1.35rem; background: var(--white); }
.signal strong { font-family: var(--font-display); font-size: 1.15rem; }
.signal p { color: var(--ink-soft); font-size: .92rem; }

.species-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.species-card { min-height: 12rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: 1.4rem; background: var(--white); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.species-card:hover { background: var(--sage); transform: translateY(-3px); }
.species-card .number { color: var(--gold); font-family: var(--font-mono); font-size: .75rem; }
.species-card p { color: var(--ink-soft); font-size: .94rem; }
.species-card .arrow { align-self: end; color: var(--green); font-family: var(--font-mono); }

.photo-band { position: relative; min-height: 22rem; display: flex; align-items: end; margin: 0 calc(var(--gutter) * -1) clamp(4.75rem, 10vw, 9rem); overflow: hidden; background: var(--navy); }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.photo-band::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(12, 43, 52, .85), rgba(12, 43, 52, .2)); }
.photo-band-content { position: relative; z-index: 1; width: min(58rem, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 3.5rem 0; color: #fff; }
.photo-band-content p { max-width: 34rem; margin-top: 1rem; color: #e4f0e9; }

.page-hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6.5rem); background: var(--mist); border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-top: 1.25rem; }
.page-main { padding-top: clamp(3.5rem, 7vw, 6rem); }
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; }
.info-card { padding: 1.5rem; border: 1px solid var(--line); background: var(--white); }
.info-card .mono-label { display: block; margin-bottom: 2.6rem; }
.info-card p { margin-top: .8rem; color: var(--ink-soft); }
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 2rem; padding: 1.45rem 0; border-bottom: 1px solid var(--line); }
.timeline-year { color: var(--green); font-family: var(--font-mono); font-size: .9rem; font-weight: 700; }
.timeline-item p { margin-top: .55rem; color: var(--ink-soft); }
.callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); background: var(--navy); color: #fff; }
.callout p { max-width: 34rem; margin-top: .7rem; color: #d8e9df; }

.download-list { display: grid; gap: .7rem; }
.download-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.download-item:hover { border-color: var(--green); }
.download-item span:last-child { color: var(--green); font-family: var(--font-mono); font-size: .75rem; }

.form-shell { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 6rem); }
.form-copy p { margin-top: 1rem; color: var(--ink-soft); }
.contact-form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); }
.field { display: grid; gap: .35rem; }
.field label { color: var(--ink); font-family: var(--font-display); font-size: .9rem; font-weight: 600; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: .35rem; padding: .8rem .85rem; background: var(--cream); color: var(--ink); }
.field textarea { min-height: 8rem; resize: vertical; }
.form-status { min-height: 1.4em; color: var(--green-deep); font-size: .9rem; }

.archive-controls { display: flex; gap: .75rem; margin-bottom: 1.5rem; }
.archive-controls input { flex: 1; border: 1px solid var(--line); padding: .8rem; background: var(--white); color: var(--ink); }
.solace-ecc9, .news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; align-items: start; }
.coral-15e8 { overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.nova-a2b5 { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.nova-a2b5 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coral-15e8 > :not(.nova-a2b5) { margin-left: 1.1rem; margin-right: 1.1rem; }
.cedar-8df6 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: 1rem; color: var(--green); font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; }
.coral-15e8 h2 { margin-top: .55rem; font-size: 1.35rem; letter-spacing: -.035em; }
.coral-15e8 p { margin-top: .55rem; margin-bottom: 1.2rem; color: var(--ink-soft); font-size: .93rem; }
.silver-1b9a { padding: 1.5rem; border: 1px dashed var(--line); color: var(--ink-soft); }
.filter-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }

.article-layout { padding: clamp(3rem, 6vw, 5rem) 0 6rem; }
.timber-adb5 h1 { max-width: 17ch; font-size: clamp(2.5rem, 5vw, 5rem); }
.lumen-1107 { max-width: 42rem; margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.2rem; }
.maple-22fa { width: 100%; max-height: 34rem; margin: 2.5rem 0; object-fit: cover; }
.byline { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; align-items: center; max-width: 36rem; margin: 2rem 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline img { grid-row: span 2; width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; }
.byline p { color: var(--ink-soft); font-size: .9rem; }
.prose { max-width: 47rem; }
.prose p, .prose ul, .prose ol { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.75; }
.prose h2, .prose h3 { margin-top: 2.75rem; }
.prose a { color: var(--link); text-decoration-thickness: .12em; text-underline-offset: .18em; }

.site-footer { margin-top: 5rem; padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }
.footer-inner p { max-width: 24rem; color: var(--ink-soft); font-size: .9rem; }
.footer-meta { display: grid; gap: .5rem; color: var(--ink-soft); font-family: var(--font-mono); font-size: .72rem; text-align: right; }

@media (max-width: 58rem) {
  .site-nav { display: none; position: absolute; top: 100%; right: var(--gutter); left: var(--gutter); flex-direction: column; align-items: stretch; gap: 0; padding: .6rem; border: 1px solid var(--line); background: var(--cream); box-shadow: 0 1rem 2rem rgba(8, 35, 46, .12); }
  .site-nav.velvet-08f0 { display: flex; }
  .site-nav a { padding: .85rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .mercury-944e { display: inline-grid; }
  .quiet-4854, .quiet-4854:has([data-amber7b][hidden]) { grid-template-columns: minmax(0, 1fr); }
  .mercury-9982 { position: static; }
  .intro-grid, .form-shell { grid-template-columns: 1fr; }
  .intro-grid h2 { max-width: none; }
}
@media (max-width: 42rem) {
  h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .signal-strip { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: .45rem; }
  .callout { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .archive-controls { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gallery-dialog { width: min(54rem, calc(100% - 2 * var(--gutter))); max-width: 54rem; border: 1px solid var(--line); padding: 1rem; background: var(--cream); color: var(--ink); }
.gallery-dialog::backdrop { background: rgba(8, 35, 46, .72); }
.gallery-dialog img { width: 100%; max-height: 75vh; margin-top: 1rem; object-fit: contain; }
.gallery-dialog .button { min-height: 2.5rem; }

