@font-face {
  font-family: Newsreader;
  src: url("assets/fonts/newsreader-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Newsreader;
  src: url("assets/fonts/newsreader-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #282e27;
  --muted: #656a5f;
  --accent: #405b42;
  --line: #dcded4;
  --wash: #eeeee6;
  --serif: Newsreader, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "DM Sans", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --page: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button, a, summary, select { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button { border: 0; background: none; }
button:active, a:active { opacity: .75; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
main:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.5rem, 6.7vw, 7rem); line-height: .98; letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 3.2vw, 3.3rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-size: 1.7rem; line-height: 1.1; letter-spacing: -.025em; }
em { font-weight: 400; }
::selection { background: #d9e2c8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 30; padding: 1rem; background: var(--paper); border: 1px solid var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header { max-width: var(--page); margin: auto; padding: 1.75rem var(--gutter); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem 1rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; justify-self: start; }
.signature-logo { width: clamp(11rem, 17vw, 14rem); height: auto; }
.brand-subtitle { display: block; font-size: .58rem; text-transform: uppercase; letter-spacing: .16em; margin-top: .5rem; }
.main-nav { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); grid-row: 2; grid-column: 1 / -1; justify-content: space-between; }
.main-nav a { display: inline-flex; align-items: center; position: relative; min-height: 40px; font-size: .76rem; }
.main-nav a::after { content: ""; position: absolute; bottom: 2px; left: 0; right: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.language { position: relative; justify-self: end; font-size: .72rem; z-index: 10; }
.language summary { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem; list-style: none; }
.language summary::-webkit-details-marker { display: none; }
.language-panel { position: absolute; top: calc(100% + .5rem); right: 0; width: 260px; background: var(--paper); border: 1px solid var(--line); padding: 1.25rem; box-shadow: 0 10px 25px #2834270b; }
.language-panel > span, .language-panel strong { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; }
.language-panel small { color: var(--muted); font-size: .65rem; }
.language-panel p { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .8rem; color: var(--muted); line-height: 1.6; font-size: .7rem; }
main { max-width: var(--page); margin: auto; }
.eyebrow { font-size: .6rem; font-family: var(--sans); text-transform: uppercase; font-weight: 600; letter-spacing: .16em; line-height: 1.6; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: .6rem; vertical-align: 2px; }
.hero { padding: 2.5rem var(--gutter) 0; display: grid; gap: 2.5rem; }
.hero-copy { padding-top: .5rem; }
.hero-copy h1 { margin-top: 1.5rem; }
.hero-copy h1 em { color: var(--accent); }
.hero-description { color: var(--muted); font-size: .9rem; line-height: 1.8; margin-top: 1.5rem; max-width: 30ch; }
.explore-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 48px; margin-top: 1.6rem; border-bottom: 1px solid var(--ink); font-size: .72rem; }
.explore-link span { transition: transform 180ms ease; }
.explore-link:hover span { transform: translateY(3px); }
.hero-signature { display: none; font-size: .64rem; color: var(--muted); }
.hero-figure { min-width: 0; position: relative; }
.hero-figure > a { display: block; overflow: hidden; }
.hero-figure img { width: 100%; }
figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; font-size: .65rem; line-height: 1.5; color: var(--muted); }
.hero-figure figcaption > span { display: flex; gap: .75rem; }
figcaption a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.collection, .species-section, .stories-list, .species-detail, .story-photo-section { padding: 4rem var(--gutter) 0; }
.section-heading { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.section-heading .eyebrow { margin-bottom: .7rem; color: var(--muted); }
.collection-note { font-size: .65rem; color: var(--muted); line-height: 1.7; }
.gallery-toolbar { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .65rem 0; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-buttons button { padding: .7rem .8rem; min-height: 44px; border: 1px solid transparent; border-radius: 0; font-size: .73rem; }
.filter-buttons button:first-child { margin-left: -.8rem; }
.filter-buttons button span { font-size: .56rem; margin-left: .4rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.filter-buttons button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter-buttons button[aria-pressed="true"] span { color: var(--paper); opacity: .75; }
.filter-buttons button:hover:not([aria-pressed="true"]) { border-color: var(--line); }
.species-filter { display: flex; gap: .7rem; align-items: center; font-size: .65rem; color: var(--muted); }
.species-filter > span { text-transform: uppercase; letter-spacing: .08em; }
.species-filter select { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 44px; padding: .4rem 1rem .4rem .2rem; max-width: 100%; font-size: .7rem; color: var(--ink); }
.gallery-result-line { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0 1.5rem; font-size: .6rem; color: var(--muted); }
.gallery-result-line > span { max-width: 23ch; text-align: right; }
.photo-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem 1.75rem; }
.photo-card { min-width: 0; }
.photo-image { display: block; position: relative; overflow: hidden; }
.photo-image img { width: 100%; transition: transform 500ms cubic-bezier(.16, 1, .3, 1); }
.image-open { position: absolute; bottom: .75rem; right: .75rem; display: flex; gap: 1.5rem; background: var(--paper); color: var(--ink); padding: .6rem .8rem; font-size: .6rem; opacity: 0; transform: translateY(5px); transition: opacity 200ms, transform 200ms; }
.photo-image:hover .image-open, .photo-image:focus-visible .image-open { opacity: 1; transform: translateY(0); }
.photo-card figcaption { font-size: .66rem; padding-top: .8rem; gap: .5rem; }
.photo-card figcaption > div { display: flex; gap: .7rem; }
.public-photo-species a { color: var(--ink); text-underline-offset: 3px; }
.photo-number { color: var(--muted); font-size: .54rem; padding-top: .1rem; }
.photo-title { color: var(--ink); }
.photo-category { flex-shrink: 0; font-size: .57rem; }
[data-public-gallery] .photo-card figcaption { overflow-wrap: anywhere; white-space: pre-wrap; }
.public-filter-note { color: var(--muted); font-size: .75rem; line-height: 1.7; }
.public-gallery-status { margin: 0 0 1.5rem; color: var(--ink); font-size: .8rem; line-height: 1.7; }
.public-gallery-status[hidden] { display: none; }
.public-detail-notice { margin: 1rem var(--gutter); }
.public-gallery-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.public-gallery-actions button { min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--ink); font-size: .75rem; }
.public-gallery-actions button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.public-gallery-actions button:disabled { cursor: wait; opacity: .6; }
.public-gallery-actions button[hidden] { display: none; }
.collection-end { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin: 3.5rem 0 1rem; color: var(--muted); font-family: var(--serif); font-size: 1.1rem; font-style: italic; }
.collection-end span { width: 40px; height: 1px; background: var(--line); }
.story-invitation { margin: 3rem var(--gutter) 0; padding: 2.5rem 0; border-top: 1px solid var(--line); display: grid; gap: 2rem; }
.story-invitation h2 { margin-top: 1rem; font-size: clamp(2.5rem, 4.5vw, 4.5rem); }
.story-invitation > div > p:not(.eyebrow) { max-width: 48ch; font-size: .88rem; line-height: 1.9; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 2rem; min-height: 44px; border-bottom: 1px solid var(--line); font-size: .75rem; }
.text-link:hover { border-color: var(--ink); }
.story-invitation .text-link { margin-top: 1.4rem; }
.provisional-label { display: block; font-size: .62rem; color: var(--muted); margin-top: .7rem; line-height: 1.6; }
.site-footer { max-width: var(--page); margin: 3rem auto 0; padding: 0 var(--gutter); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-brand { display: inline-block; }
.footer-top p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding: 1.25rem 0 1.75rem; font-size: .57rem; line-height: 1.6; color: var(--muted); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.field-note, .field-photo-note { display: none; }

/* Caderno de campo */
[data-design="campo"] {
  --paper: #efeee3;
  --ink: #293d32;
  --muted: #626b57;
  --accent: #7d4531;
  --line: #cbd0bc;
  --wash: #e5e6d7;
}
[data-design="campo"] body { background-image: radial-gradient(#33452d0a .5px, transparent .5px); background-size: 4px 4px; }
[data-design="campo"] .site-header { border-bottom: 0; }
[data-design="campo"] .brand-subtitle { font-size: .55rem; }
[data-design="campo"] .hero { border-top: 1px solid var(--line); margin: 0 var(--gutter); padding-left: 0; padding-right: 0; }
[data-design="campo"] .hero-copy h1 { letter-spacing: -.045em; }
[data-design="campo"] .hero-copy .eyebrow { color: var(--accent); }
[data-design="campo"] .hero-copy .status-dot { background: var(--accent); }
[data-design="campo"] .hero-figure { padding: .55rem; border: 1px solid var(--line); background: #f5f3e9; }
[data-design="campo"] .hero-figure figcaption { padding: .9rem .3rem .35rem; font-size: .6rem; }
[data-design="campo"] .caption-index { font-family: var(--serif); font-style: italic; font-size: .9rem; color: var(--accent); line-height: 1; }
[data-design="campo"] .field-note { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.1rem; width: fit-content; }
[data-design="campo"] .field-note-index { font-family: var(--serif); font-size: 3rem; font-style: italic; color: var(--accent); }
[data-design="campo"] .field-note .eyebrow { display: block; font-size: .52rem; margin-bottom: .3rem; color: var(--muted); }
[data-design="campo"] .field-note a { display: inline-flex; gap: 2rem; min-height: 32px; align-items: center; font-size: .72rem; }
[data-design="campo"] .collection { padding-top: 4.5rem; }
[data-design="campo"] .section-heading { border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
[data-design="campo"] .gallery-toolbar { border-top: 0; }
[data-design="campo"] .filter-buttons button[aria-pressed="true"] { background: #dce1cd; color: var(--ink); }
[data-design="campo"] .filter-buttons button[aria-pressed="true"] span { color: var(--ink); }
[data-design="campo"] .photo-card { border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
[data-design="campo"] .photo-number { color: var(--accent); }
[data-design="campo"] .photo-title { font-family: var(--serif); font-size: 1.15rem; }
[data-design="campo"] .photo-card figcaption { padding-top: 1rem; }
[data-design="campo"] .photo-card figcaption > div { align-items: baseline; }
[data-design="campo"] .photo-category { margin-top: .3rem; }
[data-design="campo"] .story-invitation { background: var(--ink); color: var(--paper); margin-left: 0; margin-right: 0; padding: 3rem var(--gutter); border: 0; }
[data-design="campo"] .story-invitation > div > p:not(.eyebrow), [data-design="campo"] .story-invitation .provisional-label { color: #d1d6c7; }
[data-design="campo"] .story-invitation .text-link { border-color: #7a8a79; }

.page-intro { padding: 3.5rem var(--gutter) 2rem; display: grid; gap: 1.5rem; }
.page-intro > .eyebrow { color: var(--muted); }
.page-intro h1 em { color: var(--accent); }
.intro-aside { max-width: 43ch; font-size: .9rem; line-height: 1.9; color: var(--muted); }
.editorial-note { font-size: .75rem; line-height: 1.8; color: var(--muted); padding-left: 1rem; border-left: 1px solid var(--line); margin-top: 1.5rem; }
.species-grid { display: grid; gap: 2.5rem 1.75rem; }
.species-card { display: block; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.species-image { overflow: hidden; }
.species-image img { width: 100%; transition: transform 500ms ease; }
.species-card-heading { display: flex; justify-content: space-between; margin-top: 1rem; }
.species-card-heading .eyebrow { color: var(--muted); font-size: .55rem; }
.species-card h3 { margin-top: .6rem; }
.species-card > p { margin-top: .5rem; font-size: .62rem; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; font-size: .7rem; min-height: 44px; }
.back-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.viewer-open { overflow: hidden; }
.field-viewer { --pswp-bg: var(--paper); --pswp-placeholder-bg: var(--wash); --pswp-icon-color: var(--ink); --pswp-icon-color-secondary: var(--paper); --pswp-icon-stroke-width: 0; --pswp-error-text-color: var(--ink); color: var(--ink); touch-action: auto; }
.field-viewer .pswp__scroll-wrap { touch-action: none; }
.field-viewer .pswp__top-bar { height: 52px; padding: 0 .5rem; background: var(--paper); }
.field-viewer .pswp__counter { margin: 17px auto 0 1rem; color: var(--muted); text-shadow: none; font-size: .75rem; }
.field-viewer .pswp__button { color: var(--ink); width: 44px; height: 44px; margin-top: 4px; opacity: 1; }
.field-viewer .pswp__button:hover { background: var(--wash); }
.field-viewer .pswp__button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.field-viewer .pswp__icn { left: 6px; top: 6px; }
.field-viewer .pswp__button--fullscreen .pswp__icn { color: var(--ink); }
.field-viewer .pswp__button--arrow { display: block; position: absolute; top: 50%; margin-top: -22px; visibility: visible; background: color-mix(in srgb, var(--paper) 85%, transparent); }
.field-viewer.pswp--one-slide .pswp__button--arrow { display: none; }
.field-viewer .pswp__button--arrow--prev { left: .4rem; }
.field-viewer .pswp__button--arrow--next { right: .4rem; }
.field-viewer .pswp__button--arrow .pswp__icn { width: 32px; height: 32px; top: 6px; margin-top: 0; }
.field-viewer .pswp__photo-caption { position: absolute; bottom: 0; left: 0; right: 0; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem clamp(1rem, 2vw, 2rem) .65rem; background: var(--paper); }
.viewer-caption-copy { min-width: 0; }
.viewer-caption-copy h1 { font-size: 1.3rem; line-height: 1.15; letter-spacing: -.025em; }
.viewer-caption-copy p { margin-top: .25rem; font-size: .65rem; line-height: 1.5; color: var(--muted); }
.field-viewer--public .viewer-caption-copy p, .field-viewer--public .details-section p { overflow-wrap: anywhere; white-space: pre-wrap; }
.viewer-info-button { flex-shrink: 0; min-height: 44px; padding: .4rem .2rem; border-bottom: 1px solid var(--line); font-size: .75rem; }
.viewer-info-button:hover { border-color: var(--ink); }
.viewer-info-button[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.field-viewer .pswp__photo-details { position: absolute; right: 0; top: 52px; bottom: 0; width: 360px; display: flex; flex-direction: column; background: var(--paper); border-left: 1px solid var(--line); touch-action: pan-y; }
.field-viewer .pswp__photo-details[hidden] { display: none; }
.details-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.5rem; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.details-header h2 { font-size: 1.65rem; }
.details-close { min-width: 44px; min-height: 44px; font-size: 1.7rem; }
.details-close:hover { background: var(--wash); }
.details-body { overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem; }
.details-photo-title { font-size: 2rem; line-height: 1.1; }
.details-section { margin-top: 2rem; }
.details-section > .eyebrow { color: var(--muted); margin-bottom: .8rem; }
.details-section p { font-size: .9rem; line-height: 1.85; }
.camera-settings { margin: 0; }
.camera-settings > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .75rem; line-height: 1.6; }
.camera-settings dt { color: var(--muted); max-width: 45%; }
.camera-settings dd { margin: 0; text-align: right; max-width: 55%; }
.viewer-error { position: absolute; top: 58px; left: 10%; right: 10%; padding: 1rem; background: var(--paper); border: 1px solid var(--accent); font-size: .85rem; line-height: 1.6; }
.viewer-public-status { position: absolute; width: min(80vw, 28rem); top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; font-size: .85rem; line-height: 1.7; }
.species-detail { padding-top: 1.5rem; }
.species-feature { display: grid; gap: 2rem; padding-top: 2rem; }
.public-species-feature { grid-template-columns: 1fr; }
.public-species-feature[hidden], [data-public-species-related][hidden] { display: none; }
.species-feature h1 { font-size: clamp(3.5rem, 5.5vw, 6rem); margin: 1rem 0; max-width: 11ch; }
.species-feature-image { align-self: start; }
.species-feature-image img { width: 100%; }
.identification-status { display: inline-flex; align-items: center; padding: .5rem .6rem; background: var(--wash); font-size: .65rem; }
.species-observation { font-family: var(--serif); font-size: 1.5rem; line-height: 1.45; max-width: 38ch; margin-top: 1.6rem; }
.species-facts { margin: 1.5rem 0 0; font-size: .7rem; }
.species-facts div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: .8rem 0; }
.species-facts [hidden] { display: none; }
.species-facts dt { color: var(--muted); }
.species-facts dd { margin: 0; text-align: right; }
.species-writing { display: grid; gap: 1.5rem; padding: 3rem 0; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.species-writing p:not(.eyebrow) { max-width: 56ch; margin-top: 1rem; font-size: .85rem; line-height: 1.9; color: var(--muted); }
.stories-list { padding-top: 2rem; }
.story-card { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.story-card-copy { align-self: center; }
.story-card h2 { font-size: clamp(2.8rem, 4.5vw, 5rem); margin-top: 1rem; }
.story-card-copy > p:not(.eyebrow) { font-size: .9rem; line-height: 1.8; color: var(--muted); margin-top: 1rem; max-width: 35ch; }
.story-card .text-link { margin-top: 2rem; }
.story-detail { padding-top: 1.5rem; }
.story-detail > .back-link { margin-left: var(--gutter); }
.story-header { padding: 2.5rem var(--gutter) 3rem; }
.story-header h1 { margin: 1.3rem 0 1rem; }
.story-header h1 em { color: var(--accent); }
.story-header > p:not(.eyebrow) { font-family: var(--serif); font-size: 1.4rem; color: var(--muted); }
.story-byline { display: flex; gap: .7rem; margin-top: 1.5rem; color: var(--muted); font-size: .65rem; }
.story-cover { padding: 0 var(--gutter); }
.story-cover img { width: 100%; }
.story-body { max-width: 660px; margin: 3rem auto 1rem; padding: 0 var(--gutter); }
.story-body h2 { margin-top: .8rem; }
.story-body > p:not(.editorial-note) { margin-top: 1.5rem; font-family: var(--serif); font-size: 1.4rem; line-height: 1.6; }
.about-layout { display: grid; gap: 2.5rem; padding: 3.5rem var(--gutter); }
.about-title h1 { margin-top: 1.5rem; font-size: clamp(5rem, 10vw, 10rem); }
.about-title h1 em { color: var(--accent); }
.about-title > p:last-child { color: var(--muted); font-size: .75rem; line-height: 1.8; margin-top: .6rem; }
.about-copy { max-width: 56ch; }
.about-copy > p { font-size: .92rem; line-height: 1.95; color: var(--muted); margin-top: 1.5rem; }
.about-copy .about-lead { font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1.3; color: var(--ink); margin-top: 0; }
.about-copy h2 { margin-top: 2.5rem; font-size: 2.2rem; }
.about-copy .editorial-note { font-size: .7rem; }
.about-copy .text-link { margin-top: 2rem; }
.about-photo { padding: 0 var(--gutter); }
.about-photo img { max-height: 70vh; width: 100%; object-fit: contain; background: var(--wash); }
.not-found { max-width: 960px; padding: 3rem var(--gutter); }
.not-found h1 { margin: 1rem 0 2rem; }
.not-found > p { font-size: .95rem; line-height: 1.9; max-width: 65ch; color: var(--muted); }
noscript { display: block; padding: 2rem var(--gutter); }

@media (hover: hover) {
  .photo-image:hover img, .species-card:hover img { transform: scale(1.025); }
}

@media (min-width: 640px) {
  .photo-grid, .species-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-heading .collection-note { max-width: 27ch; text-align: right; }
  .gallery-toolbar { flex-direction: row; align-items: center; }
  .gallery-result-line > span { max-width: none; }
  .story-invitation { grid-template-columns: 1fr 1fr; gap: 4rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .page-intro { padding-top: 4.5rem; }
}

@media (min-width: 900px) {
  .field-viewer--info-open .pswp__photo-caption { right: 360px; }
  .field-viewer--info-open .pswp__button--arrow--next { right: 366px; }
  .site-header { grid-template-columns: 1fr auto 1fr; padding-top: 2rem; padding-bottom: 2rem; gap: 2rem; }
  .main-nav { grid-row: 1; grid-column: 2; gap: 2rem; }
  .language { grid-column: 3; }
  .hero { grid-template-columns: .85fr 1.45fr; align-items: center; gap: 2rem; padding-top: 3rem; }
  .hero-copy h1 { font-size: clamp(3.75rem, 5.9vw, 6.3rem); }
  .hero-description { font-size: .82rem; }
  .hero-signature { display: block; margin-top: 3rem; }
  .hero-figure { margin-left: -1.5rem; }
  .hero-copy { position: relative; z-index: 1; }
  .collection { padding-top: 5rem; }
  .photo-grid { column-gap: 2.5rem; row-gap: 3rem; }
  .photo-grid:not(.related-photos) .photo-card:nth-child(6n + 2) { padding-top: 4rem; }
  .photo-grid:not(.related-photos) .photo-card:nth-child(6n + 3) { width: 83%; margin-left: auto; }
  .photo-grid:not(.related-photos) .photo-card:nth-child(6n + 4) { width: 90%; padding-top: 2rem; }
  .photo-card figcaption { padding-top: 1rem; }
  .photo-title { font-size: .75rem; }
  .collection-end { margin-top: 5rem; }
  .story-invitation { margin-top: 4rem; }
  .footer-top { padding: 3rem 0; }
  .footer-top p { margin-left: 8rem; }
  [data-design="campo"] .hero { grid-template-columns: 1fr 1.3fr; align-items: start; padding-top: 2.5rem; gap: 3rem; }
  [data-design="campo"] .hero-copy { padding-top: 1.8rem; }
  [data-design="campo"] .hero-copy h1 { font-size: clamp(4rem, 6.5vw, 7rem); }
  [data-design="campo"] .hero-figure { margin: 0 0 1.5rem; }
  [data-design="campo"] .field-photo-note { display: block; position: absolute; bottom: -2rem; right: .5rem; font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--accent); }
  [data-design="campo"] .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.75rem; }
  [data-design="campo"] .photo-grid:not(.related-photos) .photo-card { width: 100%; margin: 0; padding-top: 0; }
  [data-design="campo"] .photo-card figcaption { flex-direction: column; gap: .1rem; }
  [data-design="campo"] .photo-category { margin-left: 1.5rem; }
  [data-design="campo"] .related-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-intro { grid-template-columns: 1.4fr 1fr; gap: 1.5rem 4rem; padding-bottom: 3rem; }
  .page-intro > .eyebrow { grid-column: 1 / -1; }
  .page-intro h1 { font-size: clamp(4.5rem, 6.5vw, 7rem); }
  .intro-aside { align-self: end; }
  .species-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; }
  .species-feature { grid-template-columns: 1fr 1.25fr; align-items: center; gap: 4rem; }
  .species-writing { grid-template-columns: 1fr 2fr; padding: 4rem 0; margin-top: 4rem; }
  .story-card { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
  .story-header { padding-top: 3.5rem; padding-bottom: 4rem; }
  .story-body { padding: 0; margin-top: 4rem; margin-bottom: 2rem; }
  .about-layout { grid-template-columns: 1fr 1.15fr; gap: 5rem; padding-top: 5rem; padding-bottom: 5rem; }
  .about-copy { padding-top: 2.2rem; }
}

@media (max-width: 639px) {
  .field-viewer .pswp__photo-caption { min-height: 80px; padding-bottom: max(.65rem, env(safe-area-inset-bottom)); }
  .viewer-caption-copy h1 { font-size: 1.15rem; }
  .viewer-info-button { font-size: .7rem; }
  .desktop-only { display: none; }
  .hero-copy h1 { font-size: clamp(3.5rem, 12vw, 5.5rem); }
  .hero-figure { grid-row: 1; }
  .hero-copy { grid-row: 2; }
  .site-header { padding-top: 1.5rem; padding-bottom: .75rem; }
  .hero-description { max-width: 34ch; }
  .collection-note { font-size: .6rem; }
  .species-filter { justify-content: space-between; }
  .species-filter select { max-width: 77%; }
  .footer-top .text-link { width: 100%; justify-content: space-between; }
  .footer-bottom { flex-direction: column; }
  .about-photo figcaption { flex-direction: column; gap: .3rem; }
}

@media (max-width: 899px) {
  .field-viewer .pswp__photo-details { top: auto; bottom: 0; width: 100%; height: min(75dvh, 640px); max-height: calc(100dvh - 52px); border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
