/* IE Photography: earthy, calm and a little playful. Forest green and plum on near-black or warm off-white */
:root {
  --ground: #111311;      /* page */
  --ground-2: #1a1e1a;    /* raised surfaces */
  --deep: #0b0d0b;        /* behind photographs */
  --bone: #ede9e1;        /* text */
  --dry-grass: #a9b0a6;   /* secondary text */
  --moss: #9cc39a;        /* soft green accent */
  --moss-deep: #6f9a72;
  --plum: #c9a3d4;        /* lilac / plum accent */
  --line: rgba(237, 233, 225, .12);
  --line-strong: rgba(237, 233, 225, .32);
  --header-bg: rgba(17, 19, 17, .9);
  --btn-bg: #6e3f7c;
  --btn-ink: #ffffff;
  --error: #e3a17c;
  --display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Allura", "Great Vibes", cursive;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --max-wide: 1600px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --slide: 7s;
}
[data-theme="light"] {
  --ground: #f6f3ec;
  --ground-2: #ece8de;
  --deep: #e4e0d5;
  --bone: #1c1f1b;
  --dry-grass: #5c625a;
  --moss: #2f5b37;
  --moss-deep: #2f5b37;
  --plum: #6a3f76;
  --line: rgba(28, 31, 27, .12);
  --line-strong: rgba(28, 31, 27, .32);
  --header-bg: rgba(246, 243, 236, .92);
  --btn-bg: #6a3f76;
  --btn-ink: #ffffff;
  --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: #f4f1ea; --dry-grass: rgba(244, 241, 234, .75); --moss: #c8e0c4; --plum: #e2c6ea; --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); }
/* handwritten wordmark, matching Isla's watermark */
.wordmark, .footer-logo, .status-mark { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1; }
.wm-script { font: 400 2.5rem/1 var(--script); letter-spacing: 0; transition: font-size .4s; }
.wm-caps { font: 600 .66rem/1 var(--sans); letter-spacing: .38em; text-transform: uppercase; color: var(--dry-grass); margin: 2px 0 0 6px; }
.has-hero .site-header.is-scrolled .wm-script { font-size: 2.1rem; }
.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-share { top: 8px; left: 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-title { color: inherit; text-decoration: none; display: inline-block; }
.lb-title:hover .plate-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.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 .wm-script { font-size: clamp(3rem, 6vw, 4.2rem); }
.footer-logo .wm-caps { font-size: .78rem; }
.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-mark { align-items: center; margin: 0 auto 28px; }
.status-mark .wm-script { font-size: clamp(3.4rem, 10vw, 4.6rem); }
.status-mark .wm-caps { margin-left: .38em; }
.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; }
  .wm-script, .has-hero .site-header.is-scrolled .wm-script { font-size: 2rem; }
  .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; }

/* ---- IE Photography touches ---- */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 40px; height: 40px; margin: -6px 0; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--bone); cursor: pointer; font: 600 .95rem var(--sans); transition: border-color .3s, transform .3s var(--ease); }
.theme-toggle:hover { border-color: var(--plum); transform: rotate(-12deg); }
.theme-toggle .ti-sun, .theme-toggle-label { display: none; }
[data-theme="light"] .theme-toggle .ti-sun { display: block; }
[data-theme="light"] .theme-toggle .ti-moon { display: none; }
.site-nav { align-items: center; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--moss); }
.site-nav a::after { height: 2px; border-radius: 2px; background: var(--plum); }
::selection { background: var(--plum); color: var(--ground); }
/* softer, rounder photographs and buttons */
:is(.jitem, .note-img, .index-pic, .focus-img, .jentry-img, .post-cover, .species-card) img,
:is(.note-img, .focus-img, .jentry-img, .post-cover) { border-radius: var(--radius); }
.plate-sci, .section-kicker { color: var(--plum); }
@media (max-width: 860px) {
  .theme-toggle { width: auto; height: auto; margin: 0; padding: 10px 16px; justify-content: flex-start; }
  .theme-toggle-label { display: inline; }
}
.form input, .form textarea, .notice { border-radius: 12px; }
.form input:focus, .form textarea:focus { border-color: var(--moss); outline: none; }
.map { border-radius: var(--radius); overflow: hidden; }
.map-pin { border-color: var(--plum); }
.leaflet-popup-content-wrapper { border-radius: 12px !important; }
.focus-kicker { font: 400 2.2rem/1 var(--script); color: var(--plum); }
.chips a:hover, .chips a[aria-current] { border-color: var(--moss); }

/* smooth page-to-page fades in browsers that support it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* casual-copy protection */
[data-protect] main img, [data-protect] .lb img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* 404 / 500 */
.lost { position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: clamp(110px, 14vw, 180px) var(--gutter) clamp(48px, 8vw, 96px); overflow: hidden; background: var(--ph, var(--ground)); }
.lost-photo { min-height: 100vh; color: #f2f0ec; }
.lost-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lost-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(8,8,8,.88) 0%, rgba(8,8,8,.55) 45%, rgba(8,8,8,.15) 100%); }
.lost-text { position: relative; z-index: 2; max-width: 640px; }
.lost-code { font: 500 .85rem var(--sans); letter-spacing: .2em; opacity: .7; margin: 0 0 10px; }
.lost-title { font: 400 clamp(3rem, 8vw, 6.4rem)/1 var(--display); margin: 0 0 18px; letter-spacing: -.02em; }
.lost-sub { font: 400 1.15rem/1.6 var(--serif); opacity: .85; margin: 0 0 26px; max-width: 46ch; }
.lost-search { max-width: 520px; margin-bottom: 22px; }
.lost-photo .lost-search input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(6px); }
.lost-photo .lost-search input::placeholder { color: rgba(255,255,255,.7); }
.lost-photo .btn { background: #f2f0ec; color: #111; }
.lost-links { display: flex; gap: 22px; flex-wrap: wrap; }
.lost-links a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; opacity: .9; }
.lost-credit { position: absolute; right: var(--gutter); bottom: 22px; z-index: 2; color: rgba(255,255,255,.75); font: italic .85rem var(--serif); text-decoration: none; }

/* conservation status */
.iucn { display: inline-flex; align-items: center; gap: 7px; font: 600 .72rem/1 var(--sans); letter-spacing: .04em; vertical-align: middle; font-style: normal; }
.iucn b { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 5px; border-radius: 4px; font-weight: 700; color: #fff; background: #5d7a5a; }
.iucn span { font-weight: 500; color: var(--bone); letter-spacing: 0; font-size: .85rem; }
.iucn-lc b { background: #4f7a52; } .iucn-nt b { background: #8a8a3a; } .iucn-vu b { background: #c58b1b; color: #111; }
.iucn-en b { background: #c4561c; } .iucn-cr b { background: #a3201b; } .iucn-dd b { background: #6c6c6c; }
.iucn-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--dry-grass); font-size: .92rem; margin: 0 0 18px; }
.iucn-line a { color: inherit; }
.species-name .iucn { margin-left: 6px; }

/* newsletter */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter-h { font: 400 clamp(1.3rem, 2.2vw, 1.8rem)/1.2 var(--display); margin: 0 0 8px; }
.newsletter-blurb { color: var(--dry-grass); margin: 0 0 16px; font: 400 1rem/1.55 var(--serif); max-width: 52ch; }
.newsletter-form { display: flex; gap: 8px; max-width: 520px; }
.newsletter-form input[type=email] { flex: 1; min-width: 0; font: 400 1rem var(--sans); color: var(--bone); background: var(--ground-2); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; }
.newsletter-form input:focus { outline: none; border-color: var(--line-strong); }
.newsletter-form .btn { padding: 12px 22px; }
.newsletter-msg { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: var(--ground-2); border: 1px solid var(--line); }
.newsletter-msg.is-error { color: var(--error); }
.footer-cols { grid-template-columns: repeat(3, minmax(0, 200px)) minmax(0, 1fr); }
.footer-news .newsletter-h { font: 500 .85rem var(--sans); color: var(--dry-grass); margin: 0 0 12px; }
.footer-news .newsletter-blurb { font-size: .92rem; margin-bottom: 12px; }
.footer-news .newsletter-form .btn { padding: 11px 18px; font-size: .88rem; }
.home-news { padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.home-news .newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; align-items: end; }
.home-news .newsletter-h { font-size: clamp(1.8rem, 3.4vw, 2.6rem); grid-column: 1; }
.home-news .newsletter-blurb { grid-column: 1; margin: 0; }
.home-news .newsletter-msg, .home-news .newsletter-form { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.home-news .newsletter-msg { grid-row: 1; align-self: end; }
.post-news { margin-top: 56px; padding: 28px; background: var(--ground-2); border-radius: 10px; }
.post-news .newsletter-form input[type=email] { background: var(--ground); }

/* recognition */
.recog-list { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.recog-list li { border-top: 1px solid var(--line); padding: 16px 0; }
.recog-list a { text-decoration: none; color: inherit; display: block; }
.recog-list a:hover b { color: var(--moss); }
.recog-kind { display: block; font: 500 .75rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dry-grass); margin-bottom: 6px; }
.recog-list b { display: block; font: 400 1.25rem/1.25 var(--display); transition: color .25s; }
.recog-org { display: block; font: italic .95rem var(--serif); color: var(--dry-grass); margin-top: 4px; }
.recog-about { grid-template-columns: 1fr; }

/* year in review */
.yr-hero { position: relative; height: 88vh; min-height: 520px; background: var(--ph); overflow: hidden; display: flex; align-items: flex-end; }
.yr-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yr-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,8,.8), rgba(8,8,8,0) 55%); }
.yr-hero-text { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(40px, 6vw, 72px); color: #f2f0ec; }
.yr-kicker { font: 500 .8rem var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .8; margin: 0 0 12px; }
.yr-title { font: 400 clamp(3.2rem, 10vw, 8rem)/.95 var(--display); margin: 0 0 14px; letter-spacing: -.02em; }
.yr-caption a { color: rgba(255,255,255,.8); font: italic .95rem var(--serif); text-decoration: none; }
.yr-numbers { margin-top: clamp(32px, 5vw, 56px) !important; margin-bottom: clamp(40px, 6vw, 72px) !important; }
.yr-stats { flex-wrap: wrap; margin-top: 0; }
.yr-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 120px; align-items: end; }
.yr-month { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.yr-month i { display: block; width: 100%; max-width: 38px; min-height: 2px; background: var(--plum, var(--moss)); opacity: .85; border-radius: 3px 3px 0 0; }
.yr-month span { font-size: .75rem; color: var(--dry-grass); }
.yr-block { margin-top: clamp(56px, 8vw, 96px) !important; }
.yr-places { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.yr-places li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; }
.yr-places a { color: var(--bone); text-decoration: none; font: 400 1.15rem var(--display); }
.yr-places span { color: var(--dry-grass); font-size: .88rem; }
.yr-other { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; margin-top: 64px !important; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dry-grass); }
.yr-other a { color: var(--bone); font: 400 1.4rem var(--display); text-decoration: none; }

@media (max-width: 860px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-news { grid-column: 1 / -1; }
  .home-news .newsletter { grid-template-columns: 1fr; }
  .home-news .newsletter-msg, .home-news .newsletter-form { grid-column: 1; grid-row: auto; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .yr-months { height: 90px; gap: 3px; }
  .lost-credit { display: none; }
}
/* footer: each column as wide as its content, so long emails never run into the next column */
.footer-cols { grid-template-columns: repeat(3, max-content) minmax(280px, 1fr); column-gap: clamp(36px, 5vw, 80px); }
.footer-cols a, .footer-cols p { overflow-wrap: anywhere; }
.footer-news { justify-self: end; width: 100%; max-width: 520px; }
@media (max-width: 1100px) {
  .footer-cols { grid-template-columns: repeat(3, max-content); }
  .footer-news { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* share */
.share { position: relative; display: inline-block; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--bone); border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; font: 500 .9rem var(--sans); cursor: pointer; transition: background .2s, border-color .2s; }
.share-btn:hover, .share-btn[aria-expanded="true"] { background: var(--ground-2); border-color: var(--line-strong); }
.share-menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 180px; background: var(--ground-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); display: grid; }
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button { display: block; text-align: left; padding: 9px 12px; border-radius: 6px; color: var(--bone); text-decoration: none; font: 400 .92rem var(--sans); background: none; border: 0; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover { background: var(--ground); }
.share-toast { position: absolute; left: 0; top: calc(100% + 8px); background: var(--bone); color: var(--ground); font: 500 .82rem var(--sans); padding: 6px 12px; border-radius: 999px; white-space: nowrap; z-index: 31; }
.photo-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.post-head .share { margin-top: 18px; }
.page-head .share { margin: 4px 0 18px; }
.yr-hero-text .share { margin: 0 0 16px; }
.yr-hero-text .share-btn { color: #f2f0ec; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.yr-hero-text .share-btn:hover { background: rgba(255,255,255,.12); }

/* conservation key on the species library */
.iucn-key { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 18px 0 0; color: var(--dry-grass); font-size: .85rem; }
.iucn-key .iucn span { color: var(--dry-grass); font-size: .82rem; }
.species-n .iucn { margin-left: 4px; }
.iucn-key a { color: inherit; }

/* footer share */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.footer-bottom .footer-legal { margin: 0; }
.share-up .share-menu { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; }
.share-up .share-toast { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; }
.share-up .share-btn { padding: 9px 16px; font-size: .85rem; }
@media (max-width: 520px) { .share-up .share-menu, .share-up .share-toast { right: auto; left: 0; } }

/* partner site in the footer */
.footer-partner p { color: var(--dry-grass); font-size: .85rem; margin: 4px 0 0; max-width: 26ch; line-height: 1.45; }
