/* Tawari — tawari.id
   Tokens mirror the app (utils/theme.ts): page ground, card cream, ink, forest green,
   amber. Chrome stays calmer than the art. Type: Gelasio (serif, headings + species
   names) and IBM Plex Mono (labels), the same two faces the app bundles; body copy
   uses the system sans, which on Android is Roboto — what most readers will see. */

@font-face { font-family: "Gelasio"; src: url("fonts/Gelasio-400.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("fonts/Gelasio-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #F7F6F2;
  --surface: #FDFAF4;
  --card: #FDF2DB;
  --card-edge: #E8DFC9;
  --line: #E0D9CC;
  --ink: #11110B;
  --ink-2: #6B6556;
  --ink-3: #756E5A; /* was #A09880 (2.6:1); now at least 4.5:1 on ground, surface and card */
  --forest: #3D5A3E;
  --forest-deep: #2C4231;
  --green: #38B68B;
  --amber: #E8AB49;
  --amber-deep: #C17D2E;
  --amber-soft: #F5E6CC;
  --dark: #3A3628;
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1040px;
  --r: 14px;
}

* { box-sizing: border-box; }
/* author display rules (.find-state is flex) must not beat the hidden attribute */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* smooth only once the reader has clicked something on the page: a page opened at a #section
   (the Learn page's «Únete a la lista» opens ./#lista) must land there at once. With smooth on
   the whole page, the browser's load-time jump was a slow glide that the page's own loading
   cut short, and the reader was left at the top (seen 16 Oct 2026, live). */
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
/* the header is a 61px sticky bar; without this an anchored section parks its
   own eyebrow behind it */
main [id], #lista, #waitlist { scroll-margin-top: 76px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
em { font-style: italic; }
p { margin: 0 0 1em; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .9em; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 40em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sci { font-family: var(--serif); font-style: italic; }

/* header */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: rgba(247,246,242,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); text-decoration: none; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 10px; }
.wordmark img { width: 28px; height: 28px; border-radius: 6px; }
.nav { display: none; gap: 22px; font-family: var(--mono); font-size: .8rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.bar-end { display: flex; align-items: center; gap: 8px; }
.join { font-family: var(--mono); font-size: .8rem; text-decoration: none; color: #fff; background: var(--forest); border: 1px solid var(--forest); border-radius: 999px; padding: 6px 12px; }
.join:hover { background: var(--forest-deep); }
.nav a:hover { color: var(--ink); }
.lang a { font-family: var(--mono); font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; color: var(--ink); background: var(--surface); }
@media (min-width: 820px) { .nav { display: flex; } }

/* hero */
.hero { padding: 44px 0 20px; }
.hero .grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .hero .grid { grid-template-columns: 1.15fr .85fr; gap: 48px; } .hero { padding: 64px 0 24px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--forest-deep); background: var(--amber-soft); border: 1px solid var(--card-edge); border-radius: 999px; padding: 6px 12px; margin-bottom: 20px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber-deep); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 18px; }
.btn { display: inline-block; font-family: var(--mono); font-weight: 600; font-size: .9rem; padding: 13px 22px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-deep); color: #fff; }
.btn-ghost { color: var(--forest); border-color: var(--line); background: var(--surface); }
.counts { font-family: var(--mono); font-size: .8rem; color: var(--ink-2); line-height: 1.7; }
.counts b { color: var(--ink); font-weight: 600; }

/* phone frames */
.phone { margin: 0 auto; width: min(100%, 340px); }
.phone figure { margin: 0; }
.phone img { width: 100%; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(17,17,11,.06), 0 18px 44px rgba(17,17,11,.10); background: var(--surface); }
.phone figcaption, .shot figcaption { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); margin-top: 10px; line-height: 1.5; text-align: center; }

/* sections */
section { padding: 52px 0; }
section + section { border-top: 1px solid var(--line); }
@media (min-width: 820px) { section { padding: 72px 0; } }
.section-head { max-width: 42em; margin-bottom: 28px; }

/* steps */
.step { display: grid; gap: 20px; align-items: start; }
@media (min-width: 820px) { .step { grid-template-columns: 1fr 340px; gap: 44px; } .step:nth-child(even) { grid-template-columns: 340px 1fr; } .step:nth-child(even) .txt { order: 2; } }
.step .n { font-family: var(--mono); font-size: .78rem; color: var(--amber-deep); letter-spacing: .08em; margin-bottom: 10px; display: block; }
.step h3 { font-size: 1.6rem; }
.step ul { padding-left: 1.1em; color: var(--ink-2); margin: 0 0 1em; }
.step li { margin-bottom: .35em; }
.shot { margin: 0; width: min(100%, 340px); justify-self: center; }
.shot img { width: 100%; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(17,17,11,.08); background: var(--surface); }
.shot.missing { aspect-ratio: 9/19.5; display: grid; place-items: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 24px; color: var(--ink-3); font-family: var(--mono); font-size: .78rem; text-align: center; padding: 20px; }

/* spine */
.spine { display: grid; gap: 12px; margin: 20px 0 8px; }
@media (min-width: 720px) { .spine { grid-template-columns: repeat(3, 1fr); } }
.slot { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--r); padding: 16px; }
.slot .lbl { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); margin-bottom: 8px; }
.slot p { margin: 0; color: var(--ink); font-size: 1rem; }
.slot small { display: block; margin-top: 8px; font-family: var(--mono); font-size: .7rem; color: var(--ink-3); }

/* two-col prose */
.cols { display: grid; gap: 24px; }
@media (min-width: 820px) { .cols { grid-template-columns: 1fr 1fr; gap: 48px; } }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.list-plain li:first-child { border-top: 0; }
.list-plain b { color: var(--ink); font-weight: 600; }

/* waitlist */
.wait { background: var(--card); border: 1px solid var(--card-edge); border-radius: 20px; padding: 28px 22px; }
@media (min-width: 720px) { .wait { padding: 40px; } }
.field-label { display: block; margin: 18px 0 0; font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }
.form-row { display: grid; gap: 12px; margin: 18px 0 12px; }
.field-label + .form-row { margin-top: 6px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 180px auto; } }
.form-row input, .form-row select { font: inherit; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.form-row input:focus, .form-row select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form-row button { font: inherit; font-family: var(--mono); font-weight: 600; padding: 13px 22px; border-radius: 12px; border: 0; background: var(--forest); color: #fff; cursor: pointer; }
.form-row button:disabled { opacity: .6; cursor: default; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.consent input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-family: var(--mono); font-size: .82rem; min-height: 1.4em; margin-top: 12px; }
.form-msg.ok { color: var(--forest); }
.form-msg.err { color: #9A5F1C; } /* 4.7:1 on the card; --amber-deep is 3.0:1 */

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 20px 44px; color: var(--ink-2); font-size: .9rem; }
.foot .wrap { display: grid; gap: 10px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: .78rem; }

/* document pages (privacy) */
body.doc { background: var(--surface); }
.prose { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: .6em; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
/* a table too wide for a phone scrolls inside its own box, never the page */
.prose .tbl { overflow-x: auto; margin: 1em 0; }
.prose .tbl table { margin: 0; }
.prose code { overflow-wrap: anywhere; }
.prose blockquote { margin: 1em 0; padding: 12px 16px; background: var(--amber-soft); border-left: 3px solid var(--amber-deep); border-radius: 6px; }
.prose .meta { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); margin-top: 3em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ─── Field-find explorer ──────────────────────────────────────────────────
   The three playable places, browsable without installing anything. Thumbnails
   are ours (assets/finds/), resized from openly-licensed originals; the credit
   travels with each one into the detail dialog, because CC BY requires it. */
.finds { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
@media (min-width: 720px) { .finds { padding: 24px; } }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; font: inherit; font-family: var(--mono); font-size: .82rem; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--ground); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tab[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.tab .n { opacity: .65; margin-left: 6px; }
.find-note { font-size: .95rem; color: var(--ink-2); margin: 14px 0 0; }
.find-note b { color: var(--ink); font-weight: 600; }
.controls { display: grid; gap: 10px; margin: 14px 0 12px; }
@media (min-width: 640px) { .controls { grid-template-columns: 1fr auto; align-items: center; } }
.controls input { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.controls input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.count { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.chip { font: inherit; font-family: var(--mono); font-size: .74rem; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--ground); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--amber-deep); color: var(--forest-deep); }
.chip .n { opacity: .55; margin-left: 4px; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px; }
.card { font: inherit; text-align: left; padding: 0; overflow: hidden; background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--r); cursor: pointer; display: flex; flex-direction: column; }
.card:hover { border-color: var(--amber-deep); }
.card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.card .thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--ground); }
.card .noimg { width: 100%; aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; padding: 10px; background: var(--surface); border-bottom: 1px dashed var(--line); font-family: var(--mono); font-size: .64rem; line-height: 1.35; color: var(--ink-3); }
.cbody { padding: 9px 10px 11px; }
.cname { font-size: .88rem; line-height: 1.25; }
.csci { font-family: var(--serif); font-style: italic; font-size: .76rem; color: var(--ink-3); margin-top: 2px; }
.csci.roman, .dsci.roman { font-family: inherit; font-style: normal; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.b { font-family: var(--mono); font-size: .6rem; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; background: var(--ground); border: 1px solid var(--line); color: var(--ink-2); }
.b.end { background: var(--amber-soft); border-color: var(--amber-deep); color: var(--forest-deep); }
.b.thr { background: #F6E3DC; border-color: #B5552F; color: #8C3D1E; }
.empty { padding: 28px 8px; text-align: center; color: var(--ink-3); font-family: var(--mono); font-size: .8rem; }
.more { display: block; margin: 16px auto 0; font: inherit; font-family: var(--mono); font-size: .82rem; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--ground); color: var(--forest); cursor: pointer; }

/* species dialog */
dialog.sp { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--card-edge); border-radius: 18px; background: var(--card); color: var(--ink); }
dialog.sp::backdrop { background: rgba(17,17,11,.45); }
dialog.sp img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 17px 17px 0 0; display: block; }
.dbody { padding: 18px 20px 20px; }
.dname { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.dsci { font-family: var(--serif); font-style: italic; color: var(--ink-2); margin-top: 3px; }
.dcredit { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }
.dclose { font: inherit; font-family: var(--mono); font-size: .82rem; margin-top: 16px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); cursor: pointer; width: 100%; }

/* ─── Footer collage (WS-D142, option A) ───────────────────────────────────
   The canvas's collage, baked into rasters from the app's own illustrated taxa
   (final-icons/), so a visitor fetches one image. Under 480 px: the phone vignette
   the canvas drew for 375, drawn 60 px wider each side and cropped to centre. From
   480 px: the 1280 × 280 band, cropped to centre below 1280 and scaled above it
   (capped at 420 px tall). Decorative: the whole band is aria-hidden, alt="".
   The specimen label is HTML, not pixels, so it stays sharp and can speak English
   on /en/. --u is one canvas pixel: 1px up to 1280, then it grows with the band. */
.collage { position: relative; overflow: hidden; background: var(--card); border-top: 1px solid var(--line); container-type: inline-size; --u: 1px; }
@supports (width: 1cqw) { .collage { --u: max(1px, .078125cqw); } }
.collage picture, .collage img { display: block; }
.collage img { width: 100%; height: 230px; object-fit: cover; object-position: 50% 50%; }
.collage .tag { display: none; }
@media (min-width: 480px) {
  .collage img { height: 280px; height: clamp(280px, 21.875cqw, 420px); }
  .collage .tag { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(290 * var(--u)); height: calc(156 * var(--u)); padding: calc(7 * var(--u)); background: var(--card); border: calc(1.5 * var(--u)) solid var(--ink); border-radius: calc(5 * var(--u)); box-shadow: 0 calc(2 * var(--u)) 0 rgba(17, 17, 11, .12); }
  .collage .tag .in { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(7 * var(--u)) 0; border-top: calc(1 * var(--u)) solid var(--ink); border-bottom: calc(1 * var(--u)) solid var(--ink); }
  .collage .tag .no, .collage .tag .place { font-family: var(--mono); font-size: calc(11 * var(--u)); line-height: 1.55; letter-spacing: .08em; color: var(--dark); }
  .collage .tag .place { letter-spacing: .06em; }
  .collage .tag .mid { display: flex; flex-direction: column; align-items: center; gap: calc(7 * var(--u)); }
  .collage .tag .wm { font-family: var(--serif); font-weight: 600; font-size: calc(38 * var(--u)); line-height: 1; letter-spacing: .05em; color: var(--ink); }
  .collage .tag .rule { width: calc(200 * var(--u)); height: calc(1 * var(--u)); background: var(--ink); }
  .collage .tag .sub { font-family: var(--serif); font-style: italic; font-size: calc(16 * var(--u)); line-height: 1.2; color: var(--ink); }
}

/* one species beside each section eyebrow: 28 px, unlabelled, alt="" */
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow .eb { width: 28px; height: 28px; flex-shrink: 0; }

/* explorer loading and empty states: an icon only where no photo can be */
.find-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px 8px; }
.find-state img { width: 60px; height: 60px; }
.find-state p { margin: 0; font-family: var(--mono); font-size: .8rem; color: var(--ink-2); }
.find-state .hint { font-family: var(--sans); font-size: .9rem; line-height: 1.5; max-width: 260px; }
@keyframes tw-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.find-state img.hover { animation: tw-hover 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .find-state img.hover { animation: none; } }

/* the band sits directly on the footer: one line above it, none below */
.collage + .foot { border-top: 0; }

/* ─── 13 Oct 2026 revision (founder notes on WP-85) ────────────────────────
   Less text, more to look at: the Field-finds have their own page (gincanas.html),
   the home page shows three places and one species' web, the section icons that read
   as bullets are gone, and the page moves a little: cross-page view transitions, a
   rise as sections scroll in (transform and a light fade, never hidden at rest), and
   hover lifts. All of it stops under prefers-reduced-motion. */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* the nav on phones: a second row that scrolls sideways, never the page */
@media (max-width: 819px) {
  .bar { flex-wrap: wrap; row-gap: 8px; }
  .nav { display: flex; order: 3; width: 100%; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; }
  main [id], #lista, #waitlist { scroll-margin-top: 104px; }
}
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber-deep); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* the eyebrow carries words only now */
.eyebrow { display: block; }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--amber-deep); vertical-align: middle; margin-right: 10px; transform: translateY(-2px); }

/* hero */
.hero h1 em { color: var(--forest); }
/* D-SITE-H1 (20 Oct): the longer headline wraps balanced, never one word on a line */
.hero h1 { text-wrap: balance; font-size: clamp(1.9rem, 5.2vw, 3rem); }
.hero .sub { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.3; color: var(--ink); margin: -.1em 0 .7em; max-width: 26em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li { font-family: var(--mono); font-size: .76rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

/* three places, each a door into the Field-find page */
.places { display: grid; gap: 16px; }
@media (min-width: 720px) { .places { grid-template-columns: repeat(3, 1fr); } }
.place { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--card-edge); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.place:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(17,17,11,.12); border-color: var(--amber-deep); color: var(--ink); }
.place:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.place .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ground); }
.place .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.place:hover .ph img { transform: scale(1.04); }
.place .n { position: absolute; left: 12px; bottom: 12px; font-family: var(--mono); font-size: .74rem; color: #fff; background: rgba(17,17,11,.62); border-radius: 999px; padding: 5px 10px; }
.place .pb { padding: 14px 16px 16px; display: grid; gap: 4px; }
.place .pn { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.place .pw { font-size: .92rem; color: var(--ink-2); }
.credits { font-family: var(--mono); font-size: .68rem; line-height: 1.6; color: var(--ink-3); margin: 14px 0 0; }
.credits a { color: inherit; }
.after { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 22px; }
.after p { margin: 0; color: var(--ink-2); }

/* one species' web: what it eats on one side, who eats it on the other */
.web { display: grid; gap: 14px; align-items: center; }
@media (min-width: 860px) { .web { grid-template-columns: 1fr 1.15fr 1fr; gap: 22px; } }
.web .who { background: var(--card); border: 1px solid var(--card-edge); border-radius: 20px; overflow: hidden; }
@media (min-width: 860px) { .web .who { order: 2; } .web .eats { order: 1; } .web .eaten { order: 3; } }
.web .who .pics { display: grid; grid-template-columns: 1fr .58fr; gap: 3px; background: var(--card-edge); }
.web .who .pics img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.web .who .wb { padding: 14px 16px 16px; }
.web .who .wn { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.web .side { display: grid; gap: 10px; }
.web .side h3 { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); margin: 0 0 2px; font-weight: 600; }
.web .side h3 .arrow { color: var(--amber-deep); margin: 0 4px; }
.mate { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px 10px 10px; transition: transform .25s ease, border-color .25s ease; }
.mate:hover { transform: translateX(2px); border-color: var(--card-edge); }
.mate img { width: 64px; height: 64px; }
.mate .mn { font-family: var(--serif); font-size: 1.1rem; line-height: 1.2; }
.mate .ms { font-family: var(--serif); font-style: italic; font-size: .85rem; color: var(--ink-2); }
.mate .mw { font-size: .86rem; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }

/* the app in three steps, numbered, no icons */
.steps3 { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps3 li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.steps3 li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-soft); border: 1px solid var(--card-edge); font-family: var(--serif); font-size: 1.15rem; color: var(--forest-deep); }
.steps3 b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--ink); margin-bottom: 2px; }
.steps3 span { color: var(--ink-2); }
.aside { margin-top: 22px; color: var(--ink-2); font-size: .95rem; }

/* two short notes side by side */
.duo { display: grid; gap: 16px; }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; gap: 20px; } }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; }
.note h3 { font-size: 1.45rem; margin-bottom: .4em; }
.note p { color: var(--ink-2); margin-bottom: .6em; }

/* the beta in three lines, the sources folded */
.beta { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.beta li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.beta li:first-child { border-top: 0; padding-top: 0; }
.beta b { color: var(--ink); font-weight: 600; }
details.fold { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; }
details.fold summary { cursor: pointer; padding: 12px 0; font-family: var(--mono); font-size: .82rem; color: var(--forest); list-style: none; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "+"; float: right; color: var(--amber-deep); }
details.fold[open] summary::after { content: "–"; }
details.fold .list-plain { padding-bottom: 8px; }

/* a page's own short head (gincanas.html, aprender.html) */
.page-head { padding: 44px 0 8px; }
@media (min-width: 820px) { .page-head { padding: 64px 0 12px; } }
.page-head h1 { font-size: clamp(2rem, 5.4vw, 3.1rem); }
.page-head + section { border-top: 0; padding-top: 20px; }

/* motion (16 Oct 2026, founder: «nice transitions as you scroll»)
   assets/motion.js marks <html class="motion"> only when the reader allows motion and the
   browser can watch the scroll; it then adds .in to each .reveal as it comes into view, with
   --d, the block's turn among those arriving together. Every animation fills BACKWARDS only:
   while it waits it shows its first frame, and once done the element is back to its own
   style, so the hover lifts keep working and nothing stays hidden if an animation never runs. */
.bar { transition: box-shadow .3s ease, background-color .3s ease; }
.bar.lifted { box-shadow: 0 8px 24px -14px rgba(17,17,11,.28); background: rgba(247,246,242,.97); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes tw-in { from { opacity: 0; transform: translate3d(var(--fx, 0), var(--fy, 28px), 0) scale(var(--fs, 1)); } }
  @keyframes tw-settle { from { transform: scale(1.09); } }
  @keyframes tw-dash { from { width: 0; } }
  @keyframes tw-drift { to { transform: translateY(-28px); } }

  /* the hero arrives line by line on load (CSS only: it never waits for the script) */
  .hero .grid > div:first-child > * { animation: tw-in .8s cubic-bezier(.2,.7,.2,1) backwards; --fy: 18px; }
  .hero .grid > div:first-child > :nth-child(2) { animation-delay: .07s; }
  .hero .grid > div:first-child > :nth-child(3) { animation-delay: .14s; }
  .hero .grid > div:first-child > :nth-child(4) { animation-delay: .21s; }
  .hero .grid > div:first-child > :nth-child(5) { animation-delay: .28s; }
  .hero .grid > div:first-child > :nth-child(6) { animation-delay: .35s; }
  .hero .phone { animation: tw-in 1s cubic-bezier(.2,.7,.2,1) .25s backwards; --fy: 36px; --fs: .97; }
  .page-head .wrap > * { animation: tw-in .7s cubic-bezier(.2,.7,.2,1) backwards; --fy: 16px; }
  .page-head .wrap > :nth-child(2) { animation-delay: .08s; }
  .page-head .wrap > :nth-child(3) { animation-delay: .16s; }
  .lr-hero-text > * { animation: tw-in .8s cubic-bezier(.2,.7,.2,1) backwards; --fy: 18px; }
  .lr-hero-text > :nth-child(2) { animation-delay: .07s; }
  .lr-hero-text > :nth-child(3) { animation-delay: .14s; }
  .lr-hero-text > :nth-child(4) { animation-delay: .21s; }
  .lr-hero-text > :nth-child(5) { animation-delay: .28s; }
  /* the plate of drawings fills in one by one */
  .lr-plate img { animation: tw-in .6s cubic-bezier(.2,.7,.2,1) backwards; --fy: 14px; --fs: .86; }
  .lr-plate img:nth-child(1) { animation-delay: .20s; } .lr-plate img:nth-child(2) { animation-delay: .26s; }
  .lr-plate img:nth-child(3) { animation-delay: .32s; } .lr-plate img:nth-child(4) { animation-delay: .38s; }
  .lr-plate img:nth-child(5) { animation-delay: .44s; } .lr-plate img:nth-child(6) { animation-delay: .50s; }
  .lr-plate img:nth-child(7) { animation-delay: .56s; } .lr-plate img:nth-child(8) { animation-delay: .62s; }
  .lr-plate img:nth-child(9) { animation-delay: .68s; }
  /* where the browser can tie it to the scroll, the phone drifts up a little as the page moves */
  @supports (animation-timeline: scroll()) {
    .hero .phone figure { animation: tw-drift linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  }

  /* a block waits out of sight, then rises in its turn */
  html.motion .reveal:not(.in) { opacity: 0; }
  html.motion .reveal.in { animation: tw-in .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) backwards; }
  /* the amber dash before an eyebrow draws itself */
  html.motion .reveal.in .eyebrow::before { animation: tw-dash .6s ease calc(var(--d, 0ms) + .3s) backwards; }
  /* a place's photo settles as its card lands */
  html.motion .place.reveal.in .ph img { animation: tw-settle 1.6s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) backwards; }
  /* who eats whom: what it eats comes from the left, who eats it from the right, toward the species */
  @media (min-width: 860px) {
    html.motion .web .eats { --fx: -36px; --fy: 0; }
    html.motion .web .eaten { --fx: 36px; --fy: 0; }
    html.motion .web .who { --fs: .96; --fy: 18px; }
  }
  html.motion .side.in .mate { animation: tw-in .7s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0ms) + .25s) backwards; --fy: 12px; }
  html.motion .side.in .mate + .mate { animation-delay: calc(var(--d, 0ms) + .4s); }
  /* the three steps, one after another */
  html.motion .reveal.in .steps3 li { animation: tw-in .7s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0ms) + .2s) backwards; --fy: 14px; }
  html.motion .reveal.in .steps3 li:nth-child(2) { animation-delay: calc(var(--d, 0ms) + .34s); }
  html.motion .reveal.in .steps3 li:nth-child(3) { animation-delay: calc(var(--d, 0ms) + .48s); }
  html.motion .reveal.in .beta li { animation: tw-in .6s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0ms) + .2s) backwards; --fy: 10px; }
  html.motion .reveal.in .beta li:nth-child(2) { animation-delay: calc(var(--d, 0ms) + .3s); }
  html.motion .reveal.in .beta li:nth-child(3) { animation-delay: calc(var(--d, 0ms) + .4s); }
  /* the app screenshot rises a little behind its text */
  html.motion .shot.reveal { --fy: 44px; --fs: .97; }
  /* Learn: a kingdom's families come in a few at a time (--i from motion.js) */
  html.motion .lr-kingdom.in .lr-fam li { animation: tw-in .55s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0ms) + .15s + var(--i, 0) * 35ms) backwards; --fy: 10px; --fs: .92; }
  html.motion .lr-biomes > li.reveal.in .ph img { animation: tw-settle 1.6s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) backwards; }
  /* the Field-find grid deals its cards in whenever it draws them */
  .sp-grid > .deal { animation: tw-in .5s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 28ms) backwards; --fy: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .place, .place .ph img, .mate { transition: none; }
  .place:hover, .place:hover .ph img, .mate:hover { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
.prose .eyebrow::before { content: none; }

/* Field journal (home, #diario / #journal): an example page of My List, drawn as a
   notebook page. Notebook first on wide screens, so it does not repeat the #app layout. */
@media (min-width: 820px) {
  .step.journal-step { grid-template-columns: minmax(0, 420px) 1fr; }
  .step.journal-step .txt { order: 2; }
}
.journal { margin: 0; width: 100%; max-width: 440px; justify-self: center; background-color: var(--surface);
  border: 1px solid var(--card-edge); border-left: 6px solid var(--forest); border-radius: 6px 16px 16px 6px;
  box-shadow: 0 10px 30px rgba(17,17,11,.07); padding: 18px 18px 14px 20px; }
.jp-head { display: grid; gap: 2px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.jp-tag { justify-self: start; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-deep); background: var(--amber-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.jp-place { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--ink); }
.jp-meta { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); }
.jp-list { list-style: none; margin: 0; padding: 0; display: grid; }
.jp-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.jp-list li:last-child { border-bottom: 0; }
.jp-list img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.jp-name { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }
.jp-list .sci { display: block; font-family: var(--serif); font-style: italic; font-size: .88rem; color: var(--ink-2); }
.jp-note { margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.jp-list time { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); padding-top: 3px; }
.journal figcaption { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.soon { margin-top: 18px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.soon-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--forest-deep); border: 1px solid var(--forest); border-radius: 999px; padding: 1px 9px; }

/* 20 Oct 2026 (WP-258, the founder's 19 Oct wording): the three relationships of the spine
   are defined above the monarch's web (.spine/.slot), with one line leading into the example;
   the Mi Lista section carries one titled line under its lede; the road ahead tags its phases. */
#columna .spine, #spine .spine { margin: 0 0 8px; }
.lede.bridge { margin: 26px 0 18px; }
.step .item { color: var(--ink-2); margin: 0 0 1em; }
.step .item b { color: var(--ink); font-weight: 600; }
.beta .soon-tag { margin-right: 4px; }
