/* SENDA Gazette · the shared system. Grown from concepts/14-gazette (Hallmark theme: Newsprint).
 * Material: pale newsprint, warm black ink, Zilla Slab heads over Spectral, Libre Franklin agate for labels and figures,
 * hairline and double rules, one dried-brick signal. Photographs print in full colour: the LCD is the product.
 * Motion: pages turn, headlines set word by word, rules draw, pictures register from a mono proof into colour, a tape of facts runs.
 * Every colour and face is a token below; every animation has a reduced-motion fallback; content is readable with scripting off. */

:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --nameplate: clamp(1.625rem, 6.2vw + 0.25rem, 5rem);
  --head-lead: clamp(2.5rem, 4.5vw + 0.5rem, 4.5rem);
  --head-story: clamp(1.75rem, 2.2vw + 1rem, 3rem);
  --head-brief: clamp(1.5rem, 0.9vw + 1rem, 1.953rem);
  --figure: clamp(3.5rem, 7vw + 1rem, 7.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-stamp: cubic-bezier(0.2, 1.6, 0.4, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms; --dur-set: 700ms; --dur-plate: 1100ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(45% 0.11 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 96px; --section-gap: 128px; --section-gap-l: 160px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500;
  --color-paper: oklch(94% 0.011 92); --color-paper-2: oklch(90.5% 0.015 88); --color-paper-3: oklch(87% 0.017 86);
  --color-ink: oklch(17% 0.012 60); --color-ink-2: oklch(27% 0.012 58); --color-muted: oklch(46% 0.014 60);
  --color-rule: oklch(68% 0.016 75); --color-rule-2: oklch(34% 0.012 60);
  --color-accent: oklch(44% 0.13 32); --color-accent-ink: oklch(95% 0.012 90); --color-focus: oklch(48% 0.17 32);
  --color-focus-on-ink: oklch(74% 0.12 40);
  --color-highlight: oklch(88% 0.09 95);
  --color-glare: oklch(98% 0.01 92);
  --font-display: "Zilla Slab", "Noto Serif SC", ui-serif, Georgia, serif;
  --font-body: "Spectral", "Noto Serif SC", ui-serif, Georgia, serif;
  --font-outlier: "Libre Franklin", "Noto Serif SC", ui-sans-serif, sans-serif;
  --rule-hair: 1px;
  --tracking-display: -0.02em; --display-weight: 700;
  --thumb: 22px;
}
:lang(zh) { --tracking-display: 0; }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); scroll-behavior: smooth; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: var(--color-highlight); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; color: var(--color-ink); }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; } h4 { font-size: var(--text-lg); line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: lining-nums tabular-nums; }
.nowrap { white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- material ---------- */

.rule--double { box-sizing: content-box; height: 2px; margin: 0; border: 0; border-block: var(--rule-hair) solid var(--color-rule-2); }
a { color: var(--color-accent); text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.16em; transition: text-decoration-thickness var(--dur-micro) var(--ease-out); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); text-decoration: none; }
.skip:focus-visible { top: var(--space-md); }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: 0; background: none; color: var(--color-ink); font: 700 0.9375rem/1 var(--font-display); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-ink); color: var(--color-paper); }
.btn--primary:hover { background: var(--color-accent); }
.btn--ruled { border-block: var(--rule-hair) solid var(--color-ink); color: var(--color-ink); }
.btn--ruled:hover { background: var(--color-highlight); }
.btn--paper { background: var(--color-paper); color: var(--color-ink); }
.btn--paper:hover { background: var(--color-highlight); }
.btn--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }

/* labels and figures: the agate face, a step smaller, sentence case */
.agate, .folio, figcaption, .label { font-family: var(--font-outlier); font-size: var(--text-sm); font-weight: 500; line-height: 1.4; color: var(--color-muted); }
figcaption { padding-top: var(--space-xs); }
.answer { font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }
.dek { max-width: 38ch; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); }

/* a fact SENDA has not supplied yet */
.fill { padding: 0 var(--space-xs); border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); font-style: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* a boxed editor's note */
.note { padding: var(--space-md) var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-left: 4px solid var(--color-accent); background: var(--color-paper-2); font-size: var(--text-md); color: var(--color-ink-2); }
.note > * + * { margin-top: var(--space-xs); }

/* ---------- photographs: full colour, registered from a mono proof ---------- */

.photo { position: relative; overflow: hidden; margin: 0; border: var(--rule-hair) solid var(--color-rule); background: linear-gradient(160deg, var(--color-paper-2), var(--color-paper-3)); }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(var(--zoom, 1)); transform-origin: var(--origin, 50% 50%); z-index: 1; }
.photo:has(> img) > :not(img):not([data-keep]) { display: none !important; }
.photo--cut { background: var(--color-paper); }
.photo--cut > img { object-fit: contain; mix-blend-mode: multiply; }
.plate::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background-image: radial-gradient(circle at center, var(--color-ink) 0.6px, transparent 1.2px); background-size: 4px 4px; mix-blend-mode: multiply; opacity: 0; transition: opacity var(--dur-plate) var(--ease-out) 120ms; }
.js .plate > img { filter: grayscale(1) contrast(1.15); transition: filter var(--dur-plate) var(--ease-out) 120ms, transform var(--dur-long) var(--ease-out); animation: plate-safety 0s 5s forwards; }
.js .plate:not(.is-in)::after { opacity: 0.32; }
.js .plate.is-in > img { filter: none; }
@keyframes plate-safety { to { filter: none; } }
a:hover > .photo > img, .linecard__link:hover .photo > img { transform: scale(calc(var(--zoom, 1) * 1.03)); }
.photo > img { transition: transform var(--dur-long) var(--ease-out), filter var(--dur-plate) var(--ease-out) 120ms; }

/* ---------- reveals ---------- */

.js [data-ink] { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); animation: ink-safety 0s 5s forwards; }
.js [data-ink].is-in { opacity: 1; transform: none; }
@keyframes ink-safety { to { opacity: 1; transform: none; } }
.js [data-rule] { transform: scaleX(0); transform-origin: 0 50%; transition: transform 900ms var(--ease-out); animation: rule-safety 0s 5s forwards; }
.js [data-rule].is-in { transform: none; }
@keyframes rule-safety { to { transform: none; } }
/* headlines set word by word */
.js [data-typeset]:not(.is-split) { visibility: hidden; animation: set-safety 0s 3s forwards; }
@keyframes set-safety { to { visibility: visible; } }
[data-typeset] .w { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: bottom; }
[data-typeset] .w > span { display: inline-block; transform: translateY(108%); transition: transform var(--dur-set) var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
[data-typeset].is-set .w > span { transform: none; }
/* a rubber stamp */
.stamp { display: inline-block; padding: var(--space-2xs) var(--space-sm); border: 2px solid var(--color-accent); color: var(--color-accent); font: 600 var(--text-sm)/1.2 var(--font-outlier); transform: rotate(-4deg); }
.js .stamp[data-stamp] { opacity: 0; transform: rotate(-14deg) scale(1.6); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-long) var(--ease-stamp); }
.js .stamp[data-stamp].is-in { opacity: 1; transform: rotate(-4deg) scale(1); }

/* reading progress, as ink across the top edge */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: var(--z-toast); background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* pages turn */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out 240ms var(--ease-in) both; }
::view-transition-new(root) { animation: page-in 460ms var(--ease-out) both; }
@keyframes page-out { to { opacity: 0; transform: translateX(-28px) rotate(-0.35deg); } }
@keyframes page-in { from { opacity: 0; transform: translateX(28px) rotate(0.35deg); } }
.nameplate { view-transition-name: nameplate; }
.ticker { view-transition-name: ticker; }
.sections { view-transition-name: sections; }

/* ---------- masthead ---------- */

.mast { padding-top: var(--space-xs); }
.mast__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 56px; padding-bottom: var(--space-xs); }
.mast__date { display: flex; gap: var(--space-md); font: 500 var(--text-sm)/1.4 var(--font-outlier); color: var(--color-muted); font-variant-numeric: lining-nums tabular-nums; }
.mast__vol { color: var(--color-ink-2); white-space: nowrap; }
.mast__util { display: flex; align-items: center; gap: var(--space-lg); }
.mast__util > a:not(.btn) { color: var(--color-ink); text-decoration: none; font: 500 var(--text-sm)/1 var(--font-outlier); white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.mast__util > a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.mast__tel { font-variant-numeric: lining-nums tabular-nums; }
.langs { position: relative; font: 500 var(--text-sm)/1 var(--font-outlier); }
.langs > summary { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-xs); cursor: pointer; list-style: none; color: var(--color-ink); }
.langs > summary::-webkit-details-marker { display: none; }
.langs > summary::after { content: ""; width: 0.4em; height: 0.4em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-25%) rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.langs[open] > summary::after { transform: translateY(15%) rotate(225deg); }
.langs > summary:hover { background: var(--color-highlight); }
.langs > summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.langs ul { position: absolute; right: 0; top: 100%; z-index: var(--z-dropdown); min-width: 10rem; margin: 0; padding: var(--space-xs) 0; list-style: none; background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule-2); border-top: 3px double var(--color-rule-2); }
.langs li a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); color: var(--color-ink); text-decoration: none; }
.langs li a:hover { background: var(--color-highlight); }
.langs li a[aria-current] { font-weight: 600; color: var(--color-accent); }
.nameplate { display: block; padding-block: var(--space-sm) var(--space-xs); color: var(--color-ink); font: 700 var(--nameplate)/1 var(--font-display); letter-spacing: -0.025em; text-align: center; text-decoration: none; white-space: nowrap; }
.nameplate:hover { text-decoration: none; }
.mast:not(.mast--front) .nameplate { font-size: clamp(1.5rem, 2.6vw + 0.5rem, 2.75rem); padding-block: var(--space-sm); }
.sections { border-top: var(--rule-hair) solid var(--color-rule); }
.sections ul { display: flex; justify-content: center; gap: var(--space-xs) var(--space-lg); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.sections a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-xs); color: var(--color-ink); font: 700 var(--text-md)/1 var(--font-display); text-decoration: none; white-space: nowrap; }
.sections a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur-short) var(--ease-out); }
.sections a:hover::after, .sections a[aria-current]::after { transform: scaleX(1); }
.sections a[aria-current] { color: var(--color-accent); }
.sections a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.strap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); padding-block: var(--space-xs); font: 500 var(--text-sm)/1.4 var(--font-outlier); color: var(--color-muted); }
.strap p:nth-child(2) { text-align: center; color: var(--color-ink-2); }
.strap p:last-child { text-align: right; }

/* the tape of facts */
.ticker { display: flex; align-items: stretch; margin-top: var(--space-xs); background: var(--color-ink); color: var(--color-paper); font: 500 var(--text-sm)/1 var(--font-outlier); }
.ticker__flag { display: flex; align-items: center; padding: 0 var(--space-md); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; white-space: nowrap; }
.ticker__window { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ticker__tape { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.ticker__tape li { padding: var(--space-sm) var(--space-lg); white-space: nowrap; border-right: var(--rule-hair) solid var(--color-muted); }
.ticker.is-running .ticker__window { overflow: hidden; }
.ticker.is-running .ticker__tape { animation: tape 70s linear infinite; }
.ticker.is-running:hover .ticker__tape, .ticker.is-running:focus-within .ticker__tape { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- inner page furniture ---------- */

.crumbs { padding-block: var(--space-md) 0; font: 500 var(--text-sm)/1.4 var(--font-outlier); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; color: var(--color-muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--color-rule); }
.crumbs a { color: var(--color-ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.pagehead { padding-block: var(--space-xl) var(--space-2xl); }
.folio { margin-bottom: var(--space-lg); padding-bottom: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
.pagehead__grid { display: grid; gap: var(--space-xl) var(--space-2xl); }
.pagehead__grid--aside { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.pagehead__text { display: grid; gap: var(--space-lg); align-content: start; }
.pagehead h1 { font-size: var(--head-lead); line-height: 1.04; max-width: 18ch; }

.section { padding-block: var(--section-gap-s); }
.section--tint { background: var(--color-paper-2); border-block: 4px double var(--color-rule-2); }
.section--tight { padding-block: var(--space-2xl); }
.sechead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-md) var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); padding-top: var(--space-lg); border-top: 4px double var(--color-rule-2); }
.sechead h2 { font-size: var(--head-story); line-height: 1.08; }
.sechead__side { display: grid; gap: var(--space-sm); justify-items: start; }
.sechead__side p { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 40ch; }
.more { font: 700 var(--text-md)/1.2 var(--font-display); }

.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-xl); row-gap: var(--space-xl); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-xl); row-gap: var(--space-xl); }
.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-xl); row-gap: var(--space-2xl); }
.cols2 > * + *, .cols3 > * + *, .cols4 > * + * { position: relative; }
.ruled > * + *::before { content: ""; position: absolute; left: calc(var(--space-xl) / -2); top: 0; bottom: 0; border-left: var(--rule-hair) solid var(--color-rule); }
.cols4.ruled > :nth-child(4n + 1)::before, .cols3.ruled > :nth-child(3n + 1)::before, .cols2.ruled > :nth-child(2n + 1)::before { display: none; }

/* a listing: key, value, agate figure */
.listing { margin: 0; border-top: 4px double var(--color-rule-2); }
.listing > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr); column-gap: var(--space-xl); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.listing dt { font: 700 var(--text-title)/1.2 var(--font-display); }
.listing dd { margin: 0; font-size: var(--text-lead); color: var(--color-ink-2); }
.listing dd.agate { font: 500 var(--text-lead)/1 var(--font-outlier); font-variant-numeric: lining-nums tabular-nums; text-align: right; color: var(--color-ink); }

/* tables, set like a results page */
.table { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.table caption { text-align: left; padding-bottom: var(--space-sm); }
.table thead th { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: 2px solid var(--color-rule-2); text-align: left; vertical-align: bottom; font: 600 var(--text-sm)/1.3 var(--font-outlier); color: var(--color-ink-2); }
.table tbody th, .table td { padding: var(--space-md) var(--space-md) var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: baseline; }
.table tbody th { font: 700 var(--text-md)/1.3 var(--font-display); }
.table td.num, .table th.num { font-family: var(--font-outlier); font-variant-numeric: lining-nums tabular-nums; }
.table tbody tr { transition: background-color var(--dur-short) var(--ease-out); }
.table tbody tr:hover { background: var(--color-highlight); }
.table-wrap { position: relative; overflow-x: auto; }

/* questions, answer first */
.faqs { border-top: 4px double var(--color-rule-2); }
.faq { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg); align-items: center; min-height: 64px; padding-block: var(--space-md); cursor: pointer; list-style: none; font: 700 var(--text-title)/1.2 var(--font-display); letter-spacing: var(--tracking-display); }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: ""; width: 0.7em; height: 0.7em; border-right: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); transform: translateY(-25%) rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.faq[open] > summary::after { transform: translateY(15%) rotate(225deg); }
.faq > summary:hover span { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.faq > summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.faq__a { padding: 0 var(--space-2xl) var(--space-lg) 0; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }
.faq[open] .faq__a { animation: answer var(--dur-long) var(--ease-out); }
@keyframes answer { from { opacity: 0; transform: translateY(-6px); } }

/* a product line, as a catalogue entry */
.linecard { display: grid; align-content: start; gap: var(--space-sm); min-width: 0; }
.linecard__link { display: grid; gap: var(--space-md); color: var(--color-ink); text-decoration: none; }
.linecard__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.linecard__name { font-size: var(--text-title); line-height: 1.15; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.16em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.linecard__link:hover .linecard__name { text-decoration-color: var(--color-accent); }
.linecard__blurb { color: var(--color-ink-2); }

/* ---------- write to the factory: the ink band ---------- */

.write { margin-top: var(--section-gap-s); padding-block: var(--section-gap-s); background: var(--color-ink); color: var(--color-paper); }
.write a { color: var(--color-paper); text-decoration-color: var(--color-accent); }
.write :focus-visible { outline-color: var(--color-focus-on-ink); }
.write__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-xl); row-gap: var(--space-2xl); align-items: start; }
.write__head { grid-column: 1 / span 5; display: grid; gap: var(--space-lg); }
.write h2 { color: var(--color-paper); }
.write__line { max-width: 34ch; font-size: var(--text-lead); line-height: 1.45; color: var(--color-paper-2); }
.contact { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-lg) var(--space-xl); margin-top: var(--space-md); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-accent); }
.contact__tel { grid-column: 1 / -1; font: 700 var(--text-title)/1.2 var(--font-display); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.qr { display: contents; }
.qr img { width: 112px; height: 112px; }
.qr figcaption { padding: 0; color: var(--color-paper-2); max-width: 18ch; }
.rfq { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-xl); }
.field { display: grid; gap: var(--space-xs); min-width: 0; }
.field--wide, .rfq__foot { grid-column: 1 / -1; }
.field label { font: 500 var(--text-sm)/1.4 var(--font-outlier); color: var(--color-paper-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-paper-3); border-radius: 0; background: var(--color-paper); color: var(--color-ink); font: 400 var(--text-md)/1.4 var(--font-body); outline: 2px solid transparent; outline-offset: -3px; transition: background-color var(--dur-short) var(--ease-out); }
.field textarea { padding-block: var(--space-sm); min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { background: var(--color-glare); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-color: var(--color-accent); }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field input[aria-invalid] { border-color: var(--color-error); border-width: 2px; }
.rfq__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }
.rfq__help { min-height: 1lh; font: 500 var(--text-sm)/1.4 var(--font-outlier); color: var(--color-paper-2); max-width: 44ch; }
/* the same form on paper */
.on-paper .field label { color: var(--color-ink-2); }
.on-paper .field input, .on-paper .field select, .on-paper .field textarea { border-color: var(--color-muted); background: var(--color-glare); }
.on-paper .rfq__help { color: var(--color-ink-2); }
.on-paper .btn--paper { background: var(--color-ink); color: var(--color-paper); }
.on-paper .btn--paper:hover { background: var(--color-accent); }

/* ---------- footer: colophon ---------- */

.foot { padding-block: var(--space-3xl) var(--space-xl); }
.write + .foot, main:has(> .write:last-child) + .foot { padding-top: var(--space-2xl); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); column-gap: var(--space-xl); row-gap: var(--space-xl); padding-top: var(--space-xl); }
.foot__lead { display: grid; gap: var(--space-md); align-content: start; }
.foot__mark { font: 700 var(--text-2xl)/1.1 var(--font-display); letter-spacing: -0.02em; }
.foot__colophon { color: var(--color-ink-2); max-width: 40ch; }
.foot__tel a { font: 700 var(--text-lg)/1.2 var(--font-display); color: var(--color-ink); font-variant-numeric: lining-nums tabular-nums; }
.foot__h { margin-bottom: var(--space-sm); font: 600 var(--text-sm)/1.3 var(--font-outlier); color: var(--color-muted); }
.foot__h--gap { margin-top: var(--space-lg); }
.foot__col ul { display: grid; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.foot__col a { display: inline-flex; align-items: center; min-height: 32px; color: var(--color-ink); text-decoration: none; }
.foot__col a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm) var(--space-xl); margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font: 500 var(--text-sm)/1.4 var(--font-outlier); color: var(--color-muted); }
.foot__legal p { max-width: none; }

/* ---------- the front page ---------- */

.front { padding-block: var(--space-xl) var(--space-2xl); }
.lead__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-2xl); row-gap: var(--space-xl); align-items: center; }
.lead__text { display: grid; gap: var(--space-lg); }
.front h1 { max-width: 16ch; font-size: var(--head-lead); line-height: 1.04; }
.lead__fig { margin: 0; }
.photo--lead { aspect-ratio: 1 / 1; max-height: 500px; width: 100%; }

/* the brightness forecast: the box score, with an instrument */
.forecast { padding-block: var(--space-2xl) var(--space-3xl); background: var(--color-paper-2); border-block: 4px double var(--color-rule-2); }
.forecast__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: var(--space-2xl); row-gap: var(--space-xl); align-items: center; }
.forecast__main { display: grid; gap: var(--space-lg); }
.forecast__flag { justify-self: start; }
.forecast__main h2 { max-width: 15ch; }
.forecast__main .answer { max-width: 44ch; }
.score { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--space-xs) 0 0; border-block: 4px double var(--color-rule-2); }
.score > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-xs); padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; }
.score > div + div { padding-left: var(--space-xl); border-left: var(--rule-hair) solid var(--color-rule); }
.score dd { margin: 0; font: 700 var(--figure)/0.95 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.score dd span { font: 500 var(--text-lead)/1 var(--font-outlier); letter-spacing: 0; color: var(--color-ink-2); }
.score dt { font: 500 var(--text-sm)/1.4 var(--font-outlier); color: var(--color-muted); }

.bench { margin: 0; display: grid; border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper); }
/* the frame shows the photo's right 977 x 760 px; the screen rectangles are in the photo's own coordinates */
.window { position: relative; overflow: hidden; aspect-ratio: 976.8 / 760; width: 100%; --t: 0.143; --glare: 0.7; }
.window > img, .window__screens { position: absolute; inset: 0 0 auto auto; width: auto; height: calc(100% * 888 / 760); aspect-ratio: 1920 / 888; max-width: none; object-fit: fill; }
.window > img { filter: saturate(0.55) contrast(0.95); }
.window__screens { z-index: 2; }
.window__screen { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; filter: brightness(calc(0.62 + 0.5 * var(--t))) contrast(calc(0.6 + 0.55 * var(--t))) saturate(calc(0.2 + 1.1 * var(--t))); }
.window__screen--a { clip-path: inset(13.06% 29.79% 31.98% 55.73%); }
.window__screen--b { clip-path: inset(13.06% 3.8% 31.98% 81.72%); }
.window__glare { position: absolute; background: linear-gradient(118deg, var(--color-glare), color-mix(in oklab, var(--color-paper-3) 70%, transparent) 55%, var(--color-glare)); opacity: var(--glare); }
.window__glare--a { inset: 13.06% 29.79% 31.98% 55.73%; }
.window__glare--b { inset: 13.06% 3.8% 31.98% 81.72%; }
.meter { display: grid; gap: var(--space-2xs); padding: var(--space-md) var(--space-lg) var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule-2); }
.meter__top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-md); align-items: center; padding-bottom: var(--space-xs); }
.meter__value { display: flex; align-items: baseline; gap: var(--space-xs); white-space: nowrap; }
.meter__value .fig { font: 700 var(--text-3xl)/0.9 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; color: var(--color-ink); }
.meter__unit { font: 500 var(--text-md)/1 var(--font-outlier); color: var(--color-ink-2); }
.readout { min-height: calc(3 * 1.45em); font: 500 var(--text-sm)/1.45 var(--font-outlier); color: var(--color-ink-2); }
.meter__label { font: 500 var(--text-sm)/1.4 var(--font-outlier); color: var(--color-muted); }
.meter__track { position: relative; --tp: 0.1429; }
.meter__track::before, .meter__fill { content: ""; position: absolute; left: calc(var(--thumb) / 2); right: calc(var(--thumb) / 2); top: 50%; height: 2px; margin-top: -1px; background: var(--color-rule); }
.meter__fill { background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(var(--tp)); }
.range { position: relative; z-index: 1; display: block; width: 100%; height: 44px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.range::-webkit-slider-runnable-track { height: 44px; background: none; }
.range::-moz-range-track { height: 44px; background: none; }
.range::-webkit-slider-thumb { width: var(--thumb); height: 30px; margin-top: 7px; border: 0; border-radius: 0; background: var(--color-ink); -webkit-appearance: none; appearance: none; transition: background-color var(--dur-micro) var(--ease-out); }
.range::-moz-range-thumb { width: var(--thumb); height: 30px; border: 0; border-radius: 0; background: var(--color-ink); transition: background-color var(--dur-micro) var(--ease-out); }
.range:hover::-webkit-slider-thumb { background: var(--color-accent); }
.range:hover::-moz-range-thumb { background: var(--color-accent); }
.range:active::-webkit-slider-thumb { background: var(--color-focus); }
.range:active::-moz-range-thumb { background: var(--color-focus); }
.range:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.range:disabled { opacity: 0.55; cursor: not-allowed; }
.scale { position: relative; height: 44px; margin-inline: calc(var(--thumb) / 2); font: 500 var(--text-xs)/1.3 var(--font-outlier); color: var(--color-muted); }
.tick { position: absolute; top: 0; left: calc(var(--at) * 100%); transform: translateX(-50%); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.tick:first-child { transform: none; }
.tick--end { transform: translateX(-100%); }
.zone { position: absolute; top: 20px; left: calc(var(--from) * 100%); width: calc((var(--to) - var(--from)) * 100%); padding-top: var(--space-2xs); border-top: 2px solid var(--color-rule); white-space: nowrap; }
.zone--glass { border-top-color: var(--color-accent); color: var(--color-ink-2); }

.catalogue { padding-top: var(--section-gap-s); }
.questions { padding-top: var(--section-gap-s); }
.brief { display: grid; align-content: start; gap: var(--space-md); }
.brief h3 { font-size: var(--head-brief); line-height: 1.12; max-width: 22ch; }
.brief .answer { font-size: 1.0625rem; }
.questions__more { margin-top: var(--space-xl); }

.plants { padding-top: var(--section-gap-s); }
.plants__fig { margin: 0; }
.photo--wide { aspect-ratio: 8 / 3; }
.plants .cols2 { margin-top: var(--space-2xl); }
.plants article { display: grid; align-content: start; gap: var(--space-md); }
.plants h2 { font-size: var(--head-story); line-height: 1.1; max-width: 20ch; }

.file { padding-top: var(--section-gap-s); }
.file__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-xl); row-gap: var(--space-2xl); align-items: end; }
.file h2 { grid-column: 1 / span 5; max-width: 9ch; font-size: var(--text-display-s); }
.file__fig { grid-column: 7 / -1; margin: 0; }
.photo--team { aspect-ratio: 13 / 8; }
.file .listing, .file__more { grid-column: 1 / -1; }

.rooms { padding-top: var(--section-gap-s); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: var(--space-lg); overflow-x: auto; padding-bottom: var(--space-md); scroll-snap-type: x proximity; scrollbar-color: var(--color-rule) transparent; }
.roomcard { display: grid; gap: var(--space-sm); scroll-snap-align: start; color: var(--color-ink); text-decoration: none; }
.roomcard:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.roomcard .photo { aspect-ratio: 13 / 9; }
.roomcard__name { font: 700 var(--text-lg)/1.2 var(--font-display); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.16em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.roomcard:hover .roomcard__name { text-decoration-color: var(--color-accent); }

.features { padding-top: var(--section-gap-s); }
.storycard { display: grid; align-content: start; gap: var(--space-md); color: var(--color-ink); text-decoration: none; }
.storycard:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.storycard .photo { aspect-ratio: 3 / 2; }
.storycard__title { font: 700 var(--head-brief)/1.12 var(--font-display); letter-spacing: var(--tracking-display); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.14em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.storycard:hover .storycard__title { text-decoration-color: var(--color-accent); }
.storycard__dek { color: var(--color-ink-2); }

/* ---------- under 60rem ---------- */

@media (max-width: 75rem) {
  .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols4.ruled > :nth-child(odd)::before { display: none; }
  .cols4.ruled > :nth-child(4n + 1):nth-child(even)::before { display: block; }
  .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__lead { grid-column: 1 / -1; }
}
@media (max-width: 60rem) {
  :root { --gutter: 24px; --section-gap-s: 72px; --section-gap: 96px; --section-gap-l: 120px; }
  .mast__util > a.mast__tel, .mast__util > a.mast__portal { display: none; }
  .sections ul { justify-content: flex-start; }
  .strap { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .strap p:first-child, .strap p:last-child { display: none; }
  .lead__grid, .forecast__grid, .cols2, .cols3, .pagehead__grid--aside, .sechead { grid-template-columns: minmax(0, 1fr); }
  .file__grid, .write__grid { grid-template-columns: minmax(0, 1fr); }
  .file h2, .file__fig, .write__head, .rfq { grid-column: 1 / -1; }
  .front h1 { max-width: 14ch; }
  .ruled > * + *::before { display: none !important; }
  .cols2.ruled > * + *, .cols3.ruled > * + * { padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
}
@media (max-width: 40rem) {
  :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; }
  .mast__date [data-today] { display: none; }
  .cols4 { grid-template-columns: minmax(0, 1fr); }
  .score > div { padding-right: var(--space-sm); }
  .score > div + div { padding-left: var(--space-md); }
  .score dd span { display: block; margin-top: var(--space-2xs); }
  .listing > div { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-2xs); }
  .listing dt { grid-column: 1; }
  .listing dd.agate { grid-column: 2; grid-row: 1; }
  .listing dd:not(.agate) { grid-column: 1 / -1; }
  .rfq { grid-template-columns: minmax(0, 1fr); }
  .photo--wide { aspect-ratio: 4 / 3; --zoom: 1.4; --origin: 50% 100%; }
  .meter { padding: var(--space-md); }
  .meter__top { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq__a { padding-right: 0; }
}

/* ---------- reduced motion: everything is simply there ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-ink], .js [data-rule], .js .stamp[data-stamp] { opacity: 1; transform: none; }
  .js .stamp[data-stamp] { transform: rotate(-4deg); }
  .js .plate > img { filter: none; }
  .js .plate:not(.is-in)::after { opacity: 0; }
  .js [data-typeset]:not(.is-split) { visibility: visible; }
  [data-typeset] .w > span { transform: none; }
  .ticker.is-running .ticker__tape { animation: none; }
  .ticker.is-running .ticker__window { overflow-x: auto; }
  .progress { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .btn:hover, .btn:active { transform: none; }
}

@media print {
  .mast__util, .sections, .ticker, .progress, .write, .foot__col, .skip { display: none !important; }
  body { background: none; }
}
