/* Self-hosted variable fonts (downloaded from Google Fonts, OFL-licensed) */
/* lora latin-ext */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/lora-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* lora latin */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/lora-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* inter latin-ext italic */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/inter-latin-ext-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* inter latin italic */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/inter-latin-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* "Parma" palette v3 (2026-07-13) — every color from a wall in
     images/design/. Paper is a pale shade of Giallo Parma (#FFFF3E full-
     strength as ::selection); accent is the Strada Cairoli wall (IMG_8620),
     ICC-corrected P3→sRGB and adopted unmodified (Luca picked the vivid
     corrected sample 2026-07-17; the pre-correction #99420E is retired);
     ink/muted are the Strada Petrarca wall (IMG_8797, H214 S~15%) darkened
     to text depth — same recipe as paper vs giallo; --blu is the Petrarca
     wall itself, adopted unmodified (the finder panel's thin blue line).
     All combinations WCAG AA-checked (muted ≥5.3:1 on every surface,
     ink ≥9.9:1, accent ≥6.9:1). */
  --paper: #FDFCF0;
  --ink: #363E4A;
  --muted: #5A6777;
  --blu: #A9B3BF; /* ICC-corrected (the HEICs are Display P3; sampled post-conversion) */
  --accent: #9D2C00;
  --hairline: #EFEAD5;
  --panel: #FCFAE9;
  --mat: #FAF6E3;
  /* One palazzo gold, three depths (Luca, 2026-07-13): the sundial facade
     samples ~#BFA16B (H39, IMG_8794); --giallo is that gold LIGHTENED to
     highlight strength (::selection, search marks, BibTeX flash — replaced
     the Luca-given neon #FFFF3E, "less in-your-face"), --oro the same gold
     DARKENED to text depth (the colophon's "colors"). Ink stays ≥6.5:1 on
     the highlight. */
  --giallo: #ECC479;
  --oro: #8F6F24;
  /* Typography (decided 2026-07-09): "hybrid editorial" — Lora for titles
     (replaced Fraunces, whose wonky letterforms bothered Luca; Newsreader is
     the agreed fallback if Lora disappoints), Inter Light for reading text;
     both self-hosted variable fonts in fonts/. */
  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

::selection { background: var(--giallo); color: var(--ink); }

/* Reserve the scrollbar gutter permanently: filtering/searching swings the
   page between short and long, and a scrollbar popping in/out mid-transition
   shifts every column sideways (the "wiggle"). */
html { scrollbar-gutter: stable; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 330;
  line-height: 1.6;
}

/* Emphasis convention (Luca's slides): light text, semibold for bold
   (bumped 560 -> 650 per Luca; Inter files carry wght 300-700) */
b, strong { font-weight: 650; }

h1, h3, .wordmark { font-family: var(--serif); font-optical-sizing: auto; }
.masthead nav a, .jumpnav a, .links, summary { font-weight: 430; }

.wrap { max-width: 920px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.masthead { display: flex; justify-content: space-between; align-items: baseline; padding-top: 26px; padding-bottom: 6px; }
.wordmark { font-size: 21px; color: var(--ink); letter-spacing: 0.01em; }
.wordmark:hover { text-decoration: none; }
.masthead nav a { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-left: 22px; }
.masthead nav a:hover { color: var(--accent); text-decoration: none; }

.hero { display: flex; gap: 36px; align-items: flex-start; padding: 24px 0 22px; }
.hero-text { flex: 1; }
h1 { font-size: 27px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 12px; }
.kicker { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.rule { width: 44px; height: 3px; background: var(--accent); margin-bottom: 14px; }
.bio { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 62ch; }
.hero-side { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; margin-top: 6px; }
.portrait { width: 220px; height: 220px; object-fit: cover; border-radius: 4px; border: 2px solid var(--ink); } /* 190 -> 220 (+15%), Luca 2026-07-16 */
.social-list { font-family: var(--sans); font-size: 13px; text-align: center; line-height: 1.9; margin: 0; }
.social-row { white-space: nowrap; } /* the four social links stay one row (Luca, 2026-07-16) */

.columns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; border-top: 1px solid var(--hairline); padding-top: 20px; }

h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

.latest ul { list-style: none; margin: 0; padding: 0; }
.more-news { margin-top: 2px; }
.more-news summary { font-family: var(--sans); font-size: 13px; color: var(--accent); cursor: pointer; }
.more-news ul { margin-top: 10px; }
.latest li { display: flex; gap: 12px; margin-bottom: 10px; font-size: 15px; line-height: 1.5; }
.date { font-family: var(--sans); font-size: 12px; color: var(--muted); min-width: 58px; padding-top: 3px; flex-shrink: 0; }

article { margin-bottom: 18px; }
h3 { font-size: 17px; font-weight: 500; line-height: 1.4; margin: 0 0 4px; }
h3 a { color: var(--ink); }
h3 a:hover { color: var(--accent); text-decoration: none; }
.byline { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 0 0 6px; }
details { margin: 0 0 6px; }
summary { font-family: var(--sans); font-size: 13px; color: var(--accent); cursor: pointer; }
details p { font-size: 14.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.55; }
.links { font-family: var(--sans); font-size: 13px; margin: 0; color: var(--muted); } /* bare text (the middot separators) recedes; anchors keep the accent */
.card .links a, .detail .links a { white-space: nowrap; } /* short labels break at separators, never mid-phrase (questions-page qlinks excluded: full titles must wrap) */

.stub { padding-top: 56px; padding-bottom: 56px; }

.page { padding-top: 30px; padding-bottom: 10px; }
.page h1 { font-size: 26px; margin: 0 0 10px; }
.lede { font-size: 16px; color: var(--muted); max-width: 66ch; margin: 0 0 8px; }
.lede-wide { max-width: none; } /* short one-sentence ledes shouldn't wrap (questions page; Luca, 2026-07-17) */
.page section { margin-top: 30px; }
.course { margin: 0 0 24px; max-width: 66ch; } /* = .lede's measure (both resolve @16px base); was 70ch, the one prose width matching nothing else — Luca 2026-08-18 */
.course p { font-size: 15.5px; margin: 6px 0 8px; }
.jumpnav { font-family: var(--sans); font-size: 13.5px; margin: 0 0 4px; }
.tagbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 10px 0 2px; }
.taglabel { font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.tagbtn { font-family: var(--sans); font-size: 12.5px; color: var(--accent); background: none; border: 1px solid var(--hairline); border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.tagbtn:hover { border-color: var(--accent); }
.tagbtn.active { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.tagbtn-group { font-weight: 600; }
.question { margin-top: 22px; } /* full wrap width — the 74ch cap made paper titles wrap ~130px earlier than the summary pages' link rows (Luca, 2026-07-17) */
.q { font-size: 19px; margin: 0 0 8px; }
.qlinks { line-height: 1.8; }
.qa { max-width: 72ch; font-size: 15.5px; margin: 8px 0; } /* prose answers keep a reading measure (the section itself stays uncapped) */
.tagclear { font-family: var(--sans); font-size: 12.5px; color: var(--muted); background: none; border: none; cursor: pointer; padding: 3px 6px; }
.tagclear:hover { color: var(--accent); }
#tag-matches h2 { color: var(--accent); }

/* "Find a paper" finder panel (2026-07-13, Luca's pick from four options):
   one labeled toolbox holding all three finding tools — search, type filter,
   policy-question path. Matches re-shelve into #search-results ranked by
   relevance, each hit carrying a verbatim "why it matched" sentence with the
   query words marked in giallo (the mark echoes ::selection). */
.finder { background: var(--mat); border: 1px solid var(--blu); border-radius: 10px; padding: 13px 16px 12px; margin: 14px 0 2px; } /* the thin blue line IS the Petrarca wall (Luca asked to try blue here, 2026-07-13) */
.finder-kicker { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.finder .searchbar { margin: 0 0 10px; }
.finder .tagbar { margin: 0; }
.finder-q { font-family: var(--sans); font-size: 12.5px; align-self: center; }
.searchbar { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; }
.searchbar[hidden] { display: none; } /* display:flex would defeat the no-JS hidden attribute */
.searchbar .tagclear { flex-shrink: 0; white-space: nowrap; }
#paper-search { font-family: var(--sans); font-weight: 330; font-size: 15px; color: var(--ink); background: #FFFFFF; border: 1.5px solid var(--hairline); border-radius: 999px; padding: 8px 18px; width: min(100%, 460px); }
/* explicit opacity:1 — Firefox's UA default (~0.54) would sink muted below AA */
#paper-search::placeholder { color: var(--muted); opacity: 1; }
#paper-search:focus, #paper-search:focus-visible { outline: none; border-color: var(--accent); }
#search-results h2 { color: var(--accent); }
mark { background: var(--giallo); color: var(--ink); padding: 0 2px; border-radius: 2px; }
.search-why { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0 0 8px; border-left: 2px solid var(--accent); padding-left: 9px; }
.page section > h2::after { content: ""; display: block; width: 36px; height: 3px; background: var(--accent); margin-top: 8px; }
.count { color: var(--muted); font-weight: 400; letter-spacing: 0; }

/* Card frames sit flush on the page's left edge (decided 2026-07-09 after
   the outdent convention kept reading as misalignment); interior text is
   inset by the card padding, like a figure caption. */
section.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
section.grid > h2 { grid-column: 1 / -1; margin-bottom: 2px; }
.grid > article:not(.card) { grid-column: 1 / -1; }

/* Masonry (2026-07-09): the policy section mixes tall figure cards with short
   figure-less ones. Without JS it stays the equal-height .grid above; with JS,
   initMasonry() (site.js) reflows the cards into columns, packed tight and in
   publication order. .masonry-active turns off the grid so the JS-built columns
   take over. */
.masonry.masonry-active { display: block; }
/* must out-specify section.grid > h2's 2px, or the terracotta dash sits
   directly on the first card's border (Luca, 2026-07-13: "too close", and
   the merged lines read as inconsistent dash lengths) */
section.masonry-active > h2 { margin-bottom: 24px; }
/* Cards are positioned absolutely by layout() in site.js (width/left/top
   inline, wrap height set explicitly), so the DOM keeps source order —
   publication order on the shelves, relevance order in search results — and
   tab/reading order matches what the eye sees, instead of the column-major
   order the old flex-column implementation produced. The 22px gap must match
   the masonry math in site.js. */
.masonry-cols { position: relative; }
.masonry-active .masonry-cols > article { margin: 0; position: absolute; }

.card { background: #FFFFFF; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; margin: 0; max-width: none; transition: transform 0.15s ease, box-shadow 0.15s ease; } /* 2px per Luca 2026-07-13 (was 1.5px); matches portrait + summary figures */
/* lift only when the pointer is on something clickable — the mat itself
   isn't a link, so a whole-card lift would promise a click that does nothing */
.card:has(a:hover) { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(33, 32, 28, 0.08); }
.card-figure { display: block; aspect-ratio: 16 / 9; background: #FFFFFF; border-bottom: 1px solid var(--hairline); padding: 14px; }
.card-figure img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 0.2s ease; }
.card .card-figure:hover img { transform: scale(1.02); }
.card-body { padding: 13px 16px 14px; display: flex; flex-direction: column; flex: 1; background: var(--mat); }
/* kicker = venue slug: venue flush left, year flush right. MUTED, not accent
   — the kicker is a label, and labels speak through typography; terracotta
   means CLICKABLE sitewide (Luca, 2026-07-14) */
.card-kicker { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-kicker em { font-style: normal; }
.kicker-year { font-weight: 430; flex-shrink: 0; }
.card h3 { font-size: 17.5px; margin: 0 0 8px; }
/* action zone: link rows + abstract toggle sit on a hairline floor that
   mirrors the figure band's hairline — figure / content / actions */
.card .card-actions { margin-top: auto; border-top: 1px solid var(--hairline); padding-top: 9px; }
.card .links { margin-top: 0; }
.link-primary { font-weight: 650; }
.pdfmark { color: var(--muted); font-size: 11.5px; display: inline-block; margin-left: 4px; } /* marks links that resolve directly to a PDF; inline-block + margin (not a space) keep the hover underline off it and off the gap */
.media-line, .docs-line, .policy-line { margin-top: 2px; font-size: 12.5px; }
/* on cards, the auxiliary lines (docs, media, policy) sit slightly apart
   from the main link row (Luca, 2026-07-17) */
.card .docs-line, .card .media-line, .card .policy-line { margin-top: 8px; }
/* ...but stay grouped with each other */
.card .docs-line + .media-line, .card .docs-line + .policy-line, .card .media-line + .policy-line { margin-top: 3px; }
.card details { margin: 6px 0 0; }

/* Figure-less cards (some health-policy pieces, 2026-07-09): same frame, no
   image band. They stretch to their row-neighbour's height like the econ
   cards, so the grid stays on tidy equal-height rows instead of leaving holes
   below a short card. Rather than pin the links to the bottom (which would
   strand a gap mid-card), the whole text block centres vertically so a short
   card reads as a balanced, deliberate text card. */
.card.no-figure .card-body { justify-content: center; padding-top: 16px; padding-bottom: 16px; }
.card.no-figure .card-actions { margin-top: 8px; }

.venue-inline { color: var(--muted); }
.detail-body { max-width: 72ch; }
.detail-body .detail-h { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 26px 0 8px; }
.detail-body p, .detail-body li { font-size: 16px; line-height: 1.65; }
.detail-body figure { margin: 20px auto; text-align: center; }
.detail-body figure:not(.tbl):not(.half) { max-width: 80%; }
.detail-body figure img { max-width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 4px; background: #FFFFFF; padding: 6px; box-sizing: border-box; }
.detail-body figcaption { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 6px; text-align: left; }
.detail-body figure.half { display: inline-block; width: 49.2%; vertical-align: top; }
@media (max-width: 640px) { .detail-body figure.half { display: block; width: 100%; } }
.tbl { overflow-x: auto; }
/* caption width = table width: shrink-wrap the table figure on wide screens
   (mobile keeps block + overflow-x scrolling) */
@media (min-width: 641px) {
  .detail-body figure.tbl { display: table; }
  .detail-body .tbl figcaption { display: table-caption; caption-side: bottom; }
}
.tbl table { margin: 0 auto; border-collapse: collapse; background: transparent; font-family: var(--sans); font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 5px 16px; font-weight: 330; text-align: center; }
.tbl thead tr:last-child th { border-bottom: 1px solid var(--hairline); font-weight: 430; }
.tbl .tbl-span { font-weight: 430; }
.tbl th[scope="row"] { text-align: left; }
.tbl tr.se td { padding-top: 0; font-size: 13px; color: var(--muted); }
.tbl .tbl-panel { text-align: left; font-weight: 430; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 4px 0; }
.backrow { margin-top: 24px; }
.page article { margin: 0 0 26px; max-width: 74ch; }
.venue { font-size: 14.5px; color: var(--muted); font-style: normal; margin: 0 0 6px; }
.summary { font-size: 15.5px; margin: 4px 0 8px; }
.linklabel { color: var(--muted); } /* "Additional documents:" / "Media:" line labels */
.doclist { list-style: none; margin: 0; padding: 0; max-width: 620px; }
.doclist li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--hairline); font-family: var(--sans); font-size: 14.5px; }
.doclist .meta { color: var(--muted); font-size: 12.5px; flex-shrink: 0; }
/* Teaching doclists (Luca, 2026-07-17): rows stack tight with no hairlines —
   the hairline instead marks the subsection boundary (.subhead below).
   Labels sit right after the link (2026-07-18: the old space-between pushed
   "PDF" to the 620px cap, aligned with nothing once the hairlines left) */
.doclist-tight li { border-bottom: none; padding: 3px 0; justify-content: flex-start; gap: 5px; }
.subhead { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); max-width: 620px; border-top: 1px solid var(--hairline); margin: 14px 0 6px; padding-top: 12px; }
.bibtex { font-family: Consolas, Menlo, monospace; font-size: 12.5px; line-height: 1.5; background: var(--panel); border: 1px solid var(--hairline); border-radius: 6px; padding: 12px 14px; overflow-x: auto; margin: 8px 0; } /* data.html dataset citation (cards lost theirs 2026-07-14) */
.copy-btn { font-family: var(--sans); font-size: 12.5px; color: var(--accent); background: none; border: 1px solid var(--hairline); border-radius: 4px; padding: 3px 10px; cursor: pointer; }
.copy-btn:hover { border-color: var(--accent); }

footer { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--hairline); margin-top: 20px; padding-top: 14px; padding-bottom: 20px; font-family: var(--sans); font-size: 13.5px; }
footer p { margin: 0; }
.fine { color: var(--muted); font-size: 12.5px; }

/* Colophon word-colors (settled 2026-07-13, four rounds): "colors" in plain
   dark palazzo gold — highlight block, marker underline, text-stroke, and a
   giallo paint chip were all tried and rejected (the chip implied giallo was
   photo-sampled; it's Luca-given). Terracotta and wall-blue as themselves. */
.w-giallo { color: var(--oro); }
.w-terra { color: var(--accent); }
.w-blu { color: var(--ink); }
/* the colophon word-links keep their word colors, not link terracotta */
.w-giallo a, .w-blu a { color: inherit; }
/* the colophon's font names, cast in their own faces (Luca, 2026-07-13) */
.f-serif { font-family: var(--serif); }
.f-sans { font-family: var(--sans); }

/* Visible marker for unconfirmed/placeholder content — nothing highlighted ships */
.todo { background: #FFD54F; border-radius: 3px; padding: 0 4px; }
/* Review-edit marker (2026-07-17): text changed by the accuracy review, in
   annotation blue — Luca audits, then the spans get stripped. Like .todo,
   nothing highlighted ships: pre-deploy grep covers class="rev" too. */
.rev { background: #E8EEF5; box-shadow: inset 0 -2px 0 var(--blu); border-radius: 2px; padding: 0 2px; }

/* Screen-reader-only text (the live search's result announcer) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Invisible craft: balanced headlines, no orphan words, lining table figures,
   keyboard focus in the site's own accent, motion manners. */
h1, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.date, .doclist .meta, .card-kicker, .venue, .venue-inline { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 10; background: var(--accent); color: #FFFFFF; font-family: var(--sans); font-size: 13px; padding: 8px 14px; border-radius: 0 0 6px 0; }
.skip:focus { left: 0; text-decoration: none; }

/* Motion trio (2026-07-09): disclosures slide open AND shut (JS, on the
   .d-anim wrapper inside each details — the pure-CSS ::details-content route
   is off the table: any author styling of content-visibility on that pseudo
   breaks [open] style invalidation in Chromium); copied BibTeX flashes giallo
   (the copy sweep echoes ::selection); the tag filter re-shelves via view
   transitions (site.js). Everything sits behind no-preference and degrades
   to instant in browsers without the features. */
@media (prefers-reduced-motion: no-preference) {
  .flash-giallo { animation: flash-giallo 0.9s ease-out; }

  /* Filter re-shelving: slow the view-transition glide from the 0.25s browser
     default to a calmer 0.45s (Luca, 2026-07-09). */
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation-duration: 0.45s; }
}

@keyframes flash-giallo {
  0% { background-color: var(--giallo); }
  100% { background-color: var(--panel); }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card-figure img { transition: none; }
  .card:has(a:hover) { transform: none; box-shadow: none; }
  .card .card-figure:hover img { transform: none; }
}

@media (max-width: 700px) {
  section.grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { flex-direction: column-reverse; gap: 20px; padding-top: 28px; }
  .hero-side { margin-top: 0; align-self: center; }
  .portrait { width: 172px; height: 172px; }
  h1 { font-size: 23px; }
  .masthead { flex-wrap: wrap; gap: 10px; }
  .columns { grid-template-columns: 1fr; gap: 28px; }
  footer { flex-direction: column; gap: 6px; }
}
