/* ================================ SCIENCE ================================
   Why Osmia works (the essay, editorially locked 2026-09-21) reads as Why and My story do: the
   opening as words, then reading movements at the document measure, all of it styles.css's. What
   is the page's own is beneath the essay - THE REFERENCE LIBRARY: tools/science.py's four subject
   groups of research notes as native disclosures, and the topic index that opens them (science.js
   mirrors their state and travels to a note). The continuity composition of 2026-09-13 retired
   with the essay; its rules went with it. */

/* THE PRINTS (2026-10-02): the founder's two photographs in the essay - the memory garden under the head,
   the room of threads in Patterns - as the site's print (one soft corner, a faint shadow, its own colours)
   at the column's width, at their own proportions */
.sci-pic { margin: 36px 0 0; padding: 0; border-radius: var(--radius-pic); box-shadow: var(--shadow-pic); }
.sci-pic img { display: block; width: 100%; height: auto; border-radius: inherit; }
.sci-pic--open { margin-top: 32px; }
.mv .col > .sci-pic + p { margin-top: 36px; }
@media (max-width: 880px) { .sci-pic { margin-top: 28px; } .mv .col > .sci-pic + p { margin-top: 28px; } }

/* the jump targets: an anchor stands a header's height above its target, so a link (native, or
   science.js's) lands with the control in view under the fixed nav */
.jump { position: absolute; top: -84px; left: 0; width: 0; height: 0; pointer-events: none; }
.motion.sdt .mv .col > .jump { animation: none; }

/* --- the library beneath the essay: the index first, then the four groups on their hairlines --- */
.mv--library .col--wide { max-width: 52rem; }
.library { margin-top: 28px; }
.srcwrap { position: relative; } /* each disclosure carries its own jump anchor */
.library .srcwrap + .srcwrap .src__sum { border-top: 0; }

/* ============================ THE RESEARCH NOTES ============================ */
/* one disclosure per subject: a plain control on a hairline, a chevron that turns; the notes open
   inline beneath it in the same column, single-column on a phone. Native <details>: it works without
   JavaScript, the keyboard operates it, and closing it leaves focus where it was. */
.src, .topics { margin: 0; }
.src__sum, .topics__sum { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; padding: 16px 0; border-top: 1px solid var(--rule-strong); font: 500 var(--fs-body)/1.35 var(--sans); color: var(--ink); min-height: 48px; }
.src__sum::-webkit-details-marker, .topics__sum::-webkit-details-marker { display: none; }
@media (hover: hover) { .src__sum:hover, .topics__sum:hover { border-color: var(--ink); } }
.src__sum, .topics__sum { transition: border-color var(--dur-short) var(--ease-out); }
.src__sum:focus-visible, .topics__sum:focus-visible { outline: 2px solid var(--honey-deep); outline-offset: 4px; border-radius: 2px; }
.src__sum > span, .topics__sum > span { flex: 1; }
.src__sum::after, .topics__sum::after { content: ""; flex: none; width: 14px; height: 14px; background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform var(--dur-short) var(--ease-move); }
.src[open] > .src__sum::after, .topics[open] > .topics__sum::after { transform: rotate(180deg); }
/* the notes settle in as the subject opens (a native <details> shows them at once; this is the one beat that softens it) */
@keyframes notesIn { from { opacity: 0; } to { opacity: 1; } }
.motion .src[open] > .src__body, .motion .topics[open] > :not(summary) { animation: notesIn var(--dur-short) var(--ease-out); }
.src__body { padding: 0 0 12px; border-bottom: 1px solid var(--rule-strong); }
.note { padding: 20px 0 22px; border-top: 1px solid var(--rule-soft); }
.note:first-child { border-top: 0; padding-top: 10px; }
.note__h { font: var(--w-medium) var(--fs-h3)/1.3 var(--sans); letter-spacing: -.008em; margin: 0; }
.note__dl { margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 10rem minmax(0, 1fr); column-gap: 24px; row-gap: 10px; max-width: 44rem; }
.note__dl dt { font: 500 var(--fs-small)/1.5 var(--sans); color: var(--ink-3); }
.note__dl dd { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.note__src a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-ink); padding-bottom: 2px; }
.note__src a { transition: border-color var(--dur-short) var(--ease-out); }
.note__src a:focus-visible, .note__src a:active { border-bottom-color: var(--ink); }
@media (hover: hover) { .note__src a:hover { border-bottom-color: var(--ink); } }
.note__src a:focus-visible { outline: 2px solid var(--honey-deep); outline-offset: 3px; border-radius: 2px; }
.note__sep { color: var(--ink-3); margin: 0 4px; }
dt.note__basis { color: var(--ink-4); }
dd.note__basis { color: var(--ink-3); font-size: var(--fs-fine); }
/* the small illustrative example inside "Context across time": a quiet sheet, visibly not a screen */
.ex { margin: 14px 0 18px; max-width: 44rem; }
.ex__tag { margin: 0 0 8px; font: 500 var(--fs-caption)/1.4 var(--sans); letter-spacing: .02em; color: var(--ink-3); }
.ex__dl { margin: 0; padding: 14px 18px 16px; border: 1px solid var(--rule-soft); border-radius: 2px; background: color-mix(in oklab, var(--cream) 78%, transparent); display: grid; gap: 10px; }
.ex__row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); column-gap: 18px; }
.ex__row dt { font: 500 var(--fs-caption)/1.5 var(--sans); color: var(--ink-3); }
.ex__row dd { margin: 0; font: 400 var(--fs-body)/1.45 var(--sans); letter-spacing: -.004em; color: var(--ink); }
.ex__row:first-child dd { font-size: 19px; }
.ex__cap { margin-top: 10px; font: 500 var(--fs-small)/1.45 var(--sans); color: var(--ink); }
/* the index: "Explore research" reveals the four subjects */
.topics { max-width: 52rem; }
.topics__list { list-style: none; padding: 6px 0 4px; margin: 0; }
.topics__a { display: block; padding: 11px 0; text-decoration: none; color: var(--ink); font: 400 var(--fs-body)/1.35 var(--sans); border-bottom: 1px solid var(--rule-soft); min-height: 44px; }
.topics__a span { border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; transition: border-color var(--dur-short) var(--ease-out); }
.topics__a:focus-visible span, .topics__a:active span { border-bottom-color: var(--ink); }
@media (hover: hover) { .topics__a:hover span { border-bottom-color: var(--ink); } }
.topics__a:focus-visible { outline: 2px solid var(--honey-deep); outline-offset: 2px; border-radius: 2px; }
/* a note the index has just opened: a brief honey hairline on its control */
.src.is-target > .src__sum { border-top-color: var(--honey-deep); }
.src__sum:active, .topics__sum:active { border-top-color: var(--ink); }
.src__sum:active::after, .topics__sum:active::after { background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .src__sum::after, .topics__sum::after { transition: none; } }

/* ================================ PHONES ================================ */
@media (max-width: 880px) {
  .jump { top: -72px; }
  .mv--library .col--wide { max-width: 34rem; }
  .library { margin-top: 24px; }
  .note__dl { grid-template-columns: 1fr; row-gap: 4px; }
  .note__dl dd { margin-bottom: 8px; }
  .note__dl dd:last-child { margin-bottom: 0; }
  .ex__row { grid-template-columns: 1fr; row-gap: 2px; }
  .src__sum, .topics__sum { padding: 14px 0; font-size: var(--fs-link); }
  .topics__sum { font-size: var(--fs-small); }
}
@media (max-width: 400px) { .src__sum { font-size: var(--fs-fine); gap: 12px; } }
