/* MJ Photography: field-guide plates on a moss-and-lichen ground */
:root {
  /* neutral gallery palette: the photographs supply all the colour */
  --ground: #121212;      /* page */
  --ground-2: #1c1c1c;    /* raised surfaces */
  --deep: #0b0b0b;        /* behind photographs */
  --bone: #f2f0ec;        /* text */
  --dry-grass: #9b9994;   /* secondary text */
  --moss: #cdbf9f;        /* restrained champagne accent */
  --moss-deep: #8c8370;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .32);
  --header-bg: rgba(18, 18, 18, .9);
  --btn-bg: #f2f0ec;
  --btn-ink: #111111;
  --error: #e3a17c;
  --display: "Libre Caslon Display", "Bodoni Moda", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --max-wide: 1600px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --slide: 7s;
}
[data-theme="light"] {
  --ground: #f7f6f3;
  --ground-2: #eeece7;
  --deep: #e8e6e1;
  --bone: #151515;
  --dry-grass: #6a6863;
  --moss: #7d6a4a;
  --moss-deep: #7d6a4a;
  --line: rgba(0, 0, 0, .1);
  --line-strong: rgba(0, 0, 0, .3);
  --header-bg: rgba(247, 246, 243, .92);
  --btn-bg: #151515;
  --btn-ink: #f7f6f3;
  --error: #a4472a;
}
/* areas that always sit on photographs stay light-on-dark in both themes */
.hero, .lb, .jcap, .index-pic figcaption, .has-hero .site-header:not(.is-scrolled) {
  --bone: #f4f2ee; --dry-grass: rgba(244, 242, 238, .72); --moss: #e6dcc6; --line: rgba(255, 255, 255, .2);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--bone);
  font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--bone); color: var(--ground); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--dry-grass); }
.small { font-size: .875rem; }
.wrap { max-width: var(--max); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.wrap.wide { max-width: var(--max-wide); }
.wrap.narrow { max-width: 760px; }
main > section, main > article { margin-bottom: clamp(72px, 10vw, 144px); }

/* images fade in over their own dominant colour once loaded */
.js :is(.jitem, .note-img, .index-pic, .focus-img, .jentry-img, .post-cover, .photo-stage) img { transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.js :is(.jitem, .note-img, .index-pic, .focus-img, .jentry-img, .post-cover, .photo-stage) img:not(.is-loaded) { opacity: 0; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px var(--gutter); background: var(--header-bg); color: var(--bone);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--line);
}
.has-hero .site-header { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,0)); color: var(--bone); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .4s, border-color .4s, padding .4s; padding-top: 22px; padding-bottom: 22px; }
.has-hero .site-header.is-scrolled { background: var(--header-bg); border-bottom-color: var(--line); padding-top: 14px; padding-bottom: 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font: 400 1.5rem/1 var(--display); text-decoration: none; letter-spacing: .01em; }
.logo { width: 62px; height: 62px; flex: none; transition: width .4s, height .4s; }
.has-hero .site-header.is-scrolled .logo { width: 50px; height: 50px; }
.logo-dark { display: none; }
[data-theme="light"] .logo-dark { display: block; }
[data-theme="light"] .logo-light { display: none; }
[data-theme="light"] .has-hero .site-header:not(.is-scrolled) .logo-dark { display: none; }
[data-theme="light"] .has-hero .site-header:not(.is-scrolled) .logo-light { display: block; }
.site-nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.site-nav a { position: relative; text-decoration: none; font-size: .95rem; color: var(--bone); opacity: .78; padding: 6px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current] { opacity: 1; }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--bone); font: 500 .9rem var(--sans); padding: 8px 14px; border-radius: 999px; cursor: pointer; }

/* field-guide plate caption */
.plate-name { font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 var(--display); margin: 0; text-wrap: balance; }
.plate-sci { font: italic 400 1.05rem/1.3 var(--serif); color: var(--dry-grass); margin: .35em 0 0; }
.plate-where { margin: .9em 0 0; font-size: .9rem; color: var(--dry-grass); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.plate-big .plate-name { font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: -.015em; line-height: .98; }
.plate-big .plate-sci { font-size: clamp(1.05rem, 1.8vw, 1.5rem); }

/* hero: the one big moment */
.hero { color: var(--bone); position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--deep); }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; background: var(--ph); }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active img { animation: drift calc(var(--slide) + 3s) ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.42) 26%, rgba(0,0,0,0) 58%), linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,0) 22%); }
.hero figcaption { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(96px, 13vh, 140px); max-width: 960px; }
.hero figcaption a { text-decoration: none; display: block; }
.hero .plate > * { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.hero .is-active .plate > * { opacity: 1; transform: none; }
.hero .is-active .plate > :nth-child(1) { transition-delay: .35s; }
.hero .is-active .plate > :nth-child(2) { transition-delay: .5s; }
.hero .is-active .plate > :nth-child(3) { transition-delay: .65s; }
.hero-empty { display: grid; place-items: end start; padding: 0 var(--gutter) 15vh; background: radial-gradient(120% 90% at 70% 20%, #2a2a2a 0%, #0e0e0e 65%); }
.hero-controls { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 34px; display: flex; align-items: center; gap: 14px; font-size: .85rem; color: var(--dry-grass); }
.hero-ticks { display: flex; gap: 6px; margin-right: auto; }
.hero-tick { width: clamp(24px, 4vw, 48px); height: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.hero-tick i { display: block; height: 100%; width: 0; background: var(--bone); }
.hero-tick.is-done i { width: 100%; }
.hero-tick.is-active i { animation: tick var(--slide) linear forwards; }
.hero.is-paused .hero-tick.is-active i { animation-play-state: paused; }
@keyframes tick { to { width: 100%; } }
.hero-count { font-variant-numeric: tabular-nums; }
.hero-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.32); background: rgba(0,0,0,.25); color: var(--bone); font-size: 1.05rem; cursor: pointer; transition: border-color .2s, background .2s; }
.hero-btn:hover { border-color: var(--bone); background: rgba(0,0,0,.5); }

/* intro */
.intro { padding-top: clamp(40px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.intro-title { font: 400 clamp(2.2rem, 5vw, 4.2rem)/1.04 var(--display); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.intro-side { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 36px); }
.intro-text { font: 400 1.2rem/1.65 var(--serif); color: var(--dry-grass); margin: 0 0 18px; max-width: 38ch; }

.section-h { font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--display); margin: 0 0 24px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.text-link { color: var(--bone); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s; }
.text-link:hover { color: var(--moss); }

/* collections: a contents page with a large preview plate */
.index { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.index-thumb { display: none; }
.index-text { display: grid; gap: 4px; }
.index-name { font: 400 clamp(1.8rem, 3.4vw, 2.9rem)/1.05 var(--display); transition: color .3s, transform .5s var(--ease); }
.index-desc { color: var(--dry-grass); font: italic 400 1rem var(--serif); }
.index-n { font: 400 clamp(1.4rem, 2.4vw, 2rem)/1 var(--display); color: var(--dry-grass); font-variant-numeric: oldstyle-nums; }
.index-row:hover .index-name, .index-row.is-active .index-name { color: var(--moss); transform: translateX(10px); }
.index-preview { position: sticky; top: 110px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--deep); }
.index-pic { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s var(--ease); background: var(--ph); }
.index-pic.is-active { opacity: 1; }
.index-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.index-pic.is-active img { transform: scale(1); }
.index-pic figcaption { position: absolute; left: 16px; bottom: 14px; right: 16px; font: italic .9rem var(--serif); color: var(--bone); text-shadow: 0 1px 8px rgba(0,0,0,.6); }

/* in focus: an editorial spread tinted by the photograph */
.focus { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center;
  background: color-mix(in srgb, var(--ph) 10%, var(--ground-2)); }
.focus-img { display: block; height: 100%; min-height: 60vh; max-height: 92svh; overflow: hidden; background: var(--ph); }
.focus-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.focus-img:hover img { transform: scale(1.03); }
.focus-text { padding: clamp(36px, 6vw, 88px); max-width: 620px; }
.focus-kicker { font: 500 .95rem var(--sans); color: var(--dry-grass); margin: 0 0 22px; }
.focus .plate-big .plate-name { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
.focus-story { margin-top: 24px; color: var(--bone); }
.exif-line { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--dry-grass); font-size: .85rem; margin: 20px 0 26px; padding-top: 16px; border-top: 1px solid var(--line); }

/* justified grid */
.jgrid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.jitem { position: relative; display: block; background: var(--ph); overflow: hidden; text-decoration: none; }
.jitem i { display: block; }
.jitem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jfill { flex-grow: 1000000; flex-basis: 0; }
.jcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 14px; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0)); color: var(--bone); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease); display: flex; flex-direction: column; }
.jcap b { font: 400 1.2rem/1.15 var(--display); }
.jcap em { font: italic .85rem var(--serif); color: var(--dry-grass); }
.jitem:hover img, .jitem:focus-visible img { transform: scale(1.04); }
.jitem:hover .jcap, .jitem:focus-visible .jcap { opacity: 1; transform: none; }

/* journal teasers */
.notes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 48px; margin-top: 18px; }
.note a { text-decoration: none; display: block; }
.note-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ph); margin-bottom: 16px; }
.note-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.note a:hover .note-img img { transform: scale(1.04); }
.note-lead { grid-row: span 2; }
.note:not(.note-lead) a { display: grid; grid-template-columns: 150px 1fr; gap: 0 20px; align-items: start; }
.note:not(.note-lead) .note-img { margin: 0; }
.note time, .jentry time, .post-head time { color: var(--dry-grass); font-size: .85rem; }
.note h3 { font: 400 1.5rem/1.2 var(--display); margin: 4px 0 6px; transition: color .25s; }
.note-lead h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.note p { margin: 0; color: var(--dry-grass); font-family: var(--serif); }
.note a:hover h3 { color: var(--moss); }

/* buttons, cta */
.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-ink); font: 600 .95rem var(--sans); padding: 14px 26px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; transition: background .25s, transform .25s var(--ease); }
.btn:hover { opacity: .86; transform: translateY(-1px); }
.btn-quiet { background: transparent; color: var(--bone); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--ground-2); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 56px; }
.cta-text { font: 400 clamp(1.6rem, 3.2vw, 2.6rem)/1.2 var(--display); margin: 0; max-width: 24ch; text-wrap: balance; }

/* page heads */
.page-head { padding-top: clamp(48px, 7vw, 96px); }
main > .page-head { margin-bottom: 28px; }
.page-title { font: 400 clamp(2.6rem, 6vw, 5rem)/1.02 var(--display); margin: 0 0 14px; letter-spacing: -.015em; text-wrap: balance; }
.page-sub { font: 400 1.15rem/1.6 var(--serif); color: var(--dry-grass); margin: 0 0 24px; max-width: 54ch; }
.page-count { color: var(--dry-grass); font-size: .9rem; margin: 0 0 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chips a { text-decoration: none; font-size: .9rem; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--bone); transition: border-color .2s, background .2s; }
.chips a:hover { border-color: var(--line-strong); }
.chips a span { color: var(--dry-grass); margin-left: 4px; }
.chips a[aria-current] { background: var(--bone); color: var(--ground); border-color: var(--bone); }
.chips a[aria-current] span { color: var(--ground); opacity: .6; }
.pager { display: flex; gap: 12px; justify-content: center; margin-top: 48px; }
.empty { color: var(--dry-grass); font-family: var(--serif); font-style: italic; padding: 40px 0; }

/* single photo, on a backdrop tinted by the photograph */
.photo-page main > section { margin-bottom: 48px; }
.photo-stage { margin: 0 0 48px; display: flex; justify-content: center; padding: clamp(0px, 3vw, 40px);
  background: radial-gradient(70% 80% at 50% 45%, color-mix(in srgb, var(--ph) 14%, var(--deep)), var(--deep) 80%); }
.photo-stage img { max-height: calc(100svh - 140px); width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.photo-info { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 48px; }
.photo-side { border-left: 1px solid var(--line); padding-left: 36px; }
.exif { margin: 0 0 24px; display: grid; gap: 16px; }
.exif dt { color: var(--dry-grass); font-size: .85rem; }
.exif dd { margin: 2px 0 0; }
.exif-settings { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.photo-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 64px; }

/* prose */
.prose { font: 400 1.125rem/1.75 var(--serif); }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; margin: 1.6em 0 .5em; }
.prose h2 { font-size: 2rem; } .prose h3 { font-size: 1.5rem; }
.prose a { color: var(--bone); text-underline-offset: 4px; }
.prose blockquote { margin: 1.8em 0; padding-left: 24px; border-left: 2px solid var(--line-strong); color: var(--bone); font: italic 1.35rem/1.5 var(--serif); }
.prose ul { padding-left: 1.2em; }
.post .prose > p:first-child::first-letter { float: left; font-size: 4.4em; line-height: .82; padding: .06em .1em 0 0; color: var(--bone); }
.post-figure { margin: 2.4em calc(-1 * min(12vw, 180px)); }
.post-figure img { width: 100%; height: auto; }
.post-figure figcaption { font: .9rem var(--sans); color: var(--dry-grass); margin-top: 10px; }
.post-figure figcaption em { font-family: var(--serif); margin-left: 8px; }

/* journal */
.journal-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.jentry a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); padding: 36px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: center; }
.jentry-img { aspect-ratio: 3 / 2; background: var(--ph); overflow: hidden; }
.jentry-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.jentry a:hover .jentry-img img { transform: scale(1.04); }
.jentry h2 { font: 400 clamp(1.7rem, 3.2vw, 2.6rem)/1.12 var(--display); margin: 6px 0 10px; transition: color .25s; }
.jentry p { color: var(--dry-grass); font-family: var(--serif); margin: 0; }
.jentry a:hover h2 { color: var(--moss); }
.post-cover { position: relative; margin: 0 0 48px; height: min(80svh, 940px); background: var(--ph); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to top, var(--ground), transparent); }
.post-head { padding-top: 8px; margin-bottom: 36px; }
.post-title { font: 400 clamp(2.6rem, 6vw, 4.6rem)/1.02 var(--display); margin: 8px 0 18px; letter-spacing: -.01em; text-wrap: balance; }
.post-dek { font: italic 1.35rem/1.5 var(--serif); color: var(--dry-grass); margin: 0; }
.draft-flag { display: inline-block; background: var(--btn-bg); color: var(--btn-ink); padding: 4px 12px; border-radius: 999px; font-size: .85rem; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(48px, 7vw, 96px); align-items: start; }
.about-portrait { position: sticky; top: 100px; }
.about-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-empty { aspect-ratio: 4 / 5; display: grid; place-items: center; border: 1px dashed var(--line); color: var(--dry-grass); }
.stats { display: flex; gap: clamp(24px, 5vw, 64px); margin: 36px 0 44px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats dt { color: var(--dry-grass); font-size: .85rem; }
.stats dd { margin: 0; font: 400 clamp(2.4rem, 4vw, 3.2rem)/1 var(--display); }
.gear ul { list-style: none; padding: 0; margin: 0 0 32px; }
.gear li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* forms */
.form { display: grid; gap: 18px; margin-top: 8px; }
.form label { display: grid; gap: 6px; font-size: .9rem; color: var(--dry-grass); }
.form input, .form textarea { font: 400 1rem var(--sans); color: var(--bone); background: var(--ground-2); border: 1px solid var(--line); border-radius: 6px; padding: 13px 15px; transition: border-color .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--line-strong); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-error { color: var(--error); }
.notice { border: 1px solid var(--line); padding: 24px; border-radius: 6px; background: var(--ground-2); }

/* map */
.map-page main > section { margin-bottom: 0; }
.map { height: calc(100svh - 260px); min-height: 420px; margin: 0 var(--gutter) 96px; border-radius: 4px; background: var(--ground-2); }
.map-pin { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.55); background: var(--ground-2); transition: transform .2s var(--ease); }
.map-pin:hover { transform: scale(1.12); }
.map-pin img { width: 100%; height: 100%; object-fit: cover; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--ground) !important; color: var(--bone) !important; border-radius: 4px !important; }
.leaflet-popup-content { margin: 10px !important; font-family: var(--sans); }
.map-pop img { width: 220px; height: 150px; object-fit: cover; margin-bottom: 8px; }
.map-pop b { font: 400 1.2rem var(--display); display: block; }
.map-pop em { font: italic .85rem var(--serif); color: var(--dry-grass); display: block; }
.map-pop a { color: var(--moss); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(255,255,255,.3) !important; }
.marker-cluster div { background: #f2f0ec !important; color: #111 !important; font: 600 13px var(--sans) !important; }

/* lightbox, glowing with the photograph's own colour */
.lb { --ph: #2a2a2a; color: var(--bone); position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background-color .6s;
  background: radial-gradient(60% 70% at 50% 42%, color-mix(in srgb, var(--ph) 14%, #0c0c0c), #0c0c0c 78%); }
.lb.is-open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 60px 72px 8px; min-height: 0; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .3s, transform .4s var(--ease); box-shadow: 0 30px 90px -30px rgba(0,0,0,.8); }
.lb-stage img.is-loading { opacity: .2; transform: scale(.985); }
.lb-bar { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 18px var(--gutter) 24px; }
.lb-bar .plate-name { font-size: 1.8rem; }
.lb-exif { color: var(--dry-grass); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: flex-end; max-width: 50%; }
.lb-btn { position: absolute; background: none; border: 0; color: var(--bone); cursor: pointer; font-size: 1.6rem; width: 52px; height: 52px; opacity: .7; transition: opacity .2s; }
.lb-btn:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; font-size: 1rem; font-family: var(--sans); width: auto; padding: 0 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-more { position: absolute; top: 20px; left: var(--gutter); font-size: .9rem; color: var(--bone); opacity: .8; }
.lb-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: .85rem; color: var(--dry-grass); font-variant-numeric: tabular-nums; }
body.lb-lock { overflow: hidden; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) var(--gutter) 36px; background: linear-gradient(var(--ground), var(--deep)); }
.footer-inner { max-width: var(--max-wide); margin: 0 auto; }
.footer-logo { display: inline-block; margin: 0 0 clamp(32px, 4vw, 48px); }
.footer-logo img { width: clamp(140px, 16vw, 180px); height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-h { font: 500 .85rem var(--sans); color: var(--dry-grass); margin: 0 0 12px; }
.footer-cols a, .footer-cols p { display: block; color: var(--bone); text-decoration: none; margin: 0 0 8px; opacity: .85; }
.footer-cols a:hover { opacity: 1; }
.footer-legal { color: var(--dry-grass); font-size: .85rem; margin: 22px 0 0; }

/* maintenance page */
.status-page { min-height: 100svh; display: grid; place-items: center; background: radial-gradient(90% 70% at 50% 30%, var(--ground-2), var(--ground) 70%); }
.status { text-align: center; padding: 48px var(--gutter); max-width: 560px; }
.status-logo { width: clamp(150px, 30vw, 200px); height: auto; margin: 0 auto 28px; }
.status-title { font: 400 clamp(2.6rem, 8vw, 4rem)/1 var(--display); margin: 0 0 16px; letter-spacing: -.01em; }
.status-text { font: italic 400 1.2rem/1.6 var(--serif); color: var(--dry-grass); margin: 0 auto 28px; max-width: 40ch; }
.status-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 0 0 32px; }
.status-links a { color: var(--bone); text-underline-offset: 5px; }
.status-foot { color: var(--dry-grass); font-size: .85rem; margin: 0; }
.maint-bar { position: relative; z-index: 60; background: #b8860b; color: #111; text-align: center; font: 500 .9rem var(--sans); padding: 8px var(--gutter); }
.maint-bar a { color: #111; }
.has-hero .maint-bar { position: fixed; left: 0; right: 0; bottom: 0; }

/* search, species, stories */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-search { display: inline-flex; align-items: center; gap: 6px; }
.nav-search svg { display: block; }
.nav-search-label { display: none; }
.search-form { display: flex; gap: 10px; max-width: 640px; margin: 8px 0 12px; }
.search-form input { flex: 1; min-width: 0; font: 400 1.05rem var(--sans); color: var(--bone); background: var(--ground-2); border: 1px solid var(--line); border-radius: 999px; padding: 13px 20px; }
.search-form input:focus { outline: none; border-color: var(--line-strong); }
.search-block { margin-bottom: 56px !important; }
.crumbs { margin: 0 0 14px; font-size: .9rem; }
.species-head-sci { font: italic 400 clamp(1.1rem, 2vw, 1.5rem) var(--serif); color: var(--dry-grass); margin: -4px 0 14px; }
.species-section { margin-bottom: 64px !important; }
.species-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 18px; }
.species-card { display: grid; gap: 3px; text-decoration: none; }
.species-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ph); margin-bottom: 10px; }
.species-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.species-card:hover .species-img img { transform: scale(1.05); }
.species-name { font: 400 1.3rem/1.2 var(--display); transition: color .25s; }
.species-card:hover .species-name { color: var(--moss); }
.species-sci { font: italic .92rem var(--serif); color: var(--dry-grass); }
.species-n { font-size: .82rem; color: var(--dry-grass); }
.stories { margin: 0 0 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.stories-h { font: 500 .85rem var(--sans); color: var(--dry-grass); margin: 0 0 10px; }
.story-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.story-link { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.stories .story-link { padding: 10px 0; }
.story-link b { font: 400 1.25rem/1.25 var(--display); transition: color .25s; }
.story-link span { color: var(--dry-grass); font: .95rem/1.5 var(--serif); }
.story-link:hover b { color: var(--moss); }

/* small screens */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ground); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; display: none; }
  .site-nav.is-open { display: flex; }
  .has-hero .site-header:not(.is-scrolled) .site-nav { background: rgba(12, 12, 12, .96); }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a::after { display: none; }
  .nav-search-label { display: inline; }
  .species-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .search-form { flex-direction: column; }
  .search-form .btn { align-self: flex-start; }
  .logo, .has-hero .site-header.is-scrolled .logo { width: 44px; height: 44px; }
  .wordmark { font-size: 1.3rem; }
  .intro, .photo-info, .about, .notes, .index, .focus { grid-template-columns: 1fr; }
  .intro-side { border-left: 0; padding-left: 0; }
  .index-preview { display: none; }
  .index-row { grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 0; }
  .index-thumb { display: block; width: 76px; aspect-ratio: 1; overflow: hidden; background: var(--ph); }
  .index-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .index-desc { font-size: .9rem; }
  .index-row:hover .index-name { transform: none; }
  .focus-img { min-height: 0; max-height: 70svh; aspect-ratio: 4 / 3; }
  .focus-text { padding: 32px var(--gutter) 40px; }
  .photo-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .jentry a { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 420px; }
  .note-lead { grid-row: auto; }
  .note:not(.note-lead) a { grid-template-columns: 110px 1fr; }
  .post-figure { margin: 2em 0; }
  .lb-stage { padding: 56px 0 8px; }
  .lb-prev, .lb-next { display: none; }
  .lb-bar { flex-direction: column; align-items: start; }
  .lb-exif { justify-content: flex-start; max-width: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  }
@media (max-width: 520px) {
  .jgrid { gap: 6px; }
  .jitem { flex: 0 0 calc(50% - 3px) !important; }
  .jitem i { padding-bottom: 120% !important; }
  .jcap { display: none; }
  .hero figcaption { bottom: 92px; }
  .hero-btn { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .plate > * { opacity: 1; transform: none; }
}
/* species library: families A–Z */
.az { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 18px; }
.az a { text-decoration: none; min-width: 32px; padding: 6px 0; text-align: center; font-size: .9rem; color: var(--dry-grass); border-radius: 4px; transition: color .2s, background .2s; }
.az a:hover { color: var(--bone); background: var(--ground-2); }
.fam-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 20px; }
.fam-grid li { scroll-margin-top: 100px; }
.fam-grid .species-img { aspect-ratio: 3 / 2; }
.fam-grid .species-name { font-size: 1.45rem; }
.fam-grid .species-sci { font-size: .82rem; }
.fam-species { margin-bottom: 72px !important; scroll-margin-top: 90px; }
.fam-species .section-h a { text-decoration: none; color: inherit; transition: color .25s; }
.fam-species .section-h a:hover { color: var(--moss); }
.fam-species .species-sci { margin: 2px 0 0; }
.crumbs span { color: var(--dry-grass); margin: 0 4px; }
@media (max-width: 600px) { .fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } .fam-grid .species-name { font-size: 1.15rem; } }
.muted-inline { color: var(--dry-grass); font-size: .9em; }
