/* builtwitharca.com: the site's one stylesheet, and its own source. Edit it here.

   THE LAYERING, in this order:
     1. fonts      - the three faces, self-hosted.
     2. tokens     - :root and the dark-mode blocks. THE AUTHORITY: every rule
                     below takes its values from them.
     3. components - element defaults and the shared components.
     4. chrome     - the frame every page shares: the page and its footer.

   The Arca design system is a SPECIFICATION this site transcribes, never a
   dependency. Nothing in this repo may build from, check against or reach into
   arca_design, and no comment here cites a file inside it for content; where a
   value needs justifying, the citation is to steel thread ST0002. Naming
   arca_design in this prohibition is not a reference to it.

   When this file changes, bump the ?v= on its link in theme/layout.liquid, so a
   browser never keeps the old copy after a deploy. */

/* The three faces, self-hosted on builtwitharca.com so no page makes a third-party
 * request (the privacy notice depends on it). Latin subsets, SIL OFL 1.1; the licences
 * sit beside the files in assets/fonts/. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; src: url("/assets/fonts/archivo-variable-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/instrument-sans-variable-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); }

/*
 * Tokens: the authority. Every group is marked KEEP: 'fixed' was decided by hv,
 * 'derived' was set in round 1 and is open to review (ST0002).
 * Colour names are numbers; roles are the colour system's, resolved per mode.
 */
:root {
  /* ramp grey: KEEP (fixed) */
  --arca-grey-0: #fcfcfb;
  --arca-grey-50: #f6f7f5;
  --arca-grey-100: #e8e9ec;
  --arca-grey-200: #d0d2d7;
  --arca-grey-300: #b9bcc2;
  --arca-grey-400: #9a9fa9;
  --arca-grey-500: #7b8089;
  --arca-grey-600: #5d626b;
  --arca-grey-700: #3a3d45;
  --arca-grey-800: #272930;
  --arca-grey-900: #15171c;
  --arca-grey-1000: #111216;
  /* ramp blue: KEEP (fixed) */
  --arca-blue-300: #8fa4ff;
  --arca-blue-600: #2747c9;
  /* ramp red: KEEP (derived) */
  --arca-red-300: #ed8172;
  --arca-red-600: #af2c22;
  /* ramp amber: KEEP (derived) */
  --arca-amber-300: #cb9a5b;
  --arca-amber-600: #915c08;
  /* ramp green: KEEP (derived) */
  --arca-green-300: #80b291;
  --arca-green-600: #2c6c47;
  /* roles, paper mode: KEEP (fixed for the five neutrals and the pencil) */
  --arca-paper: var(--arca-grey-50);
  --arca-sheet: var(--arca-grey-0);
  --arca-ink: var(--arca-grey-900);
  --arca-annotation: var(--arca-grey-600);
  --arca-staff: var(--arca-grey-300);
  --arca-pencil: var(--arca-blue-600);
  --arca-success: var(--arca-green-600);
  --arca-warning: var(--arca-amber-600);
  --arca-danger: var(--arca-red-600);
  --arca-info: var(--arca-grey-900);
  --arca-hatch-ground: var(--arca-grey-100);
  --arca-hatch-line: var(--arca-grey-300);
  /* faces: KEEP (fixed. All three are SIL OFL 1.1. Production surfaces self-host the released files) */
  --arca-font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --arca-font-text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --arca-font-data: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* Archivo widths: KEEP (fixed) */
  --arca-wdth-wordmark: 125;
  --arca-wdth-display: 112;
  --arca-wdth-label: 75;
  /* weights: KEEP (fixed) */
  --arca-weight-label: 600;
  --arca-weight-display: 750;
  --arca-weight-wordmark: 800;
  --arca-weight-text: 400;
  --arca-weight-text-strong: 600;
  --arca-weight-data: 400;
  --arca-weight-data-strong: 500;
  /* type scale, named by position: KEEP (fixed values from the approved draft) */
  --arca-type-1: 12px;
  --arca-type-2: 13px;
  --arca-type-3: 15px;
  --arca-type-4: 17px;
  --arca-type-5: clamp(19px, 2.4vw, 22px);
  --arca-type-6: 26px;
  --arca-type-7: clamp(30px, 4vw, 40px);
  --arca-type-8: clamp(40px, 6vw, 60px);
  --arca-type-9: clamp(76px, 15vw, 168px);
  --arca-type-floor: 12px;
  /* leading: KEEP (fixed) */
  --arca-leading-display: 1.02;
  --arca-leading-heading: 1.15;
  --arca-leading-lead: 1.4;
  --arca-leading-text: 1.6;
  --arca-leading-data: 1.5;
  /* tracking: KEEP (fixed) */
  --arca-tracking-wordmark: -0.035em;
  --arca-tracking-display: -0.02em;
  --arca-tracking-label: 0.12em;
  /* measure: KEEP (fixed for text) */
  --arca-measure-text: 64ch;
  --arca-measure-lead: 48ch;
  --arca-measure-data: 80ch;
  /* space, 4px base: KEEP (fixed) */
  --arca-space-1: 4px;
  --arca-space-2: 8px;
  --arca-space-3: 12px;
  --arca-space-4: 16px;
  --arca-space-5: 24px;
  --arca-space-6: 32px;
  --arca-space-7: 48px;
  --arca-space-8: 64px;
  --arca-space-9: 96px;
  /* radius: KEEP (fixed) */
  --arca-radius-0: 0;
  /* shadow: KEEP (fixed) */
  --arca-shadow: none;
  /* the staff: KEEP (fixed) */
  --arca-staff-gap: 6px;
  --arca-staff-gap-small: 3px;
  /* rules: KEEP (fixed for hair) */
  --arca-rule-hair: 1px;
  --arca-rule-line: 1px;
  --arca-rule-mark: 1.5px;
  --arca-rule-status: 3px;
  --arca-rule-focus: 2px;
  /* layout: KEEP (fixed for the sheet and the band) */
  --arca-sheet-max: 1120px;
  --arca-zones-across: 6;
  --arca-zones-down: 4;
  --arca-zone-band: 22px;
  --arca-gutter-min: 16px;
  --arca-gutter: 24px;
  --arca-target: 44px;
  /* breakpoints, for reference; media queries restate them: KEEP (derived) */
  --arca-bp-narrow: 560px;
  --arca-bp-medium: 760px;
  --arca-bp-wide: 1168px;
  /* motion: KEEP (fixed for beat) */
  --arca-beat: 240ms;
  --arca-curve: cubic-bezier(0.2, 0.8, 0.2, 1);
  --arca-rise: 6px;
  --arca-loading-threshold: 400ms;
  /* show-through: KEEP (fixed) */
  --arca-show-through: 0.07;
}
/* roles, pit mode: an explicit data-theme wins either way; otherwise the viewer's scheme decides */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --arca-paper: var(--arca-grey-1000);
    --arca-sheet: var(--arca-grey-900);
    --arca-ink: var(--arca-grey-100);
    --arca-annotation: var(--arca-grey-400);
    --arca-staff: var(--arca-grey-700);
    --arca-pencil: var(--arca-blue-300);
    --arca-success: var(--arca-green-300);
    --arca-warning: var(--arca-amber-300);
    --arca-danger: var(--arca-red-300);
    --arca-info: var(--arca-grey-100);
    --arca-hatch-ground: var(--arca-grey-800);
    --arca-hatch-line: var(--arca-grey-700);
    --arca-show-through: 0.09;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --arca-paper: var(--arca-grey-1000);
  --arca-sheet: var(--arca-grey-900);
  --arca-ink: var(--arca-grey-100);
  --arca-annotation: var(--arca-grey-400);
  --arca-staff: var(--arca-grey-700);
  --arca-pencil: var(--arca-blue-300);
  --arca-success: var(--arca-green-300);
  --arca-warning: var(--arca-amber-300);
  --arca-danger: var(--arca-red-300);
  --arca-info: var(--arca-grey-100);
  --arca-hatch-ground: var(--arca-grey-800);
  --arca-hatch-line: var(--arca-grey-700);
  --arca-show-through: 0.09;
  color-scheme: dark;
}
/* under reduced motion nothing moves */
@media (prefers-reduced-motion: reduce) {
  :root { --arca-beat: 0ms; --arca-rise: 0px; }
}

/*
 * Components: element defaults and the shared components.
 * Every value is a token; no literal colour, size or duration appears here.
 */

/* ---------- base ---------- */
* { box-sizing: border-box; }
body { margin: 0; background: var(--arca-paper); color: var(--arca-ink); font-family: var(--arca-font-text); font-size: var(--arca-type-4); line-height: var(--arca-leading-text); font-weight: var(--arca-weight-text); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
b, strong { font-weight: var(--arca-weight-text-strong); }
code, kbd, samp { font-family: var(--arca-font-data); font-size: 0.88em; }
:focus-visible { outline: var(--arca-rule-focus) solid var(--arca-pencil); outline-offset: 3px; }

/* ---------- type roles: each resolves to a scale step ---------- */
.wordmark { font-family: var(--arca-font-display); font-variation-settings: "wdth" var(--arca-wdth-wordmark); font-weight: var(--arca-weight-wordmark); letter-spacing: var(--arca-tracking-wordmark); font-size: var(--arca-type-9); line-height: 0.82; }
.display { font-family: var(--arca-font-display); font-variation-settings: "wdth" var(--arca-wdth-display); font-weight: var(--arca-weight-display); letter-spacing: var(--arca-tracking-display); line-height: var(--arca-leading-display); text-wrap: balance; }
.d1 { font-size: var(--arca-type-8); }
.d2 { font-size: var(--arca-type-7); line-height: var(--arca-leading-heading); }
.d3 { font-size: var(--arca-type-6); line-height: var(--arca-leading-heading); }
.label { font-family: var(--arca-font-display); font-variation-settings: "wdth" var(--arca-wdth-label); font-weight: var(--arca-weight-label); font-size: var(--arca-type-1); letter-spacing: var(--arca-tracking-label); text-transform: uppercase; color: var(--arca-annotation); line-height: var(--arca-leading-data); }
.lead { font-size: var(--arca-type-5); line-height: var(--arca-leading-lead); max-width: var(--arca-measure-lead); }
.prose { max-width: var(--arca-measure-text); }
.prose > * + * { margin-top: var(--arca-space-4); }
.small { font-size: var(--arca-type-3); }
.data { font-family: var(--arca-font-data); font-size: var(--arca-type-2); line-height: var(--arca-leading-data); font-weight: var(--arca-weight-data); }
.muted { color: var(--arca-annotation); }

/* ---------- page chrome ---------- */
.outer { padding-left: max(var(--arca-gutter-min), env(safe-area-inset-left, 0px)); padding-right: max(var(--arca-gutter-min), env(safe-area-inset-right, 0px)); padding-block: var(--arca-space-6) var(--arca-space-8); display: grid; gap: var(--arca-space-7); }
.frame { max-width: var(--arca-sheet-max); width: 100%; margin: 0 auto; min-width: 0; }
.scroll { overflow-x: auto; }

/* ---------- the sheet and the zone band (launch only) ---------- */
.sheet { background: var(--arca-sheet); border: var(--arca-rule-line) solid var(--arca-ink); }
.sheet.zoned { display: grid; grid-template-columns: var(--arca-zone-band) minmax(0, 1fr) var(--arca-zone-band); grid-template-rows: var(--arca-zone-band) auto var(--arca-zone-band); }
.zx, .zy { font-family: var(--arca-font-display); font-variation-settings: "wdth" var(--arca-wdth-label); font-weight: var(--arca-weight-label); font-size: var(--arca-type-1); color: var(--arca-annotation); display: grid; }
.zx { grid-column: 2; grid-template-columns: repeat(var(--arca-zones-across), 1fr); }
.zx span { display: grid; place-items: center; border-left: var(--arca-rule-hair) solid var(--arca-staff); }
.zx span:first-child { border-left: 0; }
.zx.t { grid-row: 1; border-bottom: var(--arca-rule-line) solid var(--arca-ink); }
.zx.b { grid-row: 3; border-top: var(--arca-rule-line) solid var(--arca-ink); }
.zy { grid-row: 2; grid-template-rows: repeat(var(--arca-zones-down), 1fr); }
.zy span { display: grid; place-items: center; border-top: var(--arca-rule-hair) solid var(--arca-staff); }
.zy span:first-child { border-top: 0; }
.zy.l { grid-column: 1; border-right: var(--arca-rule-line) solid var(--arca-ink); }
.zy.r { grid-column: 3; border-left: var(--arca-rule-line) solid var(--arca-ink); }
.field { grid-column: 2; grid-row: 2; min-width: 0; padding: clamp(20px, 4vw, 48px); display: grid; gap: var(--arca-space-8); }
.sheet:not(.zoned) > .field { padding: clamp(20px, 4vw, 48px); }
/* narrow: below 560px six zones are under 90px wide and stop being citable, so the band goes */
@media (max-width: 560px) {
  .sheet.zoned { grid-template-columns: 0 minmax(0, 1fr) 0; grid-template-rows: 0 auto 0; }
  .zx, .zy { visibility: hidden; overflow: hidden; }
}

/* ---------- the system: rehearsal mark, staff, heading ---------- */
.system { display: grid; gap: var(--arca-space-5); min-width: 0; }
.system > *, .field > * { min-width: 0; }
.sys-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--arca-space-3); align-items: center; }
.reh { width: 30px; height: 30px; display: grid; place-items: center; border: var(--arca-rule-mark) solid var(--arca-ink); font-size: var(--arca-type-4); }
.staff { height: calc(var(--arca-staff-gap) * 4 + 5px); background: repeating-linear-gradient(180deg, var(--arca-staff) 0 1px, transparent 1px calc(var(--arca-staff-gap) + 1px)); }
.staff.small { height: calc(var(--arca-staff-gap-small) * 4 + 5px); background: repeating-linear-gradient(180deg, var(--arca-staff) 0 1px, transparent 1px calc(var(--arca-staff-gap-small) + 1px)); }
@media (prefers-reduced-motion: no-preference) {
  .system { animation: arca-enter var(--arca-beat) var(--arca-curve) both; }
}
/* rise only: a capture that does not advance time must still see every system */
@keyframes arca-enter { from { transform: translateY(var(--arca-rise)); } to { transform: none; } }

/* ---------- the masthead ---------- */
.masthead { display: flex; align-items: flex-end; gap: 0.5em; font-size: 34px; color: var(--arca-ink); text-decoration: none; }
.masthead .wm { font-family: var(--arca-font-display); font-variation-settings: "wdth" var(--arca-wdth-wordmark); font-weight: var(--arca-weight-wordmark); letter-spacing: var(--arca-tracking-wordmark); line-height: 0.74; }
.box { width: 1em; height: 1em; display: block; color: currentColor; flex: none; }

/* ---------- the part ---------- */
.part { background: var(--arca-sheet); border: var(--arca-rule-line) solid var(--arca-ink); padding: var(--arca-space-4) 18px 18px; display: grid; gap: var(--arca-space-3); min-width: 0; }
.part-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--arca-space-3); flex-wrap: wrap; }
.part-name { font-size: var(--arca-type-6); }
.part .ver { color: var(--arca-annotation); }
.part dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--arca-space-1) var(--arca-space-4); }
.part dt { padding-top: 2px; }
.part dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- the cue sheet and the cue line ---------- */
.cues { display: grid; margin: 0; padding: 0; list-style: none; }
.cues li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: var(--arca-space-3); padding-block: var(--arca-space-2); border-top: var(--arca-rule-hair) solid var(--arca-staff); }
.cues .n { font-size: var(--arca-type-4); }
.cues .then, .cue { color: var(--arca-pencil); }
.cue { font-family: var(--arca-font-data); font-size: var(--arca-type-2); }
.cue::before { content: "\2192\00a0"; }

/* ---------- tables, and the revision table ---------- */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: var(--arca-space-2) var(--arca-space-3) var(--arca-space-2) 0; border-top: var(--arca-rule-hair) solid var(--arca-staff); font-size: var(--arca-type-3); }
thead th { border-top: var(--arca-rule-line) solid var(--arca-ink); font-family: var(--arca-font-display); font-variation-settings: "wdth" var(--arca-wdth-label); font-weight: var(--arca-weight-label); font-size: var(--arca-type-1); letter-spacing: var(--arca-tracking-label); text-transform: uppercase; color: var(--arca-annotation); }
td.num, th.num { font-family: var(--arca-font-data); font-size: var(--arca-type-2); text-align: right; white-space: nowrap; }
.revisions .rev { font-family: var(--arca-font-display); font-variation-settings: "wdth" var(--arca-wdth-display); font-weight: var(--arca-weight-display); font-size: var(--arca-type-4); }
.revisions .date { font-family: var(--arca-font-data); font-size: var(--arca-type-2); white-space: nowrap; }

/* ---------- the title block ---------- */
.titleblock { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); border: var(--arca-rule-line) solid var(--arca-ink); background: var(--arca-sheet); }
.titleblock > div { padding: var(--arca-space-2) var(--arca-space-3) 10px; display: grid; gap: 2px; min-width: 0; border-left: var(--arca-rule-line) solid var(--arca-ink); }
.titleblock > div:first-child { border-left: 0; }
.titleblock .t { font-size: 20px; }
.titleblock strong { font-family: var(--arca-font-data); font-weight: var(--arca-weight-data-strong); font-size: var(--arca-type-2); overflow-wrap: anywhere; }
/* medium: below 760px five cells fall under 120px and the title wraps to four lines */
@media (max-width: 760px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock > div { border-left: 0; border-top: var(--arca-rule-line) solid var(--arca-ink); }
  .titleblock > div:nth-child(even) { border-left: var(--arca-rule-line) solid var(--arca-ink); }
  .titleblock > div:first-child { grid-column: 1 / -1; border-top: 0; }
}

/* ---------- show-through (stealth only) ---------- */
.thin { position: relative; overflow: hidden; background: var(--arca-paper); }
.through { position: absolute; inset: 0; opacity: var(--arca-show-through); transform: scaleX(-1); pointer-events: none; color: var(--arca-ink); }
.through svg { width: 100%; height: 100%; display: block; }

/* ---------- the two kinds of blank, and the illustrative marker ---------- */
/* missing imagery: a hard-edged hatch, the one permitted repeating pattern besides the staff */
.blank-image { display: grid; place-items: center; min-height: 160px; background: var(--arca-hatch-ground) repeating-linear-gradient(45deg, transparent 0 7px, var(--arca-hatch-line) 7px 8px); border: var(--arca-rule-hair) solid var(--arca-hatch-line); }
.blank-image span { font-family: var(--arca-font-data); font-size: var(--arca-type-2); color: var(--arca-annotation); background: var(--arca-hatch-ground); padding: 2px var(--arca-space-2); }
/* missing copy: bracketed, lower case, mono */
.blank { font-family: var(--arca-font-data); font-size: 0.88em; color: var(--arca-annotation); }
/* an illustrative number: the word, beside the number it qualifies */
.illustrative { font-family: var(--arca-font-data); font-size: var(--arca-type-1); color: var(--arca-ink); background: var(--arca-hatch-ground); border: var(--arca-rule-hair) solid var(--arca-hatch-line); padding: 0 var(--arca-space-1); margin-left: var(--arca-space-1); white-space: nowrap; }

/* ---------- the link and the primary action ---------- */
a { color: var(--arca-pencil); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: var(--arca-rule-mark); }
.action { display: inline-flex; gap: 0.4em; align-items: baseline; min-height: var(--arca-target); padding-top: var(--arca-space-2); font-size: var(--arca-type-6); color: var(--arca-pencil); text-decoration: none; border-bottom: var(--arca-rule-mark) solid var(--arca-pencil); padding-bottom: 2px; justify-self: start; }

/* ---------- standard components: everything below belongs to the component library ---------- */

/* State hooks. Every interactive component answers to its native state AND to a
 * class of the same name, so states-and-interaction can show a state statically:
 * .is-hover .is-focus .is-active .is-disabled .is-invalid .is-loading .is-selected .is-readonly
 * No state is told by colour alone: each also changes a rule, a mark, a weight or a position. */

/* ---------- glyphs: geometric primitives only ---------- */
.glyph { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.glyph.fill { fill: currentColor; stroke: none; }

/* ---------- button ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--arca-space-2); min-height: var(--arca-target); min-width: var(--arca-target); padding: 0 var(--arca-space-4); font-family: var(--arca-font-text); font-size: var(--arca-type-3); font-weight: var(--arca-weight-text-strong); line-height: 1.2; color: var(--arca-ink); background: transparent; border: var(--arca-rule-line) solid var(--arca-ink); border-radius: var(--arca-radius-0); text-decoration: none; cursor: pointer; transition: transform var(--arca-beat) var(--arca-curve); }
.btn:hover, .btn.is-hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.btn:active, .btn.is-active { transform: translateY(1px); }
.btn.strong { border-width: var(--arca-rule-mark); }
.btn.quiet { border-color: transparent; }
.btn.danger { color: var(--arca-danger); border-color: var(--arca-danger); }
.btn:disabled, .btn[aria-disabled="true"], .btn.is-disabled { color: var(--arca-annotation); border-style: dashed; border-color: var(--arca-annotation); cursor: not-allowed; text-decoration: none; transform: none; }
.btn.quiet:disabled, .btn.quiet.is-disabled { border-color: transparent; }
.btn[aria-busy="true"], .btn.is-loading { cursor: progress; border-style: dotted; }

/* ---------- icon button ---------- */
.iconbtn { display: inline-grid; place-items: center; width: var(--arca-target); height: var(--arca-target); padding: 0; color: var(--arca-ink); background: transparent; border: var(--arca-rule-line) solid var(--arca-ink); cursor: pointer; font-size: var(--arca-type-4); transition: transform var(--arca-beat) var(--arca-curve); }
.iconbtn.quiet { border-color: transparent; }
.iconbtn:hover .glyph, .iconbtn.is-hover .glyph { stroke-width: 2.25; }
.iconbtn:active, .iconbtn.is-active { transform: translateY(1px); }
.iconbtn[aria-pressed="true"], .iconbtn.is-selected { border-width: var(--arca-rule-mark); }
.iconbtn:disabled, .iconbtn.is-disabled { color: var(--arca-annotation); border-style: dashed; border-color: var(--arca-annotation); cursor: not-allowed; transform: none; }

/* ---------- link variants (the inline link is a primitive) ---------- */
.link-standalone { display: inline-flex; align-items: center; gap: var(--arca-space-1); min-height: var(--arca-target); font-weight: var(--arca-weight-text-strong); }
.link-standalone .glyph { transition: transform var(--arca-beat) var(--arca-curve); }
.link-standalone:hover .glyph { transform: translateX(3px); }
a.is-hover { text-decoration-thickness: var(--arca-rule-mark); }
a[aria-disabled="true"], a.is-disabled { color: var(--arca-annotation); text-decoration-style: dashed; cursor: not-allowed; }

/* ---------- menu ---------- */
.menu-wrap { position: relative; display: inline-block; }
.menu { position: absolute; top: calc(100% + var(--arca-space-1)); left: 0; z-index: 20; min-width: 15rem; margin: 0; padding: var(--arca-space-1) 0; list-style: none; background: var(--arca-sheet); border: var(--arca-rule-line) solid var(--arca-ink); }
.menu.static { position: static; display: block; }
.menu[hidden] { display: none; }
.menu [role="menuitem"] { display: flex; align-items: center; gap: var(--arca-space-2); width: 100%; min-height: var(--arca-target); padding: 0 var(--arca-space-4); font: inherit; font-size: var(--arca-type-3); color: var(--arca-ink); background: transparent; border: 0; text-align: left; cursor: pointer; }
.menu [role="menuitem"]:hover, .menu [role="menuitem"].is-hover { text-decoration: underline; text-underline-offset: 3px; }
.menu [role="menuitem"]:focus-visible { outline-offset: -3px; }
.menu [role="menuitem"] .meta { margin-left: auto; font-family: var(--arca-font-data); font-size: var(--arca-type-1); color: var(--arca-annotation); }
.menu [role="menuitem"].danger { color: var(--arca-danger); }
.menu [role="menuitem"][aria-disabled="true"] { color: var(--arca-annotation); cursor: not-allowed; text-decoration: line-through; }
.menu [role="separator"] { height: 0; margin: var(--arca-space-1) 0; border-top: var(--arca-rule-hair) solid var(--arca-staff); }

/* ---------- toolbar ---------- */
.toolbar { display: inline-flex; flex-wrap: wrap; align-items: stretch; border: var(--arca-rule-line) solid var(--arca-ink); }
.toolbar > .btn, .toolbar > .iconbtn { border: 0; border-left: var(--arca-rule-line) solid var(--arca-ink); }
.toolbar > :first-child { border-left: 0; }
.toolbar > .sep { width: 0; border-left: var(--arca-rule-mark) solid var(--arca-ink); }

/* ---------- form fields ---------- */
.control { display: grid; gap: var(--arca-space-1); min-width: 0; max-width: 32rem; }
.control > label, .control > .control-label, fieldset.control > legend { font-size: var(--arca-type-3); font-weight: var(--arca-weight-text-strong); color: var(--arca-ink); padding: 0; }
fieldset.control { border: 0; margin: 0; padding: 0; }
.control .help { font-size: var(--arca-type-3); color: var(--arca-annotation); }
.control .error { display: flex; gap: var(--arca-space-1); align-items: baseline; font-size: var(--arca-type-3); color: var(--arca-danger); }
.input, .textarea, .select { display: block; width: 100%; min-height: var(--arca-target); padding: 0 var(--arca-space-3); font-family: var(--arca-font-text); font-size: var(--arca-type-4); color: var(--arca-ink); background: var(--arca-sheet); border: var(--arca-rule-line) solid var(--arca-ink); border-radius: var(--arca-radius-0); }
.input.mono, .input[type="date"] { font-family: var(--arca-font-data); font-size: var(--arca-type-3); }
.textarea { padding: var(--arca-space-2) var(--arca-space-3); min-height: calc(var(--arca-target) * 3); line-height: var(--arca-leading-text); resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: calc(var(--arca-space-3) * 2 + 1em); cursor: pointer; }
.select-wrap { position: relative; display: block; }
.select-wrap .glyph { position: absolute; right: var(--arca-space-3); top: 50%; margin-top: -0.5em; pointer-events: none; color: var(--arca-ink); }
.input::placeholder, .textarea::placeholder { color: var(--arca-annotation); opacity: 1; }
.input:hover, .textarea:hover, .select:hover, .input.is-hover, .textarea.is-hover, .select.is-hover { outline: var(--arca-rule-hair) solid var(--arca-ink); outline-offset: 0; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"], .is-invalid > .input, .is-invalid > .textarea, .input.is-invalid, .textarea.is-invalid, .select.is-invalid { border-left: var(--arca-rule-status) solid var(--arca-danger); }
.input:disabled, .textarea:disabled, .select:disabled, .input.is-disabled, .textarea.is-disabled, .select.is-disabled { color: var(--arca-annotation); background: var(--arca-paper); border-style: dashed; border-color: var(--arca-annotation); cursor: not-allowed; outline: 0; }
.input[readonly], .textarea[readonly], .input.is-readonly, .textarea.is-readonly { background: transparent; border-color: transparent; border-bottom: var(--arca-rule-line) dotted var(--arca-annotation); padding-left: 0; }
.input.is-loading, .control.is-loading .input { border-style: dotted; cursor: progress; }

/* checkbox and radio: both squares, because radius is 0; the mark tells them apart */
.check { display: inline-flex; align-items: center; gap: var(--arca-space-3); min-height: var(--arca-target); font-size: var(--arca-type-4); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin: 0; background: var(--arca-sheet); border: var(--arca-rule-mark) solid var(--arca-ink); border-radius: var(--arca-radius-0); cursor: pointer; }
.check input[type="checkbox"]::after { content: ""; width: 10px; height: 5px; margin-top: -3px; border-left: 2px solid var(--arca-ink); border-bottom: 2px solid var(--arca-ink); transform: rotate(-45deg); opacity: 0; }
.check input[type="checkbox"]:checked::after, .check.is-selected input[type="checkbox"]::after { opacity: 1; }
.check input[type="checkbox"]:indeterminate::after { width: 10px; height: 0; margin: 0; border-left: 0; transform: none; opacity: 1; }
.check input[type="radio"]::after { content: ""; width: 10px; height: 10px; background: var(--arca-ink); opacity: 0; }
.check input[type="radio"]:checked::after, .check.is-selected input[type="radio"]::after { opacity: 1; }
.check:hover input, .check.is-hover input { outline: var(--arca-rule-hair) solid var(--arca-ink); outline-offset: 2px; }
.check input:focus-visible, .check.is-focus input { outline: var(--arca-rule-focus) solid var(--arca-pencil); outline-offset: 3px; }
.check input:disabled, .check.is-disabled input { border-style: dashed; border-color: var(--arca-annotation); cursor: not-allowed; }
.check:has(input:disabled), .check.is-disabled { color: var(--arca-annotation); cursor: not-allowed; }
.check input[aria-invalid="true"], .check.is-invalid input { border-color: var(--arca-danger); border-width: var(--arca-rule-status); }
.radio-group { display: grid; gap: 0; }

/* toggle: a square track; the thumb moves, and the state is written beside it */
.toggle { display: inline-flex; align-items: center; gap: var(--arca-space-3); min-height: var(--arca-target); padding: 0; font: inherit; font-size: var(--arca-type-4); color: var(--arca-ink); background: transparent; border: 0; cursor: pointer; }
.toggle .track { position: relative; width: 40px; height: 22px; flex: none; background: var(--arca-sheet); border: var(--arca-rule-mark) solid var(--arca-ink); }
.toggle .thumb { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; background: var(--arca-annotation); transition: transform var(--arca-beat) var(--arca-curve); }
.toggle[aria-checked="true"] .thumb, .toggle.is-selected .thumb { transform: translateX(18px); background: var(--arca-ink); }
.toggle .state { font-family: var(--arca-font-data); font-size: var(--arca-type-2); min-width: 3ch; }
.toggle:hover .track, .toggle.is-hover .track { outline: var(--arca-rule-hair) solid var(--arca-ink); outline-offset: 2px; }
.toggle:focus-visible { outline: 0; }
.toggle:focus-visible .track, .toggle.is-focus .track { outline: var(--arca-rule-focus) solid var(--arca-pencil); outline-offset: 3px; }
.toggle:disabled, .toggle.is-disabled { color: var(--arca-annotation); cursor: not-allowed; }
.toggle:disabled .track, .toggle.is-disabled .track { border-style: dashed; border-color: var(--arca-annotation); }

/* slider */
.slider { appearance: none; -webkit-appearance: none; width: 100%; height: var(--arca-target); margin: 0; background: transparent; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 2px; background: var(--arca-ink); }
.slider::-moz-range-track { height: 2px; background: var(--arca-ink); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; background: var(--arca-sheet); border: var(--arca-rule-mark) solid var(--arca-ink); border-radius: var(--arca-radius-0); }
.slider::-moz-range-thumb { width: 17px; height: 17px; background: var(--arca-sheet); border: var(--arca-rule-mark) solid var(--arca-ink); border-radius: var(--arca-radius-0); }
.slider:focus-visible { outline-offset: 0; }
.slider:disabled, .slider.is-disabled { cursor: not-allowed; opacity: 0.6; }
.slider-row { display: grid; grid-template-columns: minmax(0, 1fr) 5ch; gap: var(--arca-space-3); align-items: center; }
.slider-row output { font-family: var(--arca-font-data); font-size: var(--arca-type-2); text-align: right; }
.ticks { display: flex; justify-content: space-between; font-family: var(--arca-font-data); font-size: var(--arca-type-1); color: var(--arca-annotation); border-top: var(--arca-rule-hair) solid var(--arca-staff); padding-top: 2px; }

/* ---------- badge and tag ---------- */
.badge { display: inline-flex; align-items: center; gap: var(--arca-space-1); min-height: 20px; padding: 0 var(--arca-space-2); font-family: var(--arca-font-data); font-size: var(--arca-type-1); font-weight: var(--arca-weight-data-strong); line-height: 1; color: var(--arca-ink); border: var(--arca-rule-line) solid currentColor; white-space: nowrap; }
.badge.count { min-width: 20px; justify-content: center; padding: 0 var(--arca-space-1); }
.badge.success { color: var(--arca-success); }
.badge.warning { color: var(--arca-warning); }
.badge.danger { color: var(--arca-danger); }
.badge.info { color: var(--arca-info); }
.tag { display: inline-flex; align-items: center; gap: var(--arca-space-1); min-height: 24px; padding: 0 var(--arca-space-2); font-family: var(--arca-font-display); font-variation-settings: "wdth" var(--arca-wdth-label); font-weight: var(--arca-weight-label); font-size: var(--arca-type-1); letter-spacing: var(--arca-tracking-label); text-transform: uppercase; color: var(--arca-annotation); border: var(--arca-rule-line) solid var(--arca-annotation); }
a.tag { text-decoration: none; }
a.tag:hover { color: var(--arca-ink); border-color: var(--arca-ink); }
.tag .remove { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; padding: 0; margin-right: calc(var(--arca-space-1) * -1); color: inherit; background: transparent; border: 0; cursor: pointer; font-size: var(--arca-type-1); }
.tag .remove::after { content: ""; position: absolute; inset: -14px; }
.tag .remove:hover { color: var(--arca-ink); }
/* a pressable tag is drawn at 24px; the target extends to the 44px floor */
button.tag { position: relative; cursor: pointer; background: transparent; }
button.tag::after { content: ""; position: absolute; inset: -10px 0; }
.tag.is-selected, .tag[aria-pressed="true"] { color: var(--arca-ink); border-color: var(--arca-ink); border-width: var(--arca-rule-mark); }

/* ---------- avatar: initials, never a photograph ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; width: var(--arca-target); height: var(--arca-target); font-family: var(--arca-font-display); font-variation-settings: "wdth" var(--arca-wdth-display); font-weight: var(--arca-weight-display); font-size: var(--arca-type-3); color: var(--arca-ink); background: var(--arca-sheet); border: var(--arca-rule-line) solid var(--arca-ink); text-transform: uppercase; }
.avatar.s { width: 32px; height: 32px; font-size: var(--arca-type-1); }
.avatar.l { width: 64px; height: 64px; font-size: var(--arca-type-6); }
.avatar.agent { border-style: dashed; }
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -1px; }

/* ---------- card: a sheet with an ink rule ---------- */
.card { display: grid; gap: var(--arca-space-3); align-content: start; min-width: 0; padding: var(--arca-space-5); background: var(--arca-sheet); border: var(--arca-rule-line) solid var(--arca-ink); }
.card > .card-foot { padding-top: var(--arca-space-3); border-top: var(--arca-rule-hair) solid var(--arca-staff); display: flex; gap: var(--arca-space-4); flex-wrap: wrap; align-items: center; }
.card.link { position: relative; }
.card.link .card-title a { color: var(--arca-ink); text-decoration: none; }
.card.link .card-title a::after { content: ""; position: absolute; inset: 0; }
.card.link:hover .card-title a, .card.link.is-hover .card-title a { text-decoration: underline; text-underline-offset: 4px; }
.card.link:focus-within { outline: var(--arca-rule-focus) solid var(--arca-pencil); outline-offset: 3px; }
.card.link .card-title a:focus-visible { outline: 0; }

/* ---------- table extensions ---------- */
.table-wrap { overflow-x: auto; }
th[aria-sort] button { display: inline-flex; align-items: center; gap: var(--arca-space-1); min-height: var(--arca-target); padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
th[aria-sort="ascending"] button, th[aria-sort="descending"] button { color: var(--arca-ink); }
th[aria-sort="descending"] .glyph { transform: rotate(180deg); }
th[aria-sort="none"] .glyph { opacity: 0; }
th[aria-sort="none"] button:hover .glyph { opacity: 1; }
tr[aria-selected="true"] > td, tr.is-selected > td { font-weight: var(--arca-weight-text-strong); }
tr[aria-selected="true"] > td:first-child, tr.is-selected > td:first-child { border-left: var(--arca-rule-status) solid var(--arca-ink); padding-left: var(--arca-space-2); }
td .check { min-height: 0; position: relative; }
/* a row checkbox is drawn at 20px; its label extends the target to the 44px floor */
td .check::before { content: ""; position: absolute; inset: -12px; }
tbody tr:hover > td { text-decoration: none; }

/* ---------- list ---------- */
.list { margin: 0; padding: 0; list-style: none; }
.list > li { display: flex; align-items: baseline; gap: var(--arca-space-4); padding-block: var(--arca-space-3); border-top: var(--arca-rule-hair) solid var(--arca-staff); min-width: 0; }
.list > li:last-child { border-bottom: var(--arca-rule-hair) solid var(--arca-staff); }
.list .meta { margin-left: auto; font-family: var(--arca-font-data); font-size: var(--arca-type-2); color: var(--arca-annotation); white-space: nowrap; }
.list.nav > li { padding: 0; }
.list.nav a { display: flex; align-items: center; gap: var(--arca-space-4); width: 100%; min-height: var(--arca-target); color: var(--arca-ink); text-decoration: none; }
.list.nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.list.nav a .glyph { margin-left: auto; }
.list.nav a[aria-current="page"] { font-weight: var(--arca-weight-text-strong); }
.list.numbered { counter-reset: arca-list; }
.list.numbered > li::before { counter-increment: arca-list; content: counter(arca-list, decimal-leading-zero); font-family: var(--arca-font-data); font-size: var(--arca-type-2); color: var(--arca-annotation); }

/* ---------- key-value pair ---------- */
.kv { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--arca-space-2) var(--arca-space-5); }
.kv > dt { font-family: var(--arca-font-display); font-variation-settings: "wdth" var(--arca-wdth-label); font-weight: var(--arca-weight-label); font-size: var(--arca-type-1); letter-spacing: var(--arca-tracking-label); text-transform: uppercase; color: var(--arca-annotation); padding-top: 4px; }
.kv > dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv.data > dd { font-family: var(--arca-font-data); font-size: var(--arca-type-2); padding-top: 2px; }
.kv.stacked { grid-template-columns: minmax(0, 1fr); gap: 0; }
.kv.stacked > dd { margin-bottom: var(--arca-space-3); }
@media (max-width: 560px) {
  .kv:not(.data) { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv:not(.data) > dd { margin-bottom: var(--arca-space-3); }
}

/* ---------- alert and toast: a rule, a glyph and a word, never colour alone ---------- */
.alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--arca-space-1) var(--arca-space-3); padding: var(--arca-space-3) var(--arca-space-4); background: var(--arca-sheet); border: var(--arca-rule-line) solid var(--arca-ink); border-left: var(--arca-rule-status) solid var(--arca-info); }
.alert > .glyph { margin-top: 0.3em; color: var(--arca-info); }
.alert .alert-title { font-weight: var(--arca-weight-text-strong); }
.alert .alert-title .word { font-family: var(--arca-font-display); font-variation-settings: "wdth" var(--arca-wdth-label); font-weight: var(--arca-weight-label); font-size: var(--arca-type-1); letter-spacing: var(--arca-tracking-label); text-transform: uppercase; margin-right: var(--arca-space-2); }
.alert .alert-body { grid-column: 2; font-size: var(--arca-type-3); }
.alert.success { border-left-color: var(--arca-success); }
.alert.success > .glyph, .alert.success .word { color: var(--arca-success); }
.alert.warning { border-left-color: var(--arca-warning); }
.alert.warning > .glyph, .alert.warning .word { color: var(--arca-warning); }
.alert.danger { border-left-color: var(--arca-danger); }
.alert.danger > .glyph, .alert.danger .word { color: var(--arca-danger); }
.toast { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--arca-space-3); align-items: center; width: min(26rem, 100%); padding: 0 0 0 var(--arca-space-4); font-size: var(--arca-type-3); background: var(--arca-sheet); border: var(--arca-rule-line) solid var(--arca-ink); border-left: var(--arca-rule-status) solid var(--arca-info); }
.toast.success { border-left-color: var(--arca-success); }
.toast.danger { border-left-color: var(--arca-danger); }
.toast.success > .glyph { color: var(--arca-success); }
.toast.danger > .glyph { color: var(--arca-danger); }
.toast .iconbtn { border: 0; border-left: var(--arca-rule-hair) solid var(--arca-staff); }
.toast-region { position: fixed; z-index: 30; right: max(var(--arca-gutter-min), env(safe-area-inset-right, 0px)); bottom: max(var(--arca-gutter-min), env(safe-area-inset-bottom, 0px)); left: max(var(--arca-gutter-min), env(safe-area-inset-left, 0px)); display: grid; justify-items: end; gap: var(--arca-space-2); pointer-events: none; }
.toast-region .toast { pointer-events: auto; animation: arca-enter var(--arca-beat) var(--arca-curve) both; }

/* ---------- tooltip ---------- */
.tip { position: relative; display: inline-flex; }
.tooltip { position: absolute; z-index: 25; bottom: calc(100% + var(--arca-space-2)); left: 50%; transform: translateX(-50%); width: max-content; max-width: 16rem; padding: var(--arca-space-1) var(--arca-space-2); font-size: var(--arca-type-3); line-height: var(--arca-leading-lead); color: var(--arca-ink); background: var(--arca-sheet); border: var(--arca-rule-line) solid var(--arca-ink); pointer-events: none; opacity: 0; transition: opacity var(--arca-beat) var(--arca-curve); }
.tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; height: var(--arca-space-2); border-left: var(--arca-rule-line) solid var(--arca-ink); }
.tip:hover .tooltip, .tip:focus-within .tooltip, .tip.is-open .tooltip { opacity: 1; }
.tooltip.static { position: static; transform: none; opacity: 1; display: inline-block; }
.tooltip.static::after { display: none; }

/* ---------- progress: determinate only; an unknown length is a spinner ---------- */
.progress { display: grid; gap: var(--arca-space-1); max-width: 32rem; }
.progress .bar { height: 10px; background: var(--arca-sheet); border: var(--arca-rule-line) solid var(--arca-ink); }
.progress .fill { display: block; height: 100%; background: var(--arca-ink); transition: width var(--arca-beat) var(--arca-curve); }
.progress .readout { display: flex; justify-content: space-between; gap: var(--arca-space-3); font-family: var(--arca-font-data); font-size: var(--arca-type-2); color: var(--arca-annotation); }
.progress.stepped .bar { display: grid; grid-template-columns: repeat(var(--steps, 8), 1fr); gap: 0; background: var(--arca-sheet); }
.progress.stepped .bar > i { border-left: var(--arca-rule-line) solid var(--arca-ink); }
.progress.stepped .bar > i:first-child { border-left: 0; }
.progress.stepped .bar > i.done { background: var(--arca-ink); }

/* ---------- spinner: a count, not a rotation, because nothing loops ---------- */
.spinner { display: inline-flex; align-items: baseline; gap: var(--arca-space-2); font-family: var(--arca-font-data); font-size: var(--arca-type-2); color: var(--arca-annotation); }
.spinner .elapsed { min-width: 5ch; color: var(--arca-ink); font-variant-numeric: tabular-nums; }
.spinner.block { display: flex; padding: var(--arca-space-3) var(--arca-space-4); border: var(--arca-rule-line) dotted var(--arca-ink); background: var(--arca-sheet); }

/* ---------- skeleton: static staff-coloured rules, no shimmer ---------- */
.skeleton { display: grid; gap: var(--arca-space-3); }
.skeleton i { display: block; height: 0.8em; background: var(--arca-staff); }
.skeleton i.title { height: 1.4em; width: 45%; }
.skeleton i.short { width: 60%; }
.skeleton i.box { height: auto; aspect-ratio: 16 / 9; max-width: 100%; }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0 var(--arca-space-5); border-bottom: var(--arca-rule-line) solid var(--arca-ink); }
.tabs [role="tab"] { min-height: var(--arca-target); padding: 0; margin-bottom: -1px; font: inherit; font-size: var(--arca-type-3); color: var(--arca-annotation); background: transparent; border: 0; border-bottom: var(--arca-rule-status) solid transparent; cursor: pointer; }
.tabs [role="tab"]:hover, .tabs [role="tab"].is-hover { color: var(--arca-ink); border-bottom-color: var(--arca-staff); }
.tabs [role="tab"][aria-selected="true"], .tabs [role="tab"].is-selected { color: var(--arca-ink); font-weight: var(--arca-weight-text-strong); border-bottom-color: var(--arca-ink); }
.tabs [role="tab"]:disabled, .tabs [role="tab"].is-disabled { color: var(--arca-annotation); text-decoration: line-through; cursor: not-allowed; border-bottom-color: transparent; }
.tabs [role="tab"]:focus-visible { outline-offset: 0; }
.tabpanel { padding-top: var(--arca-space-4); }
.tabpanel[hidden] { display: none; }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--arca-space-1); margin: 0; padding: 0; list-style: none; font-size: var(--arca-type-3); }
.crumbs li { display: inline-flex; align-items: center; gap: var(--arca-space-1); }
.crumbs li + li::before { content: "/"; font-family: var(--arca-font-data); color: var(--arca-annotation); padding-right: var(--arca-space-1); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--arca-target); }
.crumbs [aria-current="page"] { font-weight: var(--arca-weight-text-strong); }
.crumbs.data { font-family: var(--arca-font-data); font-size: var(--arca-type-2); }

/* ---------- pagination ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--arca-space-1); margin: 0; padding: 0; list-style: none; }
.pager a, .pager span.gap, .pager [aria-current="page"] { display: inline-grid; place-items: center; min-width: var(--arca-target); min-height: var(--arca-target); padding: 0 var(--arca-space-2); font-family: var(--arca-font-data); font-size: var(--arca-type-2); color: var(--arca-ink); text-decoration: none; border: var(--arca-rule-line) solid transparent; }
.pager a:hover { border-color: var(--arca-ink); }
.pager [aria-current="page"] { font-weight: var(--arca-weight-data-strong); border: var(--arca-rule-mark) solid var(--arca-ink); }
.pager .gap { color: var(--arca-annotation); }
.pager a.step { display: inline-flex; gap: var(--arca-space-1); font-family: var(--arca-font-text); font-size: var(--arca-type-3); border-color: var(--arca-ink); }
.pager a.step[aria-disabled="true"] { color: var(--arca-annotation); border-style: dashed; border-color: var(--arca-annotation); pointer-events: none; }

/* ---------- modal and drawer ----------
 * Two background values only, and no shadow, so an overlay cannot float. It is a
 * second sheet laid over the drawing: the backdrop is the paper itself, opaque but
 * for the show-through, so the page beneath reads at the same faintness as the
 * stealth page's underlay; the overlay is a sheet with a mark-weight ink rule. */
.modal, .drawer { padding: 0; color: var(--arca-ink); background: var(--arca-sheet); border: var(--arca-rule-mark) solid var(--arca-ink); }
.modal { width: min(34rem, calc(100vw - 2 * var(--arca-gutter-min))); }
.modal::backdrop, .drawer::backdrop { background: var(--arca-paper); opacity: calc(1 - var(--arca-show-through)); }
.modal[open], .drawer[open] { animation: arca-enter var(--arca-beat) var(--arca-curve) both; }
.overlay-head { display: flex; align-items: center; justify-content: space-between; gap: var(--arca-space-3); padding: var(--arca-space-2) var(--arca-space-2) var(--arca-space-2) var(--arca-space-5); border-bottom: var(--arca-rule-line) solid var(--arca-ink); }
.overlay-head h2 { font-size: var(--arca-type-6); }
.overlay-body { padding: var(--arca-space-5); display: grid; gap: var(--arca-space-4); }
.overlay-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--arca-space-3); padding: var(--arca-space-3) var(--arca-space-5); border-top: var(--arca-rule-hair) solid var(--arca-staff); }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(26rem, 100vw); border-width: 0 0 0 var(--arca-rule-mark); }
.drawer[open] { animation: arca-drawer var(--arca-beat) var(--arca-curve) both; }
@keyframes arca-drawer { from { transform: translateX(var(--arca-space-6)); opacity: 0; } to { transform: none; opacity: 1; } }
.overlay-static { position: relative; display: block; width: 100%; max-width: 34rem; margin: 0; }
.drawer.overlay-static { height: auto; max-height: none; margin-left: auto; border-width: var(--arca-rule-mark); border-style: solid; border-color: var(--arca-ink); }

/* ---------- part, compact ---------- */
.part.compact { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: var(--arca-space-3) var(--arca-space-4); }
.part.compact .part-name { font-size: var(--arca-type-4); }
.parts { display: grid; gap: 0; }
.parts .part + .part { border-top: 0; }

/* ---------- focus is never removed: restated last so no state rule can win ---------- */
:is(.btn, .iconbtn, .input, .textarea, .select, .slider, a, [role="tab"], [role="menuitem"], summary):focus-visible,
:is(.btn, .iconbtn, .input, .textarea, .select, a).is-focus { outline: var(--arca-rule-focus) solid var(--arca-pencil); outline-offset: 3px; }
:is([role="tab"], [role="menuitem"]).is-focus { outline: var(--arca-rule-focus) solid var(--arca-pencil); outline-offset: -3px; }
.menu [role="menuitem"]:focus-visible, .tabs [role="tab"]:focus-visible { outline-offset: -3px; }

/* ---------- reduced motion: nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .iconbtn, .toggle .thumb, .link-standalone .glyph, .progress .fill, .tooltip { transition: none; }
  .modal[open], .drawer[open], .toast-region .toast { animation: none; }
}

/* chrome: the frame every builtwitharca.com page shares, the page and its footer. */
/* The page is at least one screen tall, and its footer is pinned to the bottom of the
 * screen: a long page scrolls under it, on paper, and it settles at the end. */
.page { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; }
.foot { position: sticky; bottom: 0; z-index: 1; background: var(--arca-paper); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--arca-space-4); padding-block: var(--arca-space-2) max(var(--arca-space-2), env(safe-area-inset-bottom, 0px)); padding-left: max(var(--arca-gutter-min), env(safe-area-inset-left, 0px)); padding-right: max(var(--arca-gutter-min), env(safe-area-inset-right, 0px)); border-top: var(--arca-rule-hair) solid var(--arca-staff); }
.foot a { display: inline-flex; align-items: center; min-height: var(--arca-target); color: var(--arca-annotation); text-decoration: none; }
.foot a:hover { color: var(--arca-ink); text-decoration: underline; }

/* Laksa wraps a markdown page (the privacy notice) in div.mx-auto.max-w-4xl >
 * article.prose; the components' .prose sets the measure and the rhythm, this sets the rest. */
.max-w-4xl { width: 100%; box-sizing: border-box; max-width: calc(var(--arca-measure-text) + 2 * var(--arca-gutter-min)); margin-inline: auto; padding-block: var(--arca-space-8); padding-left: max(var(--arca-gutter-min), env(safe-area-inset-left, 0px)); padding-right: max(var(--arca-gutter-min), env(safe-area-inset-right, 0px)); }
.prose h1, .prose h2, .prose h3 { font-family: var(--arca-font-display); font-variation-settings: "wdth" var(--arca-wdth-display); font-weight: var(--arca-weight-display); letter-spacing: var(--arca-tracking-display); line-height: var(--arca-leading-heading); text-wrap: balance; }
.prose h1 { font-size: var(--arca-type-7); }
.prose h2 { font-size: var(--arca-type-5); margin-top: var(--arca-space-7); padding-top: var(--arca-space-3); border-top: var(--arca-rule-hair) solid var(--arca-staff); }
.prose h3 { font-size: var(--arca-type-4); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: var(--arca-space-2); }
.prose em { font-style: normal; color: var(--arca-annotation); }

/* page: stealth.html */
.thin.leaf { min-height: 0; display: grid; align-content: center; padding-block: var(--arca-space-8); padding-left: max(clamp(20px, 8vw, 120px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(20px, 8vw, 120px), env(safe-area-inset-right, 0px)); }
.leaf .through { inset: var(--arca-space-5); }
.leaf-copy { position: relative; min-width: 0; display: grid; gap: var(--arca-space-5); justify-items: start; max-width: var(--arca-sheet-max); }
.leaf .wordmark { font-size: clamp(76px, 16vw, 168px); line-height: 0.8; }
.leaf .line { font-size: var(--arca-type-5); max-width: min(30ch, 100%); line-height: var(--arca-leading-lead); }
.leaf .cue, .leaf .contact { max-width: 100%; overflow-wrap: anywhere; }
.leaf .contact { font-family: var(--arca-font-data); font-size: var(--arca-type-2); color: var(--arca-annotation); }

/* page: launch.html */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--arca-space-6); align-items: start; }
.el { display: grid; gap: var(--arca-space-3); min-width: 0; }
.hero .wordmark { font-size: var(--arca-type-9); line-height: 0.8; }
.hero .d1 { max-width: 18ch; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); border-top: var(--arca-rule-line) solid var(--arca-ink); }
.three > div { display: grid; gap: var(--arca-space-2); align-content: start; padding: var(--arca-space-4) var(--arca-space-4) var(--arca-space-5) 0; border-bottom: var(--arca-rule-hair) solid var(--arca-staff); }
.three .n { font-size: var(--arca-type-6); line-height: 1; }
.decisions { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: d; }
.decisions li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: var(--arca-space-3); padding-block: var(--arca-space-4); border-top: var(--arca-rule-hair) solid var(--arca-staff); }
.decisions li:first-child { border-top: var(--arca-rule-line) solid var(--arca-ink); }
.decisions .n { font-size: var(--arca-type-5); line-height: 1.1; }
.decisions h3 { font-size: var(--arca-type-5); }
.decisions p { max-width: var(--arca-measure-text); }
.stack td:first-child { width: 7em; }
.close { display: grid; gap: var(--arca-space-4); justify-items: start; }
.close .cue { font-size: var(--arca-type-4); }
