/* Website v2.0: tokens, then Tudoran Design System v2.0 (bundle.css), then the site's page layouts. */
/* Archivo, self-hosted (SIL OFL 1.1, assets/fonts/OFL.txt): variable width 62–125% and weight 100–900, Latin and Latin Extended. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../assets/fonts/archivo-latin-ext-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../assets/fonts/archivo-latin-normal.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; }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../assets/fonts/archivo-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../assets/fonts/archivo-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; }
:root{--paper:#f7f5ef;--paper-alt:#ebe8e0;--ink:#1b1a17;--ink-muted:#5d5a52;--rule:#1b1a17;--rule-soft:#cfccc2;--on-ink:#f7f5ef;--accent:#006d77;--signal:#974422;--logo-orange:#e29578;--font-display:"Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;--font-sans:"Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;--font-label:"Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:40px;--space-7:64px;--space-8:104px;--space-9:168px;--grid-columns:12;--grid-gutter:16px;--grid-margin:24px;--radius-none:0;--radius-dot:50%;color-scheme:light;}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--paper:#141413;--paper-alt:#1e1e1c;--ink:#eceae3;--ink-muted:#a3a097;--rule:#eceae3;--rule-soft:#2c2c29;--on-ink:#141413;--accent:#5cb8c1;--signal:#eea283;--logo-orange:#e29578;color-scheme:dark;}}
:root[data-theme="dark"]{--paper:#141413;--paper-alt:#1e1e1c;--ink:#eceae3;--ink-muted:#a3a097;--rule:#eceae3;--rule-soft:#2c2c29;--on-ink:#141413;--accent:#5cb8c1;--signal:#eea283;--logo-orange:#e29578;color-scheme:dark;}
:root[data-theme="light"]{--paper:#f7f5ef;--paper-alt:#ebe8e0;--ink:#1b1a17;--ink-muted:#5d5a52;--rule:#1b1a17;--rule-soft:#cfccc2;--on-ink:#f7f5ef;--accent:#006d77;--signal:#974422;--logo-orange:#e29578;color-scheme:light;}
/* Tudoran Design System v2.0, all Archivo. Base element styles; colours, type and spacing come from tokens.json. */
/* Motion: three curves only. arrive = things settling into place; draw = rules, strokes and paint being laid down;
   block = solid shapes sliding. Durations: 200-350ms for state changes, 500-700ms for drawing, up to 2s for paint. */
/* Spacing: every gap, padding and margin is a step of the scale (4 8 12 16 24 40 64 104 168, tokens space-1..9).
   The only exceptions are optical: 1-2px nudges and the 7px kept under rolled text for its brush stroke. */
:root { --ease-arrive: cubic-bezier(.2, .8, .2, 1); --ease-draw: cubic-bezier(.6, 0, .2, 1); --ease-block: cubic-bezier(.7, 0, .2, 1); --tick-l: 12px; --tick-s: 9px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
.td-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.td-panel { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-5); }
.td-label { font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.td-rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Buttons: ink, crop marks, line arrow, seal ---------- */
/* No boxes. Base: label type; the variants draw their own shapes. */
.td-button { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--ink); font-family: var(--font-label); font-stretch: 112%; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .25s ease .1s, left .3s var(--ease-arrive), top .3s var(--ease-arrive); }
.td-button-large { min-height: 56px; padding: 0 24px; font-size: 12px; }

/* 1 Ink: framed by crop marks; on hover ink leaks from the pointer, cropped by the button's edges.
   Needs [data-ink]: bundle.js draws three watercolour layers and a paper copy of the label masked by the dense ink. */
.td-button-primary { --tick: var(--ink); overflow: hidden; background-image: linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)); background-repeat: no-repeat; background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom; background-size: 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px; }
.td-button-primary > :not(.td-ink) { position: relative; z-index: 0; }
.td-ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 1; }
/* three paints: dense ink, a pale ink wash, a teal wash; they mix like wet watercolour */
.td-ink-dense, .td-ink-wash { fill: var(--ink); }
.td-ink-tint { fill: var(--accent); }
/* on the dark theme the third paint is the logo's orange instead of teal */
[data-theme="dark"] .td-ink-tint { fill: var(--logo-orange); }
.td-ink-layer { mix-blend-mode: multiply; }
[data-theme="dark"] .td-ink-layer { mix-blend-mode: screen; }
/* at rest the main action carries a dried ink dab behind its label, so it is the main action before any hover and on
   touch screens; the dab fades back as the fresh paint arrives */
.td-button-primary::before { content: ""; position: absolute; inset: 8px 5px; background: var(--ink); opacity: .12; -webkit-mask: var(--dab-mask) 0 0 / 100% 100% no-repeat; mask: var(--dab-mask) 0 0 / 100% 100% no-repeat; pointer-events: none; transition: opacity .4s ease; }
[data-theme="dark"] .td-button-primary::before { opacity: .18; }
.td-button-primary.is-inked::before { opacity: .05; }
/* pressed: the dab darkens at once (primary); the wash and quiet buttons dim their label */
.td-button-primary:active::before { opacity: .3; transition: none; }
.td-button-outline:active, .td-button-text:active, .td-more:active { opacity: .7; }
/* the paper copy of the label, shown only where the dense ink is */
.td-ink-over text, .td-ink-over rect { fill: var(--paper); }
.td-ink-over path { stroke: var(--paper); }
/* the same paint drawn with WebGL (bundle.js): a canvas for the paint, and for the label a group that shows its paper
   copy only where the dense ink is. The copy sits on black and is multiplied by the dense ink's coverage (a canvas),
   so the group is black wherever there is nothing to show, and "lighten" then leaves the page as it is there.
   On a dark ground (dark theme, or the footer in the light theme) it is the reverse: white, screen, "darken". */
.td-ink-gl { display: block; }
.td-ink-flip { background: #000; mix-blend-mode: lighten; }
.td-ink-flip > svg, .td-ink-flip > canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.td-ink-flip > canvas { mix-blend-mode: multiply; }
.td-ink-flip.is-dark-ground { background: #fff; mix-blend-mode: darken; }
.td-ink-flip.is-dark-ground > canvas { mix-blend-mode: screen; }

/* 2 Wash (secondary): crop marks stay still; on hover one pale ink wash seeps in from the pointer,
   like water drawn into paper, over about half the button. Needs data-ink="wash". The label stays ink. */
.td-button-outline { --tick: var(--ink); overflow: hidden; background-image: linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)); background-repeat: no-repeat; background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom; background-size: 9px 1px, 1px 9px, 9px 1px, 1px 9px, 9px 1px, 1px 9px, 9px 1px, 1px 9px; }
.td-button-outline > :not(.td-ink) { position: relative; z-index: 2; }

/* 3 Quiet action: the letters roll up one by one and a brush stroke paints itself under the word.
   Needs [data-roll]: bundle.js splits the label into letters and adds the stroke. */
.td-button-text { padding: 12px 0 8px; min-height: 44px; }
.td-roll { display: inline-flex; overflow: hidden; height: 1.25em; line-height: 1.25em; }
.td-roll > span { display: inline-block; white-space: pre; text-shadow: 0 1.25em currentColor; transition: transform .5s var(--ease-block); transition-delay: calc(var(--i, 0) * 24ms); }
.td-rolled { position: relative; display: inline-flex; }
.td-rolled:not(.td-button) { padding-bottom: 7px; }
.td-rolled:hover .td-roll > span, .td-rolled:focus-visible .td-roll > span, [data-roll-host]:hover .td-roll > span, [data-roll-host]:focus-visible .td-roll > span { transform: translateY(-1.25em); }
.td-brush { position: absolute; left: -2px; right: -4px; bottom: 0; width: calc(100% + 6px); height: 7px; fill: currentColor; clip-path: inset(0 100% 0 0); transition: clip-path .65s var(--ease-draw) .08s; }
.td-rolled:hover .td-brush, .td-rolled:focus-visible .td-brush, [data-roll-host]:hover .td-brush, [data-roll-host]:focus-visible .td-brush { clip-path: inset(0 0 0 0); }
.td-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 4 Hero (one per page): the action word set big and narrow on the paper, a small facts line beside it and one
   hairline under both. On hover the three paints of the main button bloom across the word, cropped by its own box;
   letters turn to paper over the dense ink. Needs data-ink. */
.td-hero { position: relative; overflow: hidden; display: inline-flex; align-items: flex-end; gap: 24px; padding: 8px 12px 12px 4px; color: var(--ink); text-decoration: none; background: linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat; }
.td-hero > :not(.td-ink) { position: relative; z-index: 0; }
.td-hero-w { font-family: var(--font-display); font-stretch: 62%; font-weight: 900; font-size: clamp(72px, 10.6vw, 136px); line-height: .78; letter-spacing: -0.03em; word-spacing: .08em; text-transform: uppercase; }
.td-hero-meta { padding-bottom: 4px; font-family: var(--font-label); font-stretch: 112%; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.td-hero:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Not available: faint crop marks, muted label, no motion. */
.td-button:disabled, .td-button[aria-disabled="true"] { --tick: var(--rule-soft); color: var(--ink-muted); cursor: default; pointer-events: none; background-image: linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)); background-repeat: no-repeat; background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom; background-size: 9px 1px, 1px 9px, 9px 1px, 1px 9px, 9px 1px, 1px 9px, 9px 1px, 1px 9px; }
.td-button:disabled::before, .td-button:disabled::after, .td-button[aria-disabled="true"]::before, .td-button[aria-disabled="true"]::after { display: none; }

/* Magnetic: buttons with [data-magnetic] lean up to 6px toward the pointer (script sets --mx / --my).
   It moves by left/top, not transform: kept from the earlier blend version; harmless. */
[data-magnetic] { left: var(--mx, 0); top: var(--my, 0); }
/* Arrows are drawn, not typed: Archivo has no → or ↗, and system fallbacks differ per device.
   <i class="td-arr"></i> (east), data-dir="ne" (leaves the site), data-dir="s" (download). Hairline, currentColor. */
.td-arr { display: inline-block; flex: none; width: .95em; height: .95em; vertical-align: -0.1em; background: currentColor; -webkit-mask: var(--arr-e) center / contain no-repeat; mask: var(--arr-e) center / contain no-repeat; }
.td-arr[data-dir="ne"] { -webkit-mask-image: var(--arr-ne); mask-image: var(--arr-ne); }
.td-arr[data-dir="s"] { -webkit-mask-image: var(--arr-s); mask-image: var(--arr-s); }
/* in a standalone link the arrow leaves and comes back, after the letters have rolled */
.td-arrow { display: inline-flex; align-items: center; overflow: hidden; height: 1.25em; }
[data-roll-host]:hover .td-arrow > .td-arr, [data-roll-host]:focus-visible .td-arrow > .td-arr { animation: td-arr-e .6s var(--ease-draw) .16s both; }
[data-roll-host]:hover .td-arrow > .td-arr[data-dir="ne"], [data-roll-host]:focus-visible .td-arrow > .td-arr[data-dir="ne"] { animation-name: td-arr-ne; }
@keyframes td-arr-e { 45% { transform: translateX(120%); } 46% { transform: translateX(-120%); } }
@keyframes td-arr-ne { 45% { transform: translate(120%, -120%); } 46% { transform: translate(-120%, 120%); } }

/* Link: inline links are ink with a printed 1px underline; on hover a pale ink wash is brushed under the words,
   line by line. Standalone links roll their letters over a brush stroke, like the quiet button. */
.td-link, .td-prose a:not([class]) { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; background-image: var(--link-wash); background-repeat: no-repeat; background-position: left 85%; background-size: 0% .7em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .6s var(--ease-draw); }
.td-link:hover, .td-link:focus-visible, .td-prose a:not([class]):hover, .td-prose a:not([class]):focus-visible { background-size: 100% .7em; }
.td-more { display: inline-flex; align-items: flex-start; gap: 8px; font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); text-decoration: none;  min-height: 36px; padding-top: 8px; box-sizing: border-box;}

.td-button:focus-visible, .td-link:focus-visible, .td-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .td-arrow > .td-arr { animation: none !important; } .td-button, .td-link, .td-roll > span, .td-brush { transition: none; } [data-magnetic] { left: 0; top: 0; } }

/* ---------- Step 2: structure ---------- */
.td-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter, 16px); padding-inline: var(--grid-margin, 24px);  max-width: 1680px; margin-inline: auto;}
.td-logo-dark { display: none; }
[data-theme="dark"] .td-logo-light { display: none; }
[data-theme="dark"] .td-logo-dark { display: block; }

/* ---------- Header ---------- */
/* Logo on columns 1-4, numbered links from column 5, a live place-and-time label on 11-12, a full rule under it. */
.td-header { position: relative; z-index: 10; border-bottom: 1px solid var(--rule); }
/* the logo sits above the header's rule, centred in the bar, level with the links, the time and the menu button */
.td-header-bar { align-items: center; min-height: 72px; transition: min-height .35s var(--ease-arrive); }
.td-header-logo { grid-column: 1 / span 4; display: inline-flex; justify-self: start; color: inherit; text-decoration: none; }
.td-header-logo { align-self: center; }
.td-header-logo .td-logo-compact { display: none; }
.td-nav { grid-column: 5 / span 6; display: flex; gap: 40px; align-items: center; white-space: nowrap; }
.td-nav a { position: relative; display: inline-flex; gap: 8px; padding-block: 16px 12px; font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; transition: color .2s ease; }
.td-nav-index { color: var(--ink-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
/* hover: the word's letters roll and a brush stroke paints itself under it, as on the quiet button */
.td-nav a { align-items: flex-start; }
.td-nav a .td-rolled { padding-bottom: 8px; }
.td-nav a:hover { color: var(--ink); }
/* current page: ink text over the one teal brush stroke, already painted */
.td-nav a[aria-current] { color: var(--ink); }
.td-nav a[aria-current] .td-brush { fill: var(--accent); clip-path: inset(0 0 0 0); opacity: .9; }
/* the logo: a pale wash seeps into the grid from the pointer (data-ink="wash") */
.td-header-logo { position: relative; overflow: hidden; }
.td-header-logo > :not(.td-ink) { position: relative; z-index: 2; }
.td-header-meta { grid-column: 11 / -1; justify-self: end; display: flex; gap: 16px; font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-header-meta time { color: var(--ink); }
/* the time: one clock, in the header, never blinking */
@keyframes td-blink { 50% { opacity: .25; } }
.td-menu-button { display: none; }

/* ---------- Menu (phones; the same sheet can open from a desktop "Index" link) ---------- */
.td-header-phone .td-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 16px; }
.td-header-phone .td-header-bar { display: flex; justify-content: space-between; align-items: center; min-height: 60px; }
.td-header-phone .td-nav, .td-header-phone .td-header-meta { display: none; }
.td-header-phone .td-logo { --logo-h: 32px; }
.td-header-phone .td-menu-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--ink); font-family: var(--font-label); font-stretch: 112%; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.td-menu-icon { position: relative; width: 18px; height: 9px; }
.td-menu-icon::before, .td-menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease-arrive), top .3s; }
.td-menu-icon::before { top: 0; } .td-menu-icon::after { top: 7.5px; }
.is-open .td-menu-icon::before { top: 3.75px; transform: rotate(45deg); }
.is-open .td-menu-icon::after { top: 3.75px; transform: rotate(-45deg); }

.td-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; min-height: var(--menu-h, 640px); padding: 8px 16px 24px; box-sizing: border-box; background-color: var(--paper); background-image: var(--paper-texture); background-size: var(--paper-size); background-blend-mode: var(--paper-blend); flex-direction: column; }
.is-open .td-menu { display: flex; }
.td-menu ol { list-style: none; margin: 0; padding: 0; }
.td-menu li { position: relative; overflow: hidden; }
.td-menu li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule-soft); transform: scaleX(0); transform-origin: left; }
.td-menu a { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 16px 0 12px; color: var(--ink); text-decoration: none; }
.td-menu .n { grid-row: 1 / span 2; padding-top: 8px; font-family: var(--font-label); font-stretch: 112%; font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.td-menu .w { font-family: var(--font-display); font-stretch: 62%; font-size: 56px; line-height: .84; font-weight: 900; letter-spacing: -0.03em; word-spacing: .08em; text-transform: uppercase; transform: translateY(105%); }
.td-menu .d { margin-top: 8px; font-size: 13px; color: var(--ink-muted); opacity: 0; }
.td-menu .w { position: relative; justify-self: start; }
.td-menu .w .td-brush { bottom: -6px; height: 9px; fill: var(--accent); opacity: .9; }
.td-menu a[aria-current] .n { color: var(--ink); }
.td-menu-foot { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-label); font-stretch: 112%; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.td-menu-foot a { color: var(--ink); }
/* opening: rules draw, names rise, descriptions fade, 60ms apart */
.is-open .td-menu li::after { animation: td-draw .6s var(--ease-draw) forwards; animation-delay: calc(var(--i) * 60ms); }
.is-open .td-menu .w { animation: td-rise .55s var(--ease-arrive) forwards; animation-delay: calc(120ms + var(--i) * 60ms); }
.is-open .td-menu .d { animation: td-fade .4s ease forwards; animation-delay: calc(320ms + var(--i) * 60ms); }
.is-open .td-menu a[aria-current] .td-brush { animation: td-paint .7s var(--ease-draw) forwards; animation-delay: calc(420ms + var(--i) * 60ms); }
@keyframes td-paint { to { clip-path: inset(0 0 0 0); } }
@keyframes td-draw { to { transform: none; } }
@keyframes td-rise { to { transform: none; } }
@keyframes td-fade { to { opacity: 1; } }

.td-header-logo:focus-visible, .td-nav a:focus-visible, .td-menu-button:focus-visible, .td-menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .td-header-bar, .td-menu-icon::before, .td-menu-icon::after { transition: none; }
  .td-header-meta .td-colon { animation: none; }
  .is-open .td-menu li::after, .is-open .td-menu .w, .is-open .td-menu .d, .is-open .td-menu .td-brush { animation: none; transform: none; opacity: 1; clip-path: none; }
}

/* ---------- Index rows: number · title · category · date ---------- */
/* Purely typographic rows between rules. */
.td-index-wrap { position: relative; }
.td-index-head, .td-index-link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter, 16px); }
/* number col 1, title 2-8, category 9-10, date 11, arrow 12: the list sits on the page grid */
.td-index-head > :nth-child(1), .td-index-num { grid-column: 1; }
.td-index-head > :nth-child(2), .td-index-title { grid-column: 2 / span 7; }
.td-index-head > :nth-child(3), .td-index-cat { grid-column: 9 / span 2; }
.td-index-head > :nth-child(4), .td-index-date { grid-column: 11; }
.td-index-head > :nth-child(5), .td-index-arrow { grid-column: 12; }
.td-index-head { align-items: baseline; padding-bottom: 12px; font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.td-index-head .r { text-align: right; }
.td-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.td-index-row { position: relative; background: linear-gradient(var(--rule-soft), var(--rule-soft)) left bottom / 100% 1px no-repeat; }
.td-index-link { align-items: baseline; padding-block: 24px 16px; color: var(--ink); text-decoration: none; }
.td-index-num, .td-index-date { font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.03em; color: var(--ink-muted); font-variant-numeric: tabular-nums; transition: color .25s ease; }
.td-index-date { text-align: right; }
/* hover highlight: a pale ink dab brushed under the title from left to right, like an inline link */
.td-index-title { justify-self: start; font-size: 21px; line-height: 1.25; font-weight: 500; letter-spacing: -0.012em; background-image: var(--link-wash); background-repeat: no-repeat; background-position: left 88%; background-size: 0% .62em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: transform .4s var(--ease-arrive), background-size .6s var(--ease-draw); }
.td-index-cat { font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.td-index-soon { color: var(--signal); }
.td-index-arrow { justify-self: end; color: var(--ink); opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .4s var(--ease-arrive); }
.td-index-link:hover .td-index-title, .td-index-link:focus-visible .td-index-title { background-size: 100% .62em; }
.td-index-link:hover .td-index-num, .td-index-link:hover .td-index-date { color: var(--ink); }
.td-index-link:hover .td-index-arrow, .td-index-link:focus-visible .td-index-arrow { opacity: 1; transform: none; }
.td-index-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* reveal on entering view: each rule draws, then its text rises (add .td-reveal, then .is-in) */
.js .td-reveal .td-index-row { background-size: 0 1px; overflow: hidden; }
.js .td-reveal .td-index-link > * { transform: translateY(115%); }
.td-reveal.is-in .td-index-row { animation: td-rule .7s var(--ease-draw) forwards; animation-delay: calc(var(--i, 0) * 110ms); }
.td-reveal.is-in .td-index-link > * { animation: td-rise .6s var(--ease-arrive) forwards; animation-delay: calc(200ms + var(--i, 0) * 110ms); }
@keyframes td-rule { to { background-size: 100% 1px; } }

/* phones: number and title, then category and date */
.td-index-phone .td-index-head { display: none; }
.td-index-phone .td-index-link { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "num title" ". meta"; row-gap: 8px; padding-block: 16px 12px; }
.td-index-phone .td-index-num { grid-area: num; }
.td-index-phone .td-index-title { grid-area: title; font-size: 18px; }
.td-index-phone .td-index-cat { grid-area: meta; }
.td-index-phone .td-index-date { grid-area: meta; justify-self: end; }
.td-index-phone .td-index-arrow { display: none; }
@media (prefers-reduced-motion: reduce) {
  .td-index-title, .td-index-arrow { transition: none; }
  .td-reveal .td-index-row, .td-reveal .td-index-link > * { animation: none !important; transform: none; background-size: 100% 1px; }
}

/* Metadata: label / value pairs, a rule above each. */
.td-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--grid-gutter, 16px); row-gap: var(--space-5); margin: 0; }
/* a fact starts with a short ink tick, not a full rule */
.td-meta div { padding: var(--space-1) 0 0 var(--space-3); background: linear-gradient(var(--ink), var(--ink)) left top / 1px 12px no-repeat; }
.td-meta dt { font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-1); }
.td-meta-list dd { max-width: 34em; }
.td-meta dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.td-meta-list { grid-template-columns: 1fr; row-gap: 0; }
.td-meta-list div { display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: var(--grid-gutter, 16px); padding-block: var(--space-2); }
.td-meta-list div { background: none; }
.td-meta-list { padding-left: var(--space-3); background: linear-gradient(var(--ink), var(--ink)) left top / 1px 12px no-repeat; }
.td-meta-list dt { margin: 0; padding-top: 2px; }

/* ---------- Footer: the one inverted band, its top edge still wet ---------- */
/* Ink ground, on-ink type. The band bleeds up into the paper on arrival; its big word is the hero action in reverse:
   the leak paints paper onto the ink. Links roll over brush strokes; the theme switch is a brushed dab. */
.td-footer { position: relative; background: var(--ink); color: var(--on-ink); padding-block: var(--space-7) var(--space-5); --tick: var(--on-ink); --foot-paint: #5cb8c1; }   /* the third paint on the band: light teal on the light theme's ink band */
[data-theme="dark"] .td-footer { --foot-paint: var(--logo-orange); }
.td-footer-edge { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 30px; background-color: var(--ink); background-image: var(--band-texture); background-size: var(--paper-size); background-blend-mode: var(--paper-blend); -webkit-mask: var(--edge-mask) 0 0 / 100% 100% no-repeat; mask: var(--edge-mask) 0 0 / 100% 100% no-repeat; transform-origin: bottom; pointer-events: none; }
.js [data-reveal] .td-footer-edge, .js .td-footer[data-reveal] .td-footer-edge { transform: scaleY(.2); }
.is-in .td-footer-edge, .td-footer.is-in .td-footer-edge { transform: none; transition: transform 1.8s var(--ease-arrive) .1s; }
.td-footer a { color: var(--on-ink); text-decoration: none; }
.td-footer-call { grid-column: 1 / span 7; display: grid; gap: var(--space-3); align-content: start; }
.td-footer-k { font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: .7; }
.td-footer .td-hero { justify-self: start; color: var(--on-ink); background-image: linear-gradient(var(--on-ink), var(--on-ink)); }
.td-footer .td-hero-w { font-size: clamp(64px, 9vw, 136px); }
.td-footer .td-ink-dense, .td-footer .td-ink-wash { fill: var(--on-ink); }
.td-footer .td-ink-tint { fill: var(--foot-paint); }
.td-footer .td-ink-layer { mix-blend-mode: screen; }
[data-theme="dark"] .td-footer .td-ink-layer { mix-blend-mode: multiply; }
.td-footer .td-ink-over text, .td-footer .td-ink-over rect { fill: var(--ink); }
.td-footer-cols { grid-column: 9 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gutter, 16px); align-content: start; }
.td-footer h2 { margin: 0 0 var(--space-3); opacity: .7; font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.td-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: 16px; justify-items: start; }
.td-footer ul a { padding-block: 8px 4px; }   /* about 40px a row: a comfortable tap target */
.td-footer-base { grid-column: 1 / -1; margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--on-ink); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter, 16px); row-gap: var(--space-5); font-size: 13px; line-height: 1.45; }
.td-footer-logo { grid-column: 1 / span 4; align-self: start; justify-self: start; display: inline-flex; color: inherit; text-decoration: none; }
.td-footer-company { grid-column: 5 / span 4; margin: 0; }
.td-footer-anpc { grid-column: 9 / span 2; display: grid; gap: 8px; align-content: start; }
.td-footer-anpc a, .td-footer-company a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.td-footer-anpc a { padding-block: 8px; }
.td-footer-end { grid-column: 11 / -1; display: grid; gap: 16px; justify-items: end; align-content: start; }
.td-footer-copy { display: flex; gap: 16px; font-family: var(--font-label); font-stretch: 112%; font-size: 11px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
/* theme switch: crop marks around three words; the chosen one sits on a brushed dab of on-ink */
.td-theme { display: inline-flex; padding: 4px; background-image: linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)); background-repeat: no-repeat; background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom; background-size: 9px 1px, 1px 9px, 9px 1px, 1px 9px, 9px 1px, 1px 9px, 9px 1px, 1px 9px; }
.td-theme button { position: relative; isolation: isolate; min-height: 36px; padding: 0 12px; border: 0; background: none; color: var(--on-ink); font-family: var(--font-label); font-stretch: 112%; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: color .3s ease .1s; }
.td-theme button::before { content: ""; position: absolute; inset: 4px 0; z-index: -1; background: var(--on-ink); -webkit-mask: var(--dab-mask) 0 0 / 100% 100% no-repeat; mask: var(--dab-mask) 0 0 / 100% 100% no-repeat; clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease-draw); }
.td-theme button:hover::before { clip-path: inset(0 0 0 0); opacity: .25; }
.td-theme button[aria-pressed="true"] { color: var(--ink); }
.td-theme button[aria-pressed="true"]::before { clip-path: inset(0 0 0 0); opacity: 1; }
.td-footer a:focus-visible, .td-theme button:focus-visible, .td-footer .td-hero:focus-visible { outline: 2px solid var(--on-ink); outline-offset: 2px; }
.td-footer-phone .td-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 16px; }
.td-footer-phone .td-footer-call, .td-footer-phone .td-footer-cols, .td-footer-phone .td-footer-logo, .td-footer-phone .td-footer-company, .td-footer-phone .td-footer-anpc, .td-footer-phone .td-footer-end { grid-column: 1 / -1; }
.td-footer-phone .td-footer-cols { margin-top: var(--space-6); }
.td-footer-phone .td-footer-base { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-6); }
.td-footer-phone .td-footer-end { justify-items: start; }
.td-footer-phone .td-hero { gap: 16px; flex-direction: column; align-items: flex-start; }
.td-footer-phone .td-hero-w { font-size: 64px; }
@media (max-width: 733px) { .td-footer .td-hero-w { font-size: 64px; } .td-footer .td-hero { gap: 16px; flex-direction: column; align-items: flex-start; } .td-footer .td-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 16px; } .td-footer-call, .td-footer-cols, .td-footer-logo, .td-footer-company, .td-footer-anpc, .td-footer-end { grid-column: 1 / -1; } .td-footer-cols { margin-top: var(--space-6); } .td-footer-base { grid-template-columns: minmax(0, 1fr); } .td-footer-end { justify-items: start; } }
@media (prefers-reduced-motion: reduce) { .td-footer-edge { transform: none !important; transition: none !important; } .td-theme button, .td-theme button::before { transition: none; } }

/* ---------- Primary logo: (5) Index masthead ---------- */
/* Outlined Archivo in an inline SVG (no font needed). Letters and hairlines follow currentColor; the symbol keeps
   its colours, its teal lobe turning light on dark grounds. Size it by height only: --logo-h (48px in the header).
   Use the full logo wherever it fits. Below 40px tall the company words get too small: only then (phones) use the compact
   version, symbol and TUDORAN. */
.td-logo { --logo-h: 48px; --mark-teal: #006d77; --mark-orange: #e29578; display: block; flex: none; height: var(--logo-h); width: calc(var(--logo-h) * 7.4590); overflow: visible; }
.td-logo-compact { width: calc(var(--logo-h) * 4.4474); }
.td-logo-square { width: var(--logo-h); }   /* square version: size it by its side */
.td-logo-t { fill: var(--mark-teal); } .td-logo-o { fill: var(--mark-orange); }
[data-theme="dark"] .td-logo { --mark-teal: #edf6f9; }
.td-footer .td-logo { --mark-teal: #edf6f9; --logo-h: 48px; }
[data-theme="dark"] .td-footer .td-logo { --mark-teal: #006d77; }

/* ---------- Paper: the Fine grain at 75% strength under everything ---------- */
/* The texture is two image tiles, drawn once from the design system's SVG recipe (assets/textures): a fine tooth,
   multiplied onto the ground colour, under a faint, slow mottle. As a live SVG filter the browser recomputed the noise
   every time it painted a piece of the page, which made scrolling stutter on phones. One pair is made for light
   grounds and one for dark; the flat colour shows if they fail to load. */
:root { --paper-size: 480px 480px, 240px 240px; --paper-blend: normal, multiply; }
:root, [data-theme="light"] { --paper-texture: url("../assets/textures/paper-mottle-light.png"), url("../assets/textures/paper-tooth-light.webp"); --band-texture: url("../assets/textures/paper-mottle-dark.png"), url("../assets/textures/paper-tooth-dark.webp"); --hover-tint: rgba(27, 26, 23, .04); }
[data-theme="dark"] { --paper-texture: url("../assets/textures/paper-mottle-dark.png"), url("../assets/textures/paper-tooth-dark.webp"); --band-texture: url("../assets/textures/paper-mottle-light.png"), url("../assets/textures/paper-tooth-light.webp"); --hover-tint: rgba(236, 234, 227, .05); }
body { background-color: var(--paper); background-image: var(--paper-texture); background-size: var(--paper-size); background-blend-mode: var(--paper-blend); }
.td-paper { background-color: var(--paper); background-image: var(--paper-texture); background-size: var(--paper-size); background-blend-mode: var(--paper-blend); }
.td-paper-alt { background-color: var(--paper-alt); background-image: var(--paper-texture); background-size: var(--paper-size); background-blend-mode: var(--paper-blend); }   /* a band or plate one step off paper */
.td-footer { background-color: var(--ink); background-image: var(--band-texture); background-size: var(--paper-size); background-blend-mode: var(--paper-blend); }

/* ---------- Accents: teal and orange as rare spot colours ---------- */
/* A drop: a small blot of paint with a darker pooled rim and one bead beside it (an alpha mask, so any colour). */
.td-drop { display: inline-block; width: 9px; height: 9px; background: var(--accent); -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat; }
/* The new item: a small orange drop, always next to a word. */
.td-new { display: inline-flex; align-items: center; gap: 8px; }
.td-new::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--logo-orange); -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat; }
/* Loading: a teal brush dab travelling along a hairline. */
.td-loading { position: relative; height: 1px; background: var(--rule-soft); overflow: visible; }
.td-loading::after { content: ""; position: absolute; top: -3px; left: 0; width: 18%; height: 7px; background: var(--accent); opacity: .85; -webkit-mask: var(--dab-mask) 0 0 / 100% 100% no-repeat; mask: var(--dab-mask) 0 0 / 100% 100% no-repeat; animation: td-travel 1.8s var(--ease-draw) infinite; }
.td-loading { clip-path: inset(-4px 0); }
@keyframes td-travel { from { transform: translateX(-100%) scaleX(.6); } 50% { transform: translateX(240%) scaleX(1.15); } to { transform: translateX(560%) scaleX(.6); } }
/* A corner mark: a teal and an orange drop run into each other at a frame's corner, like the two lobes. */
.td-corner { position: relative; }
.td-corner::before, .td-corner::after { content: ""; position: absolute; width: 18px; height: 18px; -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat; mix-blend-mode: multiply; }
[data-theme="dark"] .td-corner::before, [data-theme="dark"] .td-corner::after { mix-blend-mode: screen; }
.td-corner::before { top: -9px; left: -9px; background: var(--accent); }
.td-corner::after { top: -6px; left: 3px; background: var(--logo-orange); transform: rotate(150deg); }
@media (prefers-reduced-motion: reduce) { .td-loading::after { animation: none; width: 100%; opacity: .4; } }


/* ---------- Atmosphere: lamp light, fog, rain or dust (see bundle.js atmosphere) ---------- */
.td-atmo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
/* one canvas, inside the home page's hero section only; never fixed over reading pages */


/* ---------- Layout tiers ----------
   wide   1200px and up: the 12-column layouts as drawn.
   medium 734-1199px: the header becomes one flowing row (logo, links, time), the footer stacks into two halves.
   phone  under 734px: the phone header with its menu, single-column footer, two-line list rows.
   The .td-header-phone / .td-index-phone / .td-footer-phone classes force the phone layout at any width (previews). */
@media (min-width: 734px) and (max-width: 1199px) {
  .td-header:not(.td-header-phone) .td-header-bar { display: flex; align-items: center; gap: 40px; }
  .td-header:not(.td-header-phone) .td-logo { --logo-h: 40px; }
  .td-header:not(.td-header-phone) .td-nav { gap: clamp(16px, 2.4vw, 24px); margin-left: auto; }
  .td-header:not(.td-header-phone) .td-header-meta { margin-left: 16px; }
  .td-footer:not(.td-footer-phone) .td-footer-call { grid-column: 1 / -1; }
  .td-footer:not(.td-footer-phone) .td-footer-cols { grid-column: 7 / -1; margin-top: var(--space-6); }
  .td-footer:not(.td-footer-phone) .td-footer-logo { grid-column: 1 / span 6; }
  .td-footer:not(.td-footer-phone) .td-footer-company { grid-column: 7 / -1; }
  .td-footer:not(.td-footer-phone) .td-footer-anpc { grid-column: 1 / span 6; }
  .td-footer:not(.td-footer-phone) .td-footer-end { grid-column: 7 / -1; justify-items: start; }
}
/* below 1000px the full logo steps down to 32px, the links close up and the time drops */
@media (min-width: 734px) and (max-width: 999px) {
  .td-header:not(.td-header-phone) .td-logo { --logo-h: 32px; }
  .td-header:not(.td-header-phone) .td-nav { gap: 16px; }
  .td-header:not(.td-header-phone) .td-header-bar { gap: 32px; }
  .td-header:not(.td-header-phone) .td-header-meta { display: none; }
}
@media (max-width: 733px) {
  .td-hero { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .td-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-meta-list { grid-template-columns: minmax(0, 1fr); }
  .td-meta-list div { grid-template-columns: 112px minmax(0, 1fr); }
  .td-header .td-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 16px; }
  .td-header .td-header-bar { display: flex; justify-content: space-between; align-items: center; min-height: 60px; }
  .td-header .td-nav, .td-header .td-header-meta { display: none; }
  .td-header .td-logo { --logo-h: 32px; }
  .td-footer .td-logo { --logo-h: 40px; }
  .td-header .td-menu-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--ink); font-family: var(--font-label); font-stretch: 112%; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
  .td-index-wrap .td-index-head { display: none; }
  .td-index .td-index-link { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "num title" ". meta"; row-gap: 8px; padding-block: 16px 12px; }
  .td-index .td-index-num { grid-area: num; }
  .td-index .td-index-title { grid-area: title; font-size: 18px; }
  .td-index .td-index-cat { grid-area: meta; }
  .td-index .td-index-date { grid-area: meta; justify-self: end; }
  .td-index .td-index-arrow { display: none; }
}

/* ---------- Type scale: fluid classes (the tokens hold the desktop size) ---------- */
.td-t-display-xl { font-family: var(--font-display); font-stretch: 62%; font-weight: 900; font-size: clamp(88px, 13.5vw, 200px); line-height: .8; letter-spacing: -0.04em; word-spacing: .08em; text-transform: uppercase; }
.td-t-display { font-family: var(--font-display); font-stretch: 62%; font-weight: 900; font-size: clamp(56px, 7.5vw, 104px); line-height: .84; letter-spacing: -0.03em; word-spacing: .08em; text-transform: uppercase; }
.td-t-title { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.td-t-statement { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; letter-spacing: -0.02em; max-width: 30ch; text-wrap: balance; }
.td-t-quote { font-style: italic; font-stretch: 112%; font-size: clamp(20px, 2vw, 26px); line-height: 1.28; letter-spacing: -0.01em; max-width: 34ch; text-wrap: balance; }
.td-t-heading { font-size: 21px; line-height: 1.25; font-weight: 500; letter-spacing: -0.012em; }
.td-t-body { font-size: 16px; line-height: 1.55; max-width: 34em; text-wrap: pretty; }   /* 34em is about 68 characters of Archivo */
.td-t-small { font-size: 13px; line-height: 1.45; }
.td-t-label { font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.td-t-index { font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 733px) { .td-t-heading { font-size: 18px; } }
/* live type: letters of a [data-live-type] word widen toward the pointer (bundle.js liveType) */
[data-live-type] > span { display: inline-block; white-space: pre; font-stretch: var(--w, 62%); transition: font-stretch .5s var(--ease-arrive); }
@media (prefers-reduced-motion: reduce) { [data-live-type] > span { transition: none; } }

/* ---------- Shapes shared by the painted details ---------- */
:root { --drop-mask: url('data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cdefs%3E%3CradialGradient%20id=%27g%27%20cx=%27.44%27%20cy=%27.42%27%20r=%27.62%27%3E%3Cstop%20offset=%270%27%20stop-opacity=%27.55%27/%3E%3Cstop%20offset=%27.72%27%20stop-opacity=%27.78%27/%3E%3Cstop%20offset=%27.93%27%20stop-opacity=%271%27/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath%20fill=%27url(%23g)%27%20d=%27M12.4%202.3c4.7.2%208.8%203.8%209%208.8.2%205.2-3.8%2010.1-9.3%2010.4-5.2.3-9.7-3.4-10-8.6C1.8%207.5%206.5%202%2012.4%202.3z%27/%3E%3Ccircle%20cx=%2721.2%27%20cy=%2720.8%27%20r=%271.3%27/%3E%3C/svg%3E'); --dab-mask: url('data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%20100%2010%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M1%205.2C10%202.4%2024%203.1%2038%202.2S66%201.6%2080%202.4%2096%201.8%2099.2%203.4C99.8%205%2099.4%207.2%2097%207.9%2084%208.6%2066%207.6%2050%208.4S18%209.4%206%208.7C2%208.5.4%207.4%201%205.2Z%27/%3E%3C/svg%3E'); --edge-mask: url('data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201200%2040%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%2040V19.5L0.0%2019.5L17.0%2025.0L32.5%2024.1L53.8%2018.4L77.9%2019.1L100.6%2020.3L116.4%2025.6L147.0%2021.7L165.4%2028.7L198.4%2027.5L220.3%2032.5L235.2%2030.3L255.0%2019.5L271.4%2021.0L301.7%2017.7L327.3%2022.8L348.8%2020.5L364.0%2013.0L382.2%2020.9L404.7%2015.1L430.4%2016.5L450.4%2021.1L478.4%2013.5L503.9%2017.9L535.4%2021.8L555.2%2026.1L571.5%2018.9L600.7%2016.7L624.4%2016.3L651.8%2027.8L677.3%2030.5L697.5%2028.7L723.4%2027.7L746.5%2031.7L779.4%2026.6L806.7%2020.3L834.8%2027.7L868.6%2028.8L888.3%2021.7L915.7%2015.2L938.9%2016.1L955.3%2013.8L984.6%2013.5L1003.6%2016.5L1035.0%2011.4L1058.0%2017.7L1089.7%2021.6L1120.9%2014.7L1143.2%2016.5L1174.9%2026.2L1200.0%2016.1V40Z%27/%3E%3Ccircle%20cx=%27291%27%20cy=%278.9%27%20r=%271.7%27/%3E%3Ccircle%20cx=%27325%27%20cy=%275.0%27%20r=%271.4%27/%3E%3Ccircle%20cx=%27448%27%20cy=%279.5%27%20r=%272.1%27/%3E%3Ccircle%20cx=%27821%27%20cy=%279.1%27%20r=%271.7%27/%3E%3Ccircle%20cx=%27804%27%20cy=%275.4%27%20r=%272.1%27/%3E%3Ccircle%20cx=%27925%27%20cy=%2712.0%27%20r=%271.9%27/%3E%3Ccircle%20cx=%27475%27%20cy=%278.2%27%20r=%271.0%27/%3E%3Ccircle%20cx=%27756%27%20cy=%275.5%27%20r=%271.0%27/%3E%3Ccircle%20cx=%27262%27%20cy=%276.3%27%20r=%271.3%27/%3E%3C/svg%3E'); }
:root, [data-theme="light"] { --link-wash: url('data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%20100%2010%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20fill=%27%231b1a17%27%20fill-opacity=%27.3%27%20d=%27M1%205.2C10%202.4%2024%203.1%2038%202.2S66%201.6%2080%202.4%2096%201.8%2099.2%203.4C99.8%205%2099.4%207.2%2097%207.9%2084%208.6%2066%207.6%2050%208.4S18%209.4%206%208.7C2%208.5.4%207.4%201%205.2Z%27/%3E%3C/svg%3E'); }
[data-theme="dark"] { --link-wash: url('data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%20100%2010%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20fill=%27%23eceae3%27%20fill-opacity=%27.3%27%20d=%27M1%205.2C10%202.4%2024%203.1%2038%202.2S66%201.6%2080%202.4%2096%201.8%2099.2%203.4C99.8%205%2099.4%207.2%2097%207.9%2084%208.6%2066%207.6%2050%208.4S18%209.4%206%208.7C2%208.5.4%207.4%201%205.2Z%27/%3E%3C/svg%3E'); }

/* ---------- Touch screens: no sticky hover. Paint answers a tap and lets go; focus still shows. ---------- */
@media (hover: none) {
  .td-rolled:hover .td-roll > span, [data-roll-host]:hover .td-roll > span { transform: none; }
  [data-roll-host]:hover .td-arrow > .td-arr { animation: none; }
  .td-rolled:hover .td-brush, [data-roll-host]:hover .td-brush { clip-path: inset(0 100% 0 0); }
  .td-link:hover, .td-index-link:hover .td-index-title { background-size: 0% .62em; }
  .td-theme button:hover::before { clip-path: inset(0 100% 0 0); }
}

/* ---------- Header that stays: [data-sticky] keeps the bar on top over paper, at the same size while scrolling ---------- */
.td-header[data-sticky] { position: sticky; top: 0; background-color: var(--paper); background-image: var(--paper-texture); background-size: var(--paper-size); background-blend-mode: var(--paper-blend); }
.td-menu-foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

:root { --arr-e: url('data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2012%2012%27%3E%3Cpath%20d=%27M1%206h9.2M6.6%202.4%2010.2%206l-3.6%203.6%27%20fill=%27none%27%20stroke=%27%23000%27%20stroke-width=%271.15%27%20stroke-linecap=%27square%27/%3E%3C/svg%3E'); --arr-ne: url('data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2012%2012%27%3E%3Cpath%20d=%27M2.3%209.7%209.4%202.6M4.2%202.6h5.2v5.2%27%20fill=%27none%27%20stroke=%27%23000%27%20stroke-width=%271.15%27%20stroke-linecap=%27square%27/%3E%3C/svg%3E'); --arr-s: url('data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2012%2012%27%3E%3Cpath%20d=%27M6%201v9.2M2.4%206.6%206%2010.2l3.6-3.6%27%20fill=%27none%27%20stroke=%27%23000%27%20stroke-width=%271.15%27%20stroke-linecap=%27square%27/%3E%3C/svg%3E'); }

/* ================= Content, forms and page parts (same printed / painted rules) ================= */

/* ---------- Selection: a pale ink wash, like the brushed wash under links ---------- */
::selection { background: rgba(27, 26, 23, .16); }
[data-theme="dark"] ::selection { background: rgba(236, 234, 227, .22); }

/* ---------- Skip link: the main button, hidden above the page until it has keyboard focus ---------- */
.td-skip { position: absolute; left: 16px; top: 8px; z-index: 60; transform: translateY(-160%); transition: transform .3s var(--ease-arrive); }
.td-skip:focus, .td-skip:focus-visible { transform: none; }

/* ---------- Band: a section one step off paper ---------- */
.td-band { padding-block: var(--space-8); }

/* ---------- Figure: an image on the column grid with a printed caption ---------- */
.td-figure { margin: 0; display: grid; gap: var(--space-3); }
.td-figure > img, .td-figure > video, .td-figure > picture img, .td-figure-plate > img, .td-figure-plate > svg { display: block; width: 100%; height: auto; }
.td-figure-crop > img, .td-figure-crop > picture img { aspect-ratio: 3 / 2; object-fit: cover; }
/* Screenshots and photographs are not drawn in ink, so they are laid on the paper like a print: a simple soft shadow
   (drop-shadow follows a screenshot's own transparent corners, so no rectangle appears around a window). The one shadow in the system. */
:root, [data-theme="light"] { --print-shadow: drop-shadow(0 1px 1px rgba(27, 26, 23, .10)) drop-shadow(0 10px 18px rgba(27, 26, 23, .16)); }
[data-theme="dark"] { --print-shadow: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)) drop-shadow(0 12px 22px rgba(0, 0, 0, .42)); }
.td-figure img, .td-figure video { filter: var(--print-shadow); }

/* the picture alone: no plate, frame, border or background behind it, only the print shadow */
.td-figure-plate, .td-figure-frame { background: none; padding: 0; }
.td-figure-frame > img { display: block; width: 100%; height: auto; }
.td-figure figcaption { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--grid-gutter, 16px); padding-top: var(--space-1); font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.td-figure figcaption .n { font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.03em; color: var(--ink); font-variant-numeric: tabular-nums; padding-top: 1px; }

/* ---------- Prose: guides and release notes ---------- */
.td-prose { max-width: 34em; font-size: 16px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.td-prose > * { margin: 0; }
.td-prose > * + * { margin-top: var(--space-4); }
.td-prose h2 { margin-top: var(--space-7); font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.td-prose h3 { margin-top: var(--space-6); font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.012em; }
.td-prose h2 + *, .td-prose h3 + * { margin-top: var(--space-3); }
.td-prose strong { font-weight: 600; }
.td-prose ul, .td-prose ol { list-style: none; padding: 0; }
.td-prose li { position: relative; padding-left: var(--space-6); }
.td-prose li + li { margin-top: var(--space-2); }
/* bullets are printed: a short hairline; numbered items use the index style, (01) */
.td-prose ul > li::before { content: ""; position: absolute; left: 0; top: .78em; width: 16px; height: 1px; background: var(--ink); }
.td-prose ol { counter-reset: td-li; }
.td-prose ol > li { counter-increment: td-li; }
.td-prose ol > li::before { content: "(" counter(td-li, decimal-leading-zero) ")"; position: absolute; left: 0; top: .32em; font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.03em; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
/* code is the one place another face is allowed: the system monospace, on a paper-alt plate */
.td-prose code, .td-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .875em; padding: 2px 4px; background: var(--paper-alt); }
.td-prose pre { margin-top: var(--space-5); padding: var(--space-4) var(--space-5); background-color: var(--paper-alt); background-image: var(--paper-texture); background-size: var(--paper-size); background-blend-mode: var(--paper-blend); border-left: 1px solid var(--rule); overflow-x: auto; font-size: 13px; line-height: 1.6; }
.td-prose pre code { padding: 0; background: none; font-size: inherit; }
.td-prose blockquote { margin-block: var(--space-6); padding-left: var(--space-5); border-left: 1px solid var(--rule); font-style: italic; font-stretch: 112%; font-size: clamp(20px, 2vw, 26px); line-height: 1.28; letter-spacing: -0.01em; text-wrap: balance; }
.td-prose hr { border: 0; height: 12px; width: 1px; background: var(--ink); margin-block: var(--space-6); }   /* a break is a tick, not a line */
.td-prose table { width: 100%; border-collapse: collapse; margin-top: var(--space-5); font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.td-prose th { text-align: left; padding: 0 var(--space-4) var(--space-2) 0; border-bottom: 1px solid var(--rule); font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.td-prose td { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
/* a key is something you press, so it gets crop marks */
.td-prose kbd, .td-kbd { --tick: var(--ink); display: inline-block; padding: 2px 8px; margin-inline: 2px; font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; vertical-align: 1px; background-image: linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)); background-repeat: no-repeat; background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom; background-size: 5px 1px, 1px 5px, 5px 1px, 1px 5px, 5px 1px, 1px 5px, 5px 1px, 1px 5px; }
.td-prose .td-figure { margin-block: var(--space-6); }

/* ---------- Field: a printed line to write on; focus brushes a pale wash under the text ---------- */
.td-field { display: grid; gap: var(--space-2); }
.td-field-label { font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.td-input { appearance: none; width: 100%; box-sizing: border-box; margin: 0; padding: var(--space-2) 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background-color: transparent; background-image: var(--link-wash); background-repeat: no-repeat; background-position: left calc(100% - 6px); background-size: 0% 1.1em; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); transition: background-size .6s var(--ease-draw); }
.td-input::placeholder { color: var(--ink-muted); opacity: 1; }
.td-input:focus { outline: none; background-size: 100% 1.1em; }
/* focus: the line under the field becomes the 2px teal focus line (the ring, drawn as a line), with the wash above it */
.td-input:focus-visible { outline: none; border-bottom: 2px solid var(--accent); padding-bottom: 7px; }
textarea.td-input { min-height: 136px; resize: vertical; background-position: left bottom; background-size: 0% 100%; }
textarea.td-input:focus { background-size: 100% 100%; }
.td-field-hint { font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.td-field.is-error .td-input { border-bottom-color: var(--signal); }
.td-field.is-error .td-field-hint { color: var(--signal); }
.td-input:disabled { color: var(--ink-muted); border-bottom-style: dotted; }

/* ---------- Check: crop marks around an empty square of paper; checking it drops ink inside ---------- */
.td-check { --tick: var(--ink); display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--space-3); align-items: start; cursor: pointer; }
.td-check input { appearance: none; position: relative; width: 20px; height: 20px; margin: 2px 0 0; cursor: pointer; background-image: linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)); background-repeat: no-repeat; background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom; background-size: 6px 1px, 1px 6px, 6px 1px, 1px 6px, 6px 1px, 1px 6px, 6px 1px, 1px 6px; }
.td-check input::after { content: ""; position: absolute; inset: 3px; background: var(--ink); -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat; transform: scale(0) rotate(-30deg); transition: transform .35s var(--ease-arrive); }
.td-check input:checked::after { transform: none; }
.td-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.td-check input:disabled { --tick: var(--rule-soft); cursor: default; }
.td-check input:disabled::after { background: var(--ink-muted); }
.td-check-t { font-size: 16px; line-height: 1.5; }
.td-check-d { grid-column: 2; font-size: 13px; line-height: 1.45; color: var(--ink-muted); }

/* ---------- Dialog: a sheet of paper with crop marks; the page behind is dimmed with flat ink ---------- */
.td-dialog { --tick: var(--ink); width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 0; color: var(--ink); background-color: var(--paper); background-size: 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px, var(--paper-size); background-image: linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), var(--paper-texture); background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat; background-blend-mode: normal, normal, normal, normal, normal, normal, normal, normal, var(--paper-blend); background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom, 0 0, 0 0; }
.td-dialog::backdrop { background: rgba(27, 26, 23, .42); }
:root[data-theme="dark"] .td-dialog::backdrop { background: rgba(0, 0, 0, .66); }
.td-dialog-in { display: grid; gap: var(--space-5); padding: var(--space-6); }
.td-dialog-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.td-dialog-title { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.012em; }
.td-dialog-body { margin: 0; font-size: 16px; line-height: 1.55; }
.td-dialog-list { display: grid; }
.td-dialog-list { gap: var(--space-4); }
.td-dialog-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; padding-top: var(--space-2); }

/* ---------- Not found: the 404 page ---------- */
.td-404 { display: grid; gap: var(--space-6); padding-block: var(--space-7) var(--space-8); }
.td-404-code { font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.03em; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.td-404-links { display: flex; flex-wrap: wrap; gap: var(--space-6); }
@media (prefers-reduced-motion: reduce) { .td-input, .td-check input::after, .td-skip { transition: none; } }

html.td-menu-open { overflow: hidden; }

/* ---------- Newsletter: a signup in the footer band, and a slip that offers it once ---------- */
/* footer: the newsletter, under Elsewhere. The field is the design system's Field, redrawn in on-ink for the band;
   --foot-signal is the error colour that reads on the band (the light theme's band is dark, the dark theme's is light) */
.td-footer { --foot-signal: var(--logo-orange); }
[data-theme="dark"] .td-footer { --foot-signal: #974422; }
.td-footer-news { display: grid; gap: var(--space-3); padding-top: var(--space-5); max-width: 34em; }
.td-footer-news-lead { margin: 0; font-size: 16px; line-height: 1.55; }
.td-news-row { display: flex; align-items: flex-end; gap: var(--space-4); }
.td-news-row .td-input { flex: 1; min-width: 0; }
.td-news-row .td-button { flex: none; }
.td-footer-news .td-field-hint, .td-slip .td-field-hint { margin: 0; }
.td-news-status:empty { margin-top: calc(-1 * var(--space-2)); }   /* an empty live region takes no room */
.td-news-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* Brevo's honeypot: for bots only */
.td-footer .td-field-label, .td-footer .td-field-hint { color: var(--on-ink); opacity: .7; }
.td-footer .td-input { color: var(--on-ink); border-bottom-color: var(--on-ink); background-image: none; }
.td-footer .td-input::placeholder { color: var(--on-ink); opacity: .5; }
.td-footer .td-input:focus-visible { border-bottom-color: var(--on-ink); }   /* the 2px focus line in on-ink, like the footer's focus rings */
.td-footer .td-field.is-error .td-input { border-bottom-color: var(--foot-signal); }
.td-footer .td-field.is-error .td-field-hint { color: var(--foot-signal); opacity: 1; }
.td-footer .td-news-status { opacity: 1; }
.td-footer-news a, .td-slip a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.td-footer .td-button-outline { --tick: var(--on-ink); color: var(--on-ink); }
.td-footer .td-button:disabled { --tick: var(--on-ink); color: var(--on-ink); opacity: .5; }
.td-footer .td-button:focus-visible { outline-color: var(--on-ink); }

/* newsletter slip (the site provides the form and when to show it): a small sheet one step off paper with crop marks, in the bottom corner; no backdrop.
   Under the header (z-index 20), so the phone menu opens over it. */
.td-slip { --tick: var(--ink); position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 15; width: min(360px, calc(100% - 2 * var(--space-5))); box-sizing: border-box; color: var(--ink); background-color: var(--paper-alt); background-size: 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px, var(--paper-size); background-image: linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), var(--paper-texture); background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat; background-blend-mode: normal, normal, normal, normal, normal, normal, normal, normal, var(--paper-blend); background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom, 0 0, 0 0; opacity: 0; transform: translateY(var(--space-4)); transition: opacity .35s var(--ease-arrive), transform .35s var(--ease-arrive); }
.td-slip.is-shown { opacity: 1; transform: none; }
.td-slip[hidden], .td-slip [hidden] { display: none; }   /* .td-button sets a display, so [hidden] needs help */
.td-slip form { display: grid; gap: var(--space-4); padding: var(--space-5); }
.td-slip a { color: inherit; }
.td-slip-t { margin: 0; font-size: 16px; line-height: 1.45; }
.td-slip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
@media (max-width: 733px) { .td-slip { left: 16px; right: 16px; bottom: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .td-slip { transform: none; transition: none; } }

/* ---------- Page-to-page navigation ----------
   Each link loads a full page. Where supported, the browser crossfades the old and new page,
   and the header is its own layer that swaps without fading, so it looks like only the content changes. */
@view-transition { navigation: auto; }
.td-header { view-transition-name: site-header; }
::view-transition-group(site-header), ::view-transition-new(site-header) { animation: none; }
::view-transition-old(site-header) { display: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ================= Website v2.0: page layouts =================
   Everything sits on the 12-column grid of the design system; spacing is the scale (space-1..9). */
[hidden] { display: none !important; }
html, body { overflow-x: clip; }   /* splashes and other paint may reach past the edge; the page never scrolls sideways */
html { scroll-padding-top: 96px; }
.site-main { display: block; }
.td-header[data-sticky] { top: env(safe-area-inset-top, 0px); z-index: 20; }
.td-header .td-menu { --menu-h: calc(100dvh - 60px); }
.td-dialog { max-width: 560px; }

/* page masthead: label, title, statement, then the page's actions */
.site-head { row-gap: var(--space-5); padding-block: var(--space-7); }
.site-head > * { grid-column: 1 / -1; }
.site-head-label { display: flex; align-items: center; gap: var(--space-4); color: var(--ink-muted); }
.site-appicon { width: 40px; height: 40px; order: -1; }
.site-head-title { margin: 0; }
.site-line { display: block; }
.site-head-statement { grid-column: 1 / span 7; margin: 0; }
.site-head-actions { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; padding-top: var(--space-3); }
.site-head-hero { display: grid; gap: var(--space-5); justify-items: start; padding-top: var(--space-3); }
.site-head-links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.site-head-meta { margin-top: var(--space-4); }

/* sections: a rule, the label in columns 1-3, the title from column 4 */
.site-sec { row-gap: var(--space-6); padding-block: var(--space-7); }
.site-sec > * { grid-column: 1 / -1; min-width: 0; }
/* no rule above a section: space and the label carry the break */
.site-sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter); align-items: baseline; }
.site-sec-label { grid-column: 1 / span 3; color: var(--ink-muted); }
.site-sec-head h2 { grid-column: 4 / -1; margin: 0; }
.site-gap { margin-top: 0; }
.site-after { display: flex; justify-content: flex-end; }

/* an image (columns 1-7) beside its text (columns 9-12) */
.site-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter); row-gap: var(--space-6); align-items: start; }
.site-split-a { grid-column: 1 / span 7; min-width: 0; }
.site-split-b { grid-column: 9 / span 4; display: grid; gap: var(--space-4); align-content: start; justify-items: start; min-width: 0; }
.site-split-b > .td-meta, .site-split-b > .site-list { justify-self: stretch; }
.site-actions { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-5); align-items: center; }
.site-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-list li { position: relative; padding-left: var(--space-6); }
.site-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 16px; height: 1px; background: var(--ink); }

/* galleries and feature grids */
.site-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--grid-gutter); }
.site-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--grid-gutter); }
.site-features-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-feature { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-1) 0 0 var(--space-3); background: linear-gradient(var(--ink), var(--ink)) left top / 1px 12px no-repeat; }
.site-feature h3, .site-feature p { margin: 0; }
.site-feature .td-t-index { color: var(--ink-muted); }
.site-feature .site-head-links { padding-top: var(--space-2); }
/* an iPhone screenshot in a feature card: half the card's width, so it stands about as tall as an iPad beside it */
.site-feature-phone .td-figure > img { width: 50%; }
/* a video poster: play swaps it for the YouTube player (site.js); nothing loads from YouTube before that */
.site-video { position: relative; display: block; }
.site-video > img { display: block; width: 100%; height: auto; }
.site-video-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); background: #1b1a17; transition: background-color .25s ease; }
.site-video-play::before { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 24px; background: #f7f5ef; clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateX(2px); }
.site-video:hover .site-video-play, .site-video:focus-visible .site-video-play { background: #006d77; }
.site-video:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-video-frame { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #1b1a17; filter: var(--print-shadow); }
.site-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--grid-gutter); margin-top: var(--space-6); }

/* InstantSlate sub-navigation: Apps / Overview · Tutorial · Quick Look */
.site-subnav { padding-top: var(--space-5); }
.site-subnav-in { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: flex-start; }
.site-subnav a { font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; padding-block: var(--space-3) var(--space-2); }
.site-subnav a:hover, .site-subnav a[aria-current] { color: var(--ink); }
.site-subnav a[aria-current] .td-brush { fill: var(--accent); clip-path: inset(0 0 0 0); opacity: .9; }
.site-crumb-sep { padding-top: var(--space-3); font-family: var(--font-label); font-size: 11px; line-height: 16px; color: var(--rule-soft); margin-inline: calc(var(--space-6) * -0.5); }
.site-subnav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* long-form pages: label and dates in columns 1-3, the article in 4-10 */
.site-article { padding-block: 0 var(--space-8); }
.site-article-side { grid-column: 1 / span 3; display: grid; gap: var(--space-2); align-content: start; align-self: start; position: sticky; top: 112px; color: var(--ink-muted); }
.site-article-body { grid-column: 4 / span 7; min-width: 0; }
.td-prose caption { caption-side: top; text-align: left; padding-bottom: var(--space-2); font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.td-prose tbody th { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--rule-soft); font-family: var(--font-sans); font-stretch: 100%; font-size: 16px; line-height: 1.45; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
.td-prose > div > * + * { margin-top: var(--space-4); }
.td-prose > div > * { margin-block-end: 0; }
.td-prose > div > h2 { margin-top: var(--space-7); }
.td-prose > div > h3 { margin-top: var(--space-6); }
.td-prose > div:first-child > h2:first-child { margin-top: 0; }

.td-prose { overflow-wrap: anywhere; }
.td-prose pre, .td-prose table { overflow-x: auto; display: block; }
.td-prose table { display: table; }

/* news: topic filter over the timeline */
.site-filter { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.site-filter-b { padding: var(--space-3) 0 7px; border: 0; background: none; cursor: pointer; font-family: var(--font-label); font-stretch: 112%; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.site-filter-b:hover, .site-filter-b[aria-pressed="true"] { color: var(--ink); }
.site-filter-b[aria-pressed="true"] .td-brush { clip-path: inset(0 0 0 0); }
.site-filter-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* music releases: cover in columns 1-5, text in 7-12 */
.site-release { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter); row-gap: var(--space-5); align-items: start; }
.site-release + .site-release { padding-top: var(--space-7); }
.site-release-cover { grid-column: 1 / span 5; min-width: 0; }
.site-release-text { grid-column: 7 / span 6; display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.site-release-text .td-t-index { color: var(--ink-muted); }

/* support: contact facts and the questions */
.site-contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter); padding-top: var(--space-3); }
.site-contact-item { grid-column: span 4; display: grid; gap: var(--space-2); align-content: start; justify-items: start; padding: var(--space-1) 0 0 var(--space-3); background: linear-gradient(var(--ink), var(--ink)) left top / 1px 12px no-repeat; }
.site-contact-item .td-t-label { color: var(--ink-muted); }
.site-copytext { font-size: 21px; line-height: 1.25; font-weight: 500; letter-spacing: -0.012em; }
.site-copytext.is-copied { background: var(--link-wash) no-repeat left 85% / 100% .7em; }

.site-faq { border-top: 1px solid var(--rule); }
.site-faq-item { border-bottom: 1px solid var(--rule-soft); }
.site-faq-item summary { list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter); align-items: baseline; padding-block: var(--space-5) var(--space-4); cursor: pointer; }
.site-faq-item summary::-webkit-details-marker { display: none; }
.site-faq-item summary .td-index-num { grid-column: 1; }
.site-faq-q { grid-column: 2 / span 9; justify-self: start; font-size: 21px; line-height: 1.25; font-weight: 500; letter-spacing: -0.012em; background-image: var(--link-wash); background-repeat: no-repeat; background-position: left 88%; background-size: 0% .62em; transition: background-size .6s var(--ease-draw); }
.site-faq-item summary:hover .site-faq-q, .site-faq-item summary:focus-visible .site-faq-q { background-size: 100% .62em; }
.site-faq-m { grid-column: 12; justify-self: end; transition: transform .35s var(--ease-arrive); }
.site-faq-item[open] .site-faq-m { transform: rotate(180deg); }
.site-faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.site-faq-a { padding: 0 0 var(--space-5) calc((100% - 11 * var(--grid-gutter)) / 12 + var(--grid-gutter)); max-width: 34em; font-size: 16px; line-height: 1.55; }
.site-404 { grid-column: 1 / -1; }

@media (hover: none) { .site-faq-item summary:hover .site-faq-q { background-size: 0% .62em; } }
@media (prefers-reduced-motion: reduce) { .site-faq-m, .site-faq-q { transition: none; } }

/* ---------- medium screens ---------- */
@media (min-width: 734px) and (max-width: 1199px) {
  .site-head-statement { grid-column: 1 / span 9; }
  .site-split-a { grid-column: 1 / span 7; } .site-split-b { grid-column: 8 / span 5; }
  .site-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-article-side { grid-column: 1 / span 2; } .site-article-body { grid-column: 3 / span 9; }
  .site-contact-item { grid-column: span 6; }
}
/* ---------- phones ---------- */
@media (max-width: 733px) {
  .td-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 16px; }
  .site-head { padding-block: var(--space-6); }
  .site-sec { padding-block: var(--space-6); row-gap: var(--space-5); }
  .site-sec-head { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); }
  .site-head-statement, .site-sec-label, .site-sec-head h2, .site-split-a, .site-split-b, .site-release-cover, .site-release-text, .site-article-side, .site-article-body, .site-contact-item { grid-column: 1 / -1; }
  .site-split, .site-release, .site-contact { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-5); }
  .site-gallery, .site-features, .site-features-2, .site-photos { grid-template-columns: minmax(0, 1fr); }
  .site-article-side { position: static; grid-auto-flow: column; justify-content: start; gap: var(--space-4); padding-bottom: var(--space-4); }
  .site-faq-item summary { grid-template-columns: 36px minmax(0, 1fr) 24px; }
  .site-faq-q { grid-column: 2; font-size: 18px; } .site-faq-m { grid-column: 3; }
  .site-faq-a { padding-left: 52px; }
  .site-crumb-sep { margin-inline: 0; }
}
/* covers are square; reserve their space before they load */
.site-release-cover img { aspect-ratio: 1; object-fit: cover; }


/* music: the craft text as a statement in the reading columns */
.site-craft { display: grid; gap: var(--space-4); grid-column: 4 / span 7; max-width: 40em; }
.site-craft > * { margin: 0; }
.site-sec > .site-craft { grid-column: 4 / span 7; }
@media (max-width: 733px) { .site-sec > .site-craft { grid-column: 1 / -1; } }
.site-article-side .td-more { justify-self: start; color: var(--ink); }
.site-after-links { padding-top: var(--space-2); }

/* home: about, text in columns 1-6, the portrait in 8-11 */
.site-about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter); row-gap: var(--space-6); align-items: start; }
.site-about-text { grid-column: 1 / span 6; display: grid; gap: var(--space-4); align-content: start; }
.site-about-text > * { margin: 0; }
.site-about-photo { grid-column: 8 / span 4; min-width: 0; }
@media (min-width: 734px) and (max-width: 1199px) { .site-about-text { grid-column: 1 / span 7; } .site-about-photo { grid-column: 8 / span 5; } }
@media (max-width: 733px) { .site-about { grid-template-columns: minmax(0, 1fr); } .site-about-text, .site-about-photo { grid-column: 1 / -1; } }
/* footer: other places to find me, under Say hello */
.td-footer-social { display: grid; gap: var(--space-3); padding-top: var(--space-5); }
.td-footer-social-links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.td-footer .td-more { color: var(--on-ink); }

/* long page titles (guides, legal): the title style, larger, in sentence case */
.site-head-long { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; max-width: 18ch; }
/* a lead paragraph directly under a section head */
.site-sec-lead { grid-column: 4 / span 7; margin: 0; }
@media (max-width: 733px) { .site-sec-lead { grid-column: 1 / -1; } }
/* three pictures side by side (iPhone and iPad) */
.site-gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
@media (max-width: 733px) { .site-gallery-3 { grid-template-columns: minmax(0, 1fr); } }
/* rows that are not links */
.td-index-plain .td-index-link { cursor: default; }
/* contact links read as the large facts they are */
.site-contact .td-link { color: var(--ink); }
.td-index-plain .td-index-link:hover .td-index-title { background-size: 0% .62em; }
.td-index-plain .td-index-link:hover .td-index-num, .td-index-plain .td-index-link:hover .td-index-date { color: var(--ink-muted); }

/* product pages: tables for plans and requirements, under the section title (columns 4-12) */
.site-sec > .site-table { grid-column: 4 / -1; max-width: none; }
.site-table { overflow-wrap: normal; }   /* words wrap whole; the columns size to their longest word */
.site-table table { margin-top: 0; }
.site-table tbody th { font-weight: 600; vertical-align: top; }
/* "Made with Emmulo": four finished photos in a row */
.site-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--grid-gutter); align-items: start; }
/* answers that hold a list or several paragraphs */
.site-faq-a > * { margin: 0; }
.site-faq-a > * + * { margin-top: var(--space-3); }
.site-head-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
/* legal pages: a plain-language summary above the full text, a paper-alt plate with crop marks */
.site-summary { --tick: var(--ink); padding: var(--space-5); background-color: var(--paper-alt); background-size: 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px, var(--paper-size); background-image: linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)), var(--paper-texture); background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat; background-blend-mode: normal, normal, normal, normal, normal, normal, normal, normal, var(--paper-blend); background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom, 0 0, 0 0; }
.td-prose > .site-summary > * { margin: 0; }
.td-prose > .site-summary > * + * { margin-top: var(--space-3); }
.site-summary .td-t-label { color: var(--ink-muted); }
@media (max-width: 733px) {
  .site-sec > .site-table { grid-column: 1 / -1; }
  .site-table table { font-size: 14px; }
  .site-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-summary { padding: var(--space-4); }
}
