/* Hallmark · waive 19 · Filip writes with - and -- · his rule bans only the long dash */
/* Madison Files site styles. Design B3, "case files on a desk" (DESIGN.md).
   Taken from the round 11 reference CSS, with the tokens from DESIGN.md section 3.
   Every color is a token on :root. No color value anywhere else. */

:root {
  /* Colors (DESIGN.md section 3) */
  --page: #f7f3ec;
  --white: #fffefb;
  --ink: #262019;
  --soft: #6b6152;
  --rule: #ddd2bd;
  --red: #c4432b;
  --red-ink: #fff8ee;
  --red-dark: #9a3220;
  --manila: #e8d3a2;
  --manila-2: #dcc28a;
  --manila-3: #f0e0b8;
  --edge: #c4a76d;
  --oak: #8b5e34;
  --oak-2: #74492a;
  --oak-3: #4f321d;
  --brass: #d9b36c;
  --steel: #5e685c;
  --redact: #141210;
  --line-blue: #c9d7e8;
  --line-red: #e2958a;
  --shadow: rgba(38, 32, 25, .22);
  --shadow-near: rgba(38, 32, 25, .10);  /* the index card shadow, close (2026-11-30) */
  --shadow-far: rgba(38, 32, 25, .34);   /* the index card shadow, wide */
  /* The light veil over the v1 picture, so the big title reads on it */
  --veil: rgba(247, 236, 214, .7);
  --veil-0: rgba(247, 236, 214, 0);

  /* Type */
  --head: "Libre Franklin", system-ui, sans-serif;
  --body: "Libre Franklin", system-ui, sans-serif;
  --type: "Courier Prime", ui-monospace, monospace;

  /* Motion: files coming out */
  --ease-out: cubic-bezier(.3, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--page); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; transition: none; }
h1, h2, h3, h4 { margin: 0; min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
/* The page fills at least the visible screen height (svh: with the browser bars shown), so on a short page
   like the 404 the footer sits at the bottom of the screen (Filip). */
.p { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; max-width: 1440px; margin: 0 auto; }
.p > main { flex: 1; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 10; padding: 8px 12px; background: var(--white); border-radius: 4px; }
.skip:focus-visible { top: 8px; }

/* ---------- header ---------- */
/* Ink bar (round 19, option 5, Filip 2026-11-30): the header and footer are dark, so they read apart from the page. */
.top { position: relative; display: flex; align-items: center; gap: 24px; margin-bottom: 4px; padding: 24px 40px; background: var(--ink); color: var(--page); box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax -4px); }
/* The page column is at most 1440px wide (.p). The wide shadow and this line take the bars to the screen edges. */
.top::after { content: ""; position: absolute; left: -100vmax; right: -100vmax; bottom: -4px; height: 4px; background: var(--red); }
/* On the dark bars, focus is a light outline: red would be too close to the red lines. */
.top a:focus-visible, .foot a:focus-visible { outline-color: var(--manila); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 40px; height: 40px; flex: none; transition: transform .15s ease; }
.logo:hover svg { transform: rotate(-4deg); }
.logo-name { display: grid; font: 800 18px/.95 var(--head); letter-spacing: -0.025em; }
.tag { font-size: 14px; color: var(--manila); }
.menu { display: flex; gap: 24px; margin-left: auto; font-size: 16px; }
.menu a { text-decoration: none; white-space: nowrap; transition: opacity .15s ease; }
.menu a:hover { opacity: .7; }
.menu a[aria-current="page"] { text-decoration: underline 3px var(--red); text-underline-offset: 6px; }

/* ---------- buttons, labels, stamp ---------- */
.btn { display: inline-flex; align-items: center; padding: 16px 24px; white-space: nowrap; font: 700 16px/1 var(--body); background: var(--red); color: var(--red-ink); border: 0; border-radius: 4px; text-decoration: none; cursor: pointer; box-shadow: inset 0 -3px 0 var(--red-dark); transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--red-dark); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
/* The file number: #3591 in Courier Prime 700, red (DESIGN.md section 5).
   19px bold counts as large text, so red on manila (3.4:1) still meets the 3:1 contrast rule. */
.fnum { color: var(--red); font: 700 19px/1 var(--type); font-variant-numeric: tabular-nums; }
.stamp { display: inline-block; border: 3px solid var(--red); color: var(--red); font: 800 18px/1 var(--head); padding: 8px 12px; border-radius: 4px; transform: rotate(-8deg); }
.stamp.big { flex: none; margin-top: 8px; padding: 8px 16px; border-width: 4px; font-size: 26px; }
.stamp.hit { animation: thump .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes thump { from { transform: rotate(-8deg) scale(2); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
/* The stamp waits for its hit only when scripts run; without scripts it shows at once. */
.js .stamp[data-thump] { opacity: 0; }
.js .stamp[data-thump].hit { opacity: 1; }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 32px 40px; background: var(--ink); color: var(--page); box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax); }
.f-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.f-logo svg { width: 32px; height: 32px; flex: none; }
.f-name { font: 800 18px/1.2 var(--head); letter-spacing: -0.025em; }
.foot .menu { margin-left: 0; font-size: 15px; }

/* ---------- breadcrumbs ---------- */
.crumbs { max-width: 1160px; margin: 0 auto; padding: 24px 40px 16px; font-size: 15px; color: var(--soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { text-underline-offset: 4px; }
.crumbs.wide { max-width: none; }
.crumbs.flat { max-width: none; margin: 0 0 24px; padding: 0; }

/* ---------- file page: shared parts ---------- */
.openf { position: relative; max-width: 1160px; margin: 0 auto; padding: 48px 40px 88px; }
.of-tab { position: absolute; top: 16px; left: 40px; padding: 8px 16px 12px; background: var(--manila); border-radius: 6px 6px 0 0; }
.of-folder { position: relative; padding: 40px; background: var(--manila); border-radius: 0 10px 10px 10px; }
.of-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 32px; }
.of-brand { margin: 0 0 8px; font: 600 15px/1.2 var(--head); color: var(--ink); }
.lede { max-width: 34ch; margin: 16px 0 0; font-size: 22px; color: var(--ink); }
.of-paper { position: relative; background: var(--white); border-radius: 4px; box-shadow: 0 2px 0 var(--edge); }
.js .of-paper { animation: rise .7s cubic-bezier(.2, .8, .2, 1) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Facts and the short version */
.of-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 40px; padding: 40px 56px; border-bottom: 1px solid var(--rule); }
.meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; font: 400 15px/1.45 var(--type); }
.meta dt { color: var(--soft); }
.meta dd { margin: 0; }
.meta .fnum { font-size: 15px; line-height: 1.45; }
/* The brief: an index card, like the About page (Filip, 2026-11-25). Text sits on the blue lines, the red line is under the heading. */
/* The brief: blue lines with soft half-pixel edges, so each stays one clean line on the turned card (2026-11-30). */
.short { position: relative; padding: 4px 24px 20px; border: 1px solid var(--ink); background-color: var(--white); background-image: linear-gradient(var(--white) 50px, transparent 50px), repeating-linear-gradient(var(--white) 0 30.5px, var(--line-blue) 31px 31.5px, var(--white) 32px); background-position: 0 0, 0 22px; box-shadow: 0 2px 0 var(--rule), 0 16px 30px -18px var(--shadow); transform: rotate(-.6deg); }
.short .clip { top: -26px; right: 40px; }
/* The red line is a border, not a gradient: a gradient line on a tilted card breaks into steps (Filip, 2026-11-25) */
.short h2 { margin: 0 -24px 8px; padding-bottom: 4px; border-bottom: 2px solid var(--line-red); text-align: center; font: 800 20px/40px var(--head); letter-spacing: -0.025em; }
.short dl { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 0 16px; margin: 0; }
.short dt { font-weight: 700; line-height: 32px; color: var(--red); }
.short dd { margin: 0; font: 400 16px/32px var(--body); }

/* The story, the sources, the next file */
.story { max-width: 720px; margin: 0 auto; padding: 48px 56px 64px; font-size: 18px; line-height: 1.65; }
.story > h2 { margin: 0 0 16px; font: 800 24px/1.2 var(--head); letter-spacing: -0.025em; }
.story h3 { margin: 40px 0 16px; font: 800 24px/1.2 var(--head); letter-spacing: -0.025em; }
.story p { margin: 0 0 16px; }
.sources { margin-top: 40px; }
.sources ol { padding-left: 24px; list-style: decimal; font: 400 15px/1.5 var(--type); color: var(--soft); }
.sources li + li { margin-top: 8px; }
.sources a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.rnd { position: relative; z-index: 1; margin: -40px 0 88px; text-align: center; } /* above .openf, which it overlaps: else most of the button does not take clicks */
.story a, .meta a { text-underline-offset: 3px; }
.meta a:hover { text-decoration-thickness: 2px; }
.credit { margin: 8px 0 0; font: 400 12px/1.3 var(--type); color: var(--soft); }

/* v1: the big title on a wide picture */
.bh { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: end; min-height: 540px; margin: 0 40px; padding: 64px 48px 56px; overflow: hidden; isolation: isolate; background: var(--manila-3); border-radius: 10px 10px 0 0; }
.bh-pic { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.bh::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--veil-0) 45%, var(--veil) 100%); }
.bh-in { grid-column: 2; }
.bh-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0 0 16px; font-size: 16px; }
.bh h1 { font: 800 96px/.95 var(--head); letter-spacing: -0.04em; }
.bh-sum { max-width: 32ch; margin: 16px 0 0; font-size: 22px; }
.bh .stamp { position: absolute; top: 40px; right: 48px; background: var(--white); }
.bh-credit { margin: 0 40px; padding: 8px 28px 0; background: var(--manila); }
.bh-credit .credit { margin: 0; }
.bh-body { margin: 0 40px 88px; padding: 24px 28px 28px; background: var(--manila); border-radius: 0 0 10px 10px; }

/* v2: the big title on the manila folder */
.of-head.bigtitle .stamp { margin: 16px 24px 0 0; }
.of-head.bigtitle h1 { max-width: 20ch; font: 800 56px/1.04 var(--head); letter-spacing: -0.03em; }

/* v3: the big title next to the ad, clipped to the folder */
.of-head.clipped { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.of-head.clipped h1 { font: 800 80px/.96 var(--head); letter-spacing: -0.04em; }
.print { position: relative; margin: 0; padding: 12px 12px 8px; background: var(--white); box-shadow: 0 16px 30px -18px var(--shadow); transform: rotate(2deg); }
.print-pic { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--manila-2); }
.print .credit { margin-top: 8px; }
.clip { position: absolute; width: 30px; height: 84px; fill: none; stroke: var(--steel); stroke-width: 4; stroke-linecap: round; }
.print .clip { top: -30px; left: 36px; }

/* ---------- file page: exhibits, real ads held by a paper clip (one frame for all files) ---------- */
.exhibits { max-width: 720px; margin: 0 auto; padding: 48px 56px 8px; }
.exhibits h2 { margin: 0; font: 800 24px/1.2 var(--head); letter-spacing: -0.025em; }
.ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 56px 40px; margin-top: 40px; }
.ex { position: relative; margin: 0; padding: 12px; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 16px 30px -18px var(--shadow); transform: rotate(-1.5deg); }
.ex:nth-child(2n) { transform: rotate(1.2deg); }
.ex:nth-child(3n) { transform: rotate(-.6deg); }
.ex .clip { top: -30px; left: 32px; }
.ex:nth-child(2n) .clip { left: auto; right: 32px; }
.ex-pic { display: block; width: 100%; height: auto; background: var(--manila-3); }
.ex figcaption { margin-top: 12px; font: 400 14px/1.45 var(--type); color: var(--soft); }
.ex-label { font-weight: 700; color: var(--red); }
.ex .credit { display: block; margin-top: 4px; font-size: 12px; }
.ex .credit a { color: inherit; }

/* ---------- about: an index card with a paper clip ---------- */
.card-wrap { max-width: 920px; margin: 0 auto; padding: 56px 40px 88px; }
/* The blue lines have soft half-pixel edges: hard edges break into small steps on the turned card (Filip, 2026-11-30).
   The lines are painted on .lined (everything under the title), one 32px tile that starts where the text starts,
   so the text sits on the lines with a title of any length: a phone title of 3 lines put the text between them.
   The red line under the title is a border on the h1, not a line painted in the background:
   on the turned card a painted line breaks into small steps (Filip, 2026-11-30). It follows a title of any length, on every screen. */
.icard { position: relative; padding: 48px 56px 24px; background-color: var(--white); box-shadow: 0 2px 0 var(--rule), 0 6px 12px var(--shadow-near), 0 26px 44px -14px var(--shadow-far); transform: rotate(-.6deg); }
.icard .clip { z-index: 1; top: -26px; right: 64px; }
.icard h1 { position: relative; margin: -48px -56px 0; padding: 56px 56px 16px; background: var(--white); font: 800 64px/64px var(--head); letter-spacing: -0.03em; }
/* The red line: a 2px bar under the title (it takes no height, so the text below stays on the 32px blue lines). */
.icard h1::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-red); }
.icard .lined { margin: 0 -56px -24px; padding: 0 56px 24px; background: linear-gradient(var(--white) 30.5px, var(--line-blue) 31px 31.5px, var(--white) 32px) 0 24px / 100% 32px; }
/* Marketing help: after "Cheers, Filip" one empty ruled line (the margin of the last paragraph), the address on the
   next line, then the button (48px + 16px gap = two lines). All centered (Filip, 2026-11-30). */
.icard .story.to-mail { padding-bottom: 0; }
.mail { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0; text-align: center; }
.mail-addr { font: 700 22px/32px var(--type); text-underline-offset: 5px; overflow-wrap: anywhere; }
.mail-done { margin: 0; font-size: 15px; color: var(--soft); }
/* Empty status line: no height, so the card ends right after the button. It stays in the page for screen readers. */
.mail-done:empty { margin-top: -16px; }
/* The two actions under the featured files (Home) and under the card (About). */
.actions.after { justify-content: center; margin-top: 56px; }
.icard .story { max-width: none; padding: 24px 0 24px; font-size: 18px; line-height: 32px; }
.icard .story p { margin: 0 0 32px; }
.icard .story h2 { margin: 32px 0 32px; font: 800 30px/32px var(--head); letter-spacing: -0.025em; }

/* ---------- shared: text links, section heads, hidden-for-eyes text ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.textlink { font-size: 16px; text-underline-offset: 5px; }
.textlink:hover { text-decoration-thickness: 2px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.sec-head h2 { font: 800 32px/1.1 var(--head); letter-spacing: -0.025em; }

/* ---------- home: hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; min-height: 600px; padding: 32px 40px 72px; }
.hero h1 { font: 700 64px/1 var(--head); letter-spacing: -0.025em; }
.hero .lede { max-width: 32ch; margin: 24px 0 32px; font-size: 20px; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0; }

/* ---------- home: the cabinet, one long row of slim oak drawers ---------- */
.cab { position: relative; padding-top: var(--cab-top, 200px); }
.row-cab { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(var(--n, 11), minmax(0, 1fr)); gap: 4px; padding: 8px; background: var(--oak-2); border-radius: 6px; }
.sdrawer { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; height: 188px; padding: 12px 0 16px; background: var(--oak); border-radius: 4px; text-decoration: none; box-shadow: inset 0 -3px 0 var(--oak-3); transition: transform .45s var(--ease-out); }
a.sdrawer.open, a.sdrawer:hover { transform: translateY(-12px); }
.sdrawer.empty { opacity: .7; }
.vplate { writing-mode: vertical-rl; transform: rotate(180deg); padding: 8px 4px; background: var(--brass); color: var(--ink); border-radius: 2px; font: 400 13px/1 var(--type); }
.pull { width: 16px; height: 8px; background: var(--brass); border-radius: 0 0 8px 8px; }
/* The manila file that comes out of the open drawer */
.popf { position: absolute; bottom: calc(100% - var(--cab-top, 200px) - 4px); left: 0; z-index: 3; display: block; width: 252px; color: var(--ink); text-decoration: none; transform: translate(var(--px, 0px), 0); transition: transform .5s var(--ease-out), opacity .35s ease; filter: drop-shadow(0 12px 16px var(--shadow)); }
.js .popf.down { opacity: 0; transform: translate(var(--px, 0px), 80px); }
.ptab { display: inline-flex; align-items: baseline; gap: 12px; max-width: 92%; padding: 8px 12px 4px; background: var(--manila); border-radius: 6px 6px 0 0; font: 600 14px/1.2 var(--head); white-space: nowrap; }
.ptab > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ptab .fnum { font-size: 15px; }
.pbody { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 20px; background: var(--manila); border-radius: 0 4px 4px 4px; }
.pfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pt { font: 700 18px/1.2 var(--type); }
.py { font: 400 15px/1 var(--type); color: var(--ink); white-space: nowrap; }
.popf:hover .pt { text-decoration: underline; text-underline-offset: 3px; }
.pbody .stamp { position: static; padding: 4px 8px; font-size: 15px; }

/* ---------- home: featured files ---------- */
.cases { padding: 88px 40px; border-top: 1px solid var(--rule); }

/* ---------- a closed file that opens (home and all files) ---------- */
.desk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 56px 64px; max-width: 980px; margin: 0 auto; }
.desk-grid > li { position: relative; }
.desk-grid > li:is(:hover, :focus-within), .desk-grid > li:has(.act) { z-index: 5; }
.df { position: relative; display: grid; height: 100%; padding-top: 32px; text-decoration: none; color: var(--ink); perspective: 1400px; }
.df-tab { position: absolute; top: 0; display: flex; align-items: baseline; gap: 12px; max-width: 78%; padding: 8px 16px 4px; border-radius: 6px 6px 0 0; font: 600 14px/1.2 var(--head); white-space: nowrap; }
.df-tab > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.df-tab .fnum { font-size: 15px; }
.df-tab.t0 { left: 0; background: var(--manila); }
.df-tab.t1 { left: 28%; background: var(--manila); }
.df-tab.t2 { right: 0; background: var(--manila); }
/* The paper and the cover share one place, so the folder is as tall as the taller of the two: the paper with
   its button always fits, and nothing grows on hover. Every folder in a grid gets the size of the tallest one
   (grid-auto-rows: 1fr), so some covers have more empty space than others (Filip, 2026-11-25). */
.df-inside { position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 16px; background: var(--white); border: 8px solid var(--manila-2); border-radius: 0 4px 4px 4px; }
.sv { display: flex; flex-direction: column; gap: 8px; font: 400 13px/1.4 var(--type); }
.sv-r b { display: block; font: 700 13px/1.3 var(--head); color: var(--red); }
/* A blacked-out word: the word is in the page, but ink on ink */
.rw { padding: 0 1px; background: var(--redact); color: var(--redact); border-radius: 1px; user-select: none; }
.df-open { align-self: center; display: inline-flex; padding: 8px 16px; background: var(--red); color: var(--red-ink); border-radius: 4px; box-shadow: inset 0 -2px 0 var(--red-dark); font: 700 14px/1 var(--head); }
/* The cover is only a drawing: it never takes the mouse, so it never blocks the next file */
.df-cover { position: relative; grid-area: 1 / 1; pointer-events: none; transform-origin: left center; transform-style: preserve-3d; transition: transform .5s var(--ease-out); }
.df:is(:hover, :focus-visible, .act) .df-cover { transform: rotateY(-150deg); }
.df-face, .df-back { border-radius: 0 4px 4px 4px; backface-visibility: hidden; }
.df-face { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; background: var(--manila); box-shadow: 0 2px 0 var(--edge), 0 14px 24px -16px var(--shadow); }
.df-back { position: absolute; inset: 0; background: var(--manila-2); transform: rotateY(180deg); }
.cf-title { font: 700 22px/1.2 var(--type); }
.cf-foot { margin-top: 24px; }
.cf-year { font: 400 15px/1.2 var(--type); }
.cf-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.draft-mark { padding: 4px 8px; border: 2px dashed var(--ink); border-radius: 4px; font: 700 13px/1 var(--type); }

/* ---------- home: sign-up (dev only until an email service is chosen) ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin: 0 40px; padding: 48px 0 56px; border-top: 1px solid var(--rule); }
.signup h2 { font: 800 30px/1.1 var(--head); letter-spacing: -0.025em; }
.signup p { margin: 8px 0 0; color: var(--soft); }
.signup .dev-note { font: 400 14px/1.4 var(--type); color: var(--red-dark); }
.sform { display: flex; align-items: end; gap: 12px; }
.sform label { flex: 1; display: grid; gap: 8px; font-size: 14px; color: var(--soft); }
input, select { width: 100%; padding: 12px 16px; font: 400 16px/1.2 var(--type); color: var(--ink); background: var(--white); border: 1px solid var(--ink); border-radius: 4px; }
input::placeholder { color: var(--soft); }

/* ---------- all files ---------- */
.allf { max-width: 1120px; margin: 0 auto; padding: 32px 40px 88px; }
.allf h1 { font: 700 56px/1 var(--type); }
.allf .lede { margin: 16px 0 32px; font-size: 20px; color: var(--soft); }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 16px 24px; margin-bottom: 48px; padding: 24px; background: var(--manila); border-radius: 6px; }
.filter-reset { justify-self: start; padding: 8px 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.filter-reset:hover { color: var(--red); }
.filter-reset:active { opacity: .7; }
.fsearch, .fdec { grid-column: 1 / -1; }
.fsearch, .fgroup { display: grid; gap: 8px; }
.fsearch > span, .flabel { font-size: 15px; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 8px 12px; font: 400 14px/1 var(--type); color: var(--ink); background: var(--white); border: 1px solid var(--edge); border-radius: 4px; cursor: pointer; transition: opacity .15s ease; }
.chips button:hover { opacity: .8; }
.chips button:active { opacity: .6; }
.chips button[aria-pressed="true"] { color: var(--red-ink); background: var(--red); border-color: var(--red); }
.fcount { margin: 0 0 12px; font-size: 15px; white-space: nowrap; }
.fempty { padding: 40px 0; font-size: 18px; color: var(--soft); }
.fpages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 40px 0 0; }
.fpages[hidden] { display: none; }
.fpages button { padding: 8px 12px; font: 400 14px/1 var(--type); color: var(--ink); background: var(--white); border: 1px solid var(--edge); border-radius: 4px; cursor: pointer; }
.fpages button:hover { opacity: .8; }
.fpages button:active { opacity: .6; }
.fpages button[aria-current="page"] { color: var(--red-ink); background: var(--red); border-color: var(--red); }
.fpages button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- tablet and phone ---------- */
@media (max-width: 960px) {
  .top { flex-wrap: wrap; gap: 12px 16px; padding: 16px; }
  .menu { width: 100%; margin-left: 0; }
  .crumbs { padding: 16px 16px 12px; }
  .openf { padding: 40px 16px 56px; }
  .rnd { margin: -24px 16px 56px; }
  .of-tab { top: 8px; left: 16px; }
  .of-folder { padding: 24px 16px 16px; }
  .of-head { flex-direction: column; gap: 16px; }
  .of-head.clipped { grid-template-columns: minmax(0, 1fr); }
  .ex-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .bh h1, .of-head.clipped h1 { font-size: 48px; }
  .of-head.bigtitle h1 { font-size: 36px; }
  .of-head.bigtitle .stamp { align-self: flex-end; margin: 8px 8px 0 0; }
  .lede, .bh-sum { font-size: 19px; }
  .of-facts { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; }
  .short dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story { padding: 32px 24px 40px; }
  .exhibits { padding: 32px 24px 0; }
  .bh { grid-template-columns: minmax(0, 1fr); min-height: 0; margin: 0 16px; padding: 240px 20px 32px; }
  .bh-pic { height: 240px; bottom: auto; object-position: left top; }
  .bh::before { background: linear-gradient(var(--veil-0) 200px, var(--manila-3) 240px); }
  .bh-in { grid-column: 1; }
  .bh .stamp { top: 24px; right: 20px; }
  .bh-credit { margin: 0 16px; padding: 8px 12px 0; }
  .bh-body { margin: 0 16px 56px; padding: 12px; }
  .card-wrap { padding: 40px 16px; }
  .icard { padding: 32px 24px 12px; }
  .icard h1 { margin: -32px -24px 0; padding: 40px 24px 16px; font-size: 40px; line-height: 48px; }
  .icard .story { padding-top: 40px; }
  .icard .lined { margin: 0 -24px -12px; padding: 0 24px 12px; background-position: 0 40px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 16px 16px 48px; }
  .hero h1 { font-size: 44px; }
  .cases { padding: 56px 16px; }
  .sec-head h2 { font-size: 26px; }
  .desk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
  .signup { grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 0 16px; }
  .sform { flex-direction: column; align-items: stretch; }
  .allf { padding: 24px 16px 56px; }
  .allf h1 { font-size: 40px; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .foot { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 16px; }
  .actions.after { margin-top: 40px; }
}
@media (max-width: 560px) {
  .top .tag { display: none; }
  .menu { gap: 16px; flex-wrap: wrap; }
  /* Phone menus, design A+C (round 21, Filip 2026-11-30). The size follows the screen width, so the four links always fit on one line (phones 320px to 560px wide): header
     (width - 68px) / 15.5, 16px to 21px (360px phone: 18.8px, 390px: 20.8px); footer (width - 68px) / 17, 16px to 19px.
     Phones from about 400px stop at 21px and 19px.
     Tablets (wider than 560px) keep the 16px and 15px menus. The links spread over the full width. */
  .top .menu { justify-content: space-between; gap: 8px 12px; font-size: clamp(16px, calc((100vw - 68px) / 15.5), 21px); }
  .top .menu a[aria-current="page"] { text-underline-offset: 7px; }
  .foot .menu { width: 100%; justify-content: space-between; gap: 8px 12px; font-size: clamp(16px, calc((100vw - 68px) / 17), 19px); }
  .print { transform: none; }
  .desk-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .row-cab { gap: 4px; padding: 4px; }
  .sdrawer { height: 150px; }
  .vplate { font-size: 11px; }
  .popf { width: 220px; }
  /* On a phone the cover flips up, not to the side (round 7) */
  .df-cover { transform-origin: center top; }
  .df:is(:hover, :focus-visible, .act) .df-cover { transform: rotateX(-165deg); }
}

/* ---------- reduced motion: no movement, content shows at once ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .stamp[data-thump] { opacity: 1; }
  /* No movement on hover either */
  .logo:hover svg, .btn:hover, .btn:active, a.sdrawer:hover:not(.open) { transform: none; }
  .js .popf.down { transform: translate(var(--px, 0px), 0); }
}
/* libre-franklin-latin-400-normal */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/libre-franklin-latin-400-normal.DNAyL8lK.woff2) format('woff2'), url(/_astro/libre-franklin-latin-400-normal.B5qoBLOl.woff) format('woff');
}/* libre-franklin-latin-600-normal */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_astro/libre-franklin-latin-600-normal.BBKMvfE-.woff2) format('woff2'), url(/_astro/libre-franklin-latin-600-normal.DjS29Py2.woff) format('woff');
}/* libre-franklin-latin-700-normal */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/_astro/libre-franklin-latin-700-normal.TBBKpXzk.woff2) format('woff2'), url(/_astro/libre-franklin-latin-700-normal.CP58KLQO.woff) format('woff');
}/* libre-franklin-latin-800-normal */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/_astro/libre-franklin-latin-800-normal.IoztdYMZ.woff2) format('woff2'), url(/_astro/libre-franklin-latin-800-normal.C1oVkKH1.woff) format('woff');
}/* courier-prime-latin-400-normal */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/courier-prime-latin-400-normal.BbyBr73r.woff2) format('woff2'), url(/_astro/courier-prime-latin-400-normal.BAlbUm6l.woff) format('woff');
}/* courier-prime-latin-700-normal */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/_astro/courier-prime-latin-700-normal.D1YCjmaD.woff2) format('woff2'), url(/_astro/courier-prime-latin-700-normal.CVvp4Sof.woff) format('woff');
}