/* Generated by scripts/build-css.mjs from the joseli.to design system. Do not edit. */
/* joseli.to webfonts. Computer Modern (the LaTeX faces), from the
   "computer-modern" npm package, served from static.joseli.to: the binaries
   live in one place and no project versions them. See HOSTING in the readme.
   A declared face costs no download until some text matches it. */
@font-face{font-family:"CMU Serif";font-style:normal;font-weight:400;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-serif-500-roman.woff2") format("woff2")}
@font-face{font-family:"CMU Serif";font-style:italic;font-weight:400;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-serif-500-italic.woff2") format("woff2")}
@font-face{font-family:"CMU Serif";font-style:normal;font-weight:700;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-serif-700-roman.woff2") format("woff2")}
@font-face{font-family:"CMU Serif";font-style:italic;font-weight:700;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-serif-700-italic.woff2") format("woff2")}
@font-face{font-family:"CMU Typewriter Text";font-style:normal;font-weight:200;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-typewriter-text-200-roman.woff2") format("woff2")}
@font-face{font-family:"CMU Typewriter Text";font-style:italic;font-weight:200;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-typewriter-text-200-italic.woff2") format("woff2")}
@font-face{font-family:"CMU Typewriter Text";font-style:normal;font-weight:400;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-typewriter-text-500-roman.woff2") format("woff2")}
@font-face{font-family:"CMU Typewriter Text";font-style:italic;font-weight:400;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-typewriter-text-500-italic.woff2") format("woff2")}
@font-face{font-family:"CMU Typewriter Text";font-style:normal;font-weight:700;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-typewriter-text-700-roman.woff2") format("woff2")}
@font-face{font-family:"CMU Typewriter Text";font-style:italic;font-weight:700;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-typewriter-text-700-italic.woff2") format("woff2")}
@font-face{font-family:"CMU Sans Serif";font-style:normal;font-weight:400;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-sans-serif-500-roman.woff2") format("woff2")}
@font-face{font-family:"CMU Sans Serif";font-style:italic;font-weight:400;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-sans-serif-500-italic.woff2") format("woff2")}
@font-face{font-family:"CMU Sans Serif";font-style:normal;font-weight:700;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-sans-serif-700-roman.woff2") format("woff2")}
@font-face{font-family:"CMU Sans Serif";font-style:italic;font-weight:700;font-display:swap;src:url("https://static.joseli.to/assets/fonts/cmu-sans-serif-700-italic.woff2") format("woff2")}
/* GENERATED by tools/colors.py from tokens/colors.json. Do not edit by hand.

   Light theme: the default. It applies to :root with no attribute, and to any
   element (or the root) carrying data-theme="light". Every token below has a
   dark twin in dark.css and a terminal twin in terminal.css, and every ink has
   its --on-* partner: the colour text takes when it sits ON that ink.

   The theme is MANUAL ONLY. There is no prefers-color-scheme anywhere in this
   system: light for every reader until they pick dark or terminal, and the
   pick is stored per device (see theme/theme.js). */

:root,
[data-theme="light"] {
  color-scheme: light;

  /* surfaces */
  --surface-page: #F4F1EA;
  --surface-card: #FBF9F4;
  --surface-sunken: #EAE6DC;
  --surface-fill: #E2DDD1;

  /* text */
  --text-1: #111111;
  --text-2: #3A3A3A;
  --text-3: #5A5650;
  --text-inverse: #FFFFFF;

  /* links */
  --link: #0000EE;
  --link-visited: #7A2E6B;
  --link-active: #9E1200;

  /* lines, shadow, focus */
  --border-strong: #111111;
  --border-hairline: #B7AFA0;
  --border-dotted: #7A7368;
  --rule-heavy: #111111;
  --shadow-color: #111111;
  --halftone-dot: #111111;
  --focus-ring: #0000EE;
  --selection-bg: #0000EE;
  --selection-fg: #FFFFFF;

  /* project ink and spot */
  --project-ink: #0000EE;
  --project-ink-contrast: #FFFFFF;
  --spot: #E10600;
  --on-spot: #FFFFFF;

  /* status */
  --status-ok: #1B5E20;
  --on-ok: #FFFFFF;
  --status-warn: #8A4B00;
  --on-warn: #FFFFFF;
  --status-error: #9E1200;
  --on-error: #FFFFFF;

  /* product inks */
  --ink-down: #018281;
  --on-down: #FFFFFF;
  --ink-pix: #32BCAD;
  --on-pix: #000000;
  --ink-sponsors: #FFB3D6;
  --on-sponsors: #000000;

  /* the sixteen inks */
  --ink-blue: #0000EE;
  --on-blue: #FFFFFF;
  --ink-sky: #0095DA;
  --on-sky: #000000;
  --ink-cyan: #00B7C3;
  --on-cyan: #000000;
  --ink-teal: #009E8F;
  --on-teal: #000000;
  --ink-green: #00A550;
  --on-green: #000000;
  --ink-lime: #8DC63F;
  --on-lime: #000000;
  --ink-yellow: #FFD500;
  --on-yellow: #000000;
  --ink-amber: #FFAA00;
  --on-amber: #000000;
  --ink-orange: #FF7D00;
  --on-orange: #000000;
  --ink-red: #EE0000;
  --on-red: #FFFFFF;
  --ink-pink: #FF0084;
  --on-pink: #000000;
  --ink-magenta: #D6008F;
  --on-magenta: #FFFFFF;
  --ink-violet: #551A8B;
  --on-violet: #FFFFFF;
  --ink-purple: #7B2FF2;
  --on-purple: #FFFFFF;
  --ink-brown: #8B5A2B;
  --on-brown: #FFFFFF;
  --ink-graphite: #2B2B2B;
  --on-graphite: #FFFFFF;

  /* legacy aliases (v1 names, kept so old markup still resolves; prefer the semantic tokens above) */
  --paper: #F4F1EA;
  --black: #111111;
  --netscape-gray: #C0C0C0;
  --gray-90: #1A1A1A;
  --gray-70: #3A3A3A;
  --gray-50: #5A5650;
  --gray-30: #B7AFA0;
  --gray-15: #E2DDD1;
  --gray-06: #EAE6DC;
}
/* GENERATED by tools/colors.py from tokens/colors.json. Do not edit by hand.

   Dark theme ("fotolito"): warm near-black paper, warm ink a step below white.
   Opt-in only, via data-theme="dark" on <html> (or on any element, to scope
   it). Borders, the heavy rule and the halftone dots are quieter than the ink,
   so a box does not read as high-contrast chrome. The sixteen inks stay
   coloured, lifted only as far as black text needs; every --on-* is black.
   The product inks stay deep so white text sits on them (--ink-pix #1A7A70,
   --ink-down #0E7471, both >=5:1 with #FFFFFF). */

[data-theme="dark"] {
  color-scheme: dark;

  /* surfaces */
  --surface-page: #15130F;
  --surface-card: #1F1C17;
  --surface-sunken: #0E0C09;
  --surface-fill: #2A261F;

  /* text */
  --text-1: #D9CFB9;
  --text-2: #AFA590;
  --text-3: #908777;
  --text-inverse: #15130F;

  /* links */
  --link: #7996DB;
  --link-visited: #C775AE;
  --link-active: #D37B69;

  /* lines, shadow, focus */
  --border-strong: #897F70;
  --border-hairline: #504C44;
  --border-dotted: #656056;
  --rule-heavy: #B6AB96;
  --shadow-color: #847968;
  --halftone-dot: #A99D83;
  --focus-ring: #7996DB;
  --selection-bg: #7996DB;
  --selection-fg: #15130F;

  /* project ink and spot */
  --project-ink: #5B85E6;
  --project-ink-contrast: #000000;
  --spot: #DC594A;
  --on-spot: #000000;

  /* status */
  --status-ok: #44A55E;
  --on-ok: #000000;
  --status-warn: #C58E20;
  --on-warn: #000000;
  --status-error: #D37B69;
  --on-error: #000000;

  /* product inks */
  --ink-down: #0E7471;
  --on-down: #FFFFFF;
  --ink-pix: #1A7A70;
  --on-pix: #FFFFFF;
  --ink-sponsors: #C3859C;
  --on-sponsors: #000000;

  /* the sixteen inks */
  --ink-blue: #5B85E6;
  --on-blue: #000000;
  --ink-sky: #2A90C0;
  --on-sky: #000000;
  --ink-cyan: #2295A6;
  --on-cyan: #000000;
  --ink-teal: #37947C;
  --on-teal: #000000;
  --ink-green: #30995C;
  --on-green: #000000;
  --ink-lime: #6C960C;
  --on-lime: #000000;
  --ink-yellow: #AD9000;
  --on-yellow: #000000;
  --ink-amber: #C7750A;
  --on-amber: #000000;
  --ink-orange: #D6661B;
  --on-orange: #000000;
  --ink-red: #E0564D;
  --on-red: #000000;
  --ink-pink: #D86185;
  --on-pink: #000000;
  --ink-magenta: #D753B8;
  --on-magenta: #000000;
  --ink-violet: #AE6FC8;
  --on-violet: #000000;
  --ink-purple: #936FE9;
  --on-purple: #000000;
  --ink-brown: #B47849;
  --on-brown: #000000;
  --ink-graphite: #88837C;
  --on-graphite: #000000;

  /* legacy aliases (v1 names, kept so old markup still resolves; prefer the semantic tokens above) */
  --paper: #15130F;
  --black: #D9CFB9;
  --netscape-gray: #5E584F;
  --gray-90: #D9CFB9;
  --gray-70: #AFA590;
  --gray-50: #908777;
  --gray-30: #504C44;
  --gray-15: #2A261F;
  --gray-06: #0E0C09;
}
/* GENERATED by tools/colors.py from tokens/colors.json. Do not edit by hand.

   Terminal theme: amber phosphor on black, the npx joselito card. Opt-in only,
   via data-theme="terminal". Monochrome, like a CRT: text, links, borders, the
   project ink, the product inks, the status colours and the sixteen inks all
   go amber. Inks fold into four amber tones (#FFD54A light, #FFB000 base,
   #FF8A1F hot, #D89A18 dim) so neighbouring inks stay apart. */

[data-theme="terminal"] {
  color-scheme: dark;

  /* surfaces */
  --surface-page: #000000;
  --surface-card: #000000;
  --surface-sunken: #0D0B06;
  --surface-fill: #1C1503;

  /* text */
  --text-1: #FFB000;
  --text-2: #D89A18;
  --text-3: #A9761A;
  --text-inverse: #000000;

  /* links */
  --link: #FFD54A;
  --link-visited: #C0873A;
  --link-active: #FF6A00;

  /* lines, shadow, focus */
  --border-strong: #FFB000;
  --border-hairline: #3A2907;
  --border-dotted: #6B4C0E;
  --rule-heavy: #FFB000;
  --shadow-color: #A9761A;
  --halftone-dot: #FFB000;
  --focus-ring: #FFD54A;
  --selection-bg: #FFD54A;
  --selection-fg: #000000;

  /* project ink and spot */
  --project-ink: #FFB000;
  --project-ink-contrast: #000000;
  --spot: #FFB000;
  --on-spot: #000000;

  /* status */
  --status-ok: #FFB000;
  --on-ok: #000000;
  --status-warn: #FFB000;
  --on-warn: #000000;
  --status-error: #FF6A00;
  --on-error: #000000;

  /* product inks */
  --ink-down: #FFB000;
  --on-down: #000000;
  --ink-pix: #FFB000;
  --on-pix: #000000;
  --ink-sponsors: #FF8A1F;
  --on-sponsors: #000000;

  /* the sixteen inks */
  --ink-blue: #FFB000;
  --on-blue: #000000;
  --ink-sky: #FFD54A;
  --on-sky: #000000;
  --ink-cyan: #FFD54A;
  --on-cyan: #000000;
  --ink-teal: #FFB000;
  --on-teal: #000000;
  --ink-green: #FFB000;
  --on-green: #000000;
  --ink-lime: #FFD54A;
  --on-lime: #000000;
  --ink-yellow: #FFD54A;
  --on-yellow: #000000;
  --ink-amber: #FFB000;
  --on-amber: #000000;
  --ink-orange: #FF8A1F;
  --on-orange: #000000;
  --ink-red: #FF8A1F;
  --on-red: #000000;
  --ink-pink: #FF8A1F;
  --on-pink: #000000;
  --ink-magenta: #FF8A1F;
  --on-magenta: #000000;
  --ink-violet: #D89A18;
  --on-violet: #000000;
  --ink-purple: #D89A18;
  --on-purple: #000000;
  --ink-brown: #D89A18;
  --on-brown: #000000;
  --ink-graphite: #D89A18;
  --on-graphite: #000000;

  /* legacy aliases (v1 names, kept so old markup still resolves; prefer the semantic tokens above) */
  --paper: #000000;
  --black: #FFB000;
  --netscape-gray: #4A3609;
  --gray-90: #FFB000;
  --gray-70: #D89A18;
  --gray-50: #A9761A;
  --gray-30: #6B4C0E;
  --gray-15: #3A2907;
  --gray-06: #140E02;
}
:root{
/* Computer Modern all the way down: CMU Serif for display, headlines, rank
   numerals and the wordmark; CMU Sans Serif for everything you read; CMU
   Typewriter for what is set in CAPS (meta, labels, kickers, code).
   v2: display is CMU Serif BOLD (700), tracked -0.02em. */
--font-display:"CMU Serif","Latin Modern Roman","Computer Modern Serif",Georgia,"Times New Roman",serif;
--font-display-sans:"CMU Sans Serif","Latin Modern Sans",system-ui,sans-serif;
--font-body:"CMU Sans Serif","Latin Modern Sans",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
--font-mono:"CMU Typewriter Text",ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
--font-serif-reading:"CMU Serif",Georgia,"Times New Roman",serif;

--text-display-1:52px;
--text-display-2:40px;
--text-display-3:34px;
--text-display-4:26px;
--text-feed-title:21px;
--text-kicker:20px;
--text-title:19px;
--text-reading:17px;
--text-title-sm:17px;
--text-body:15px;
--text-body-sm:13.5px;
--text-caption:12.5px;
--text-meta:11.5px;
--text-micro:10.5px;

--leading-display:1.05;
--leading-title:1.3;
--leading-body:1.55;
--leading-reading:1.65;

--weight-normal:400;
/* No CM family has a 600: semibold resolves to the real 700 face. */
--weight-semibold:700;
--weight-bold:700;
--weight-display:700;

--tracking-display:-0.02em;
--tracking-normal:0;
--tracking-meta:0.08em;
--tracking-micro:0.11em;

/* composed roles */
--type-wordmark:var(--weight-display) 34px/1.05 var(--font-display);
--type-display:var(--weight-display) var(--text-display-2)/var(--leading-display) var(--font-display);
--type-rank:var(--weight-display) var(--text-display-4)/1 var(--font-display);
--type-feed-title:var(--weight-display) var(--text-feed-title)/1.3 var(--font-display);
--type-kicker:var(--weight-bold) var(--text-kicker)/1.2 var(--font-mono);
--type-title:var(--weight-bold) var(--text-title)/var(--leading-title) var(--font-body);
--type-body:var(--weight-normal) var(--text-reading)/var(--leading-body) var(--font-body);
--type-compact:var(--weight-normal) var(--text-body)/var(--leading-body) var(--font-body);
--type-reading:var(--weight-normal) var(--text-reading)/var(--leading-reading) var(--font-body);
--type-dek:var(--weight-normal) var(--text-body-sm)/1.5 var(--font-body);
--type-caption:var(--weight-normal) var(--text-caption)/1.4 var(--font-body);
--type-meta:var(--weight-normal) var(--text-meta)/1.4 var(--font-mono);
--type-label:var(--weight-bold) var(--text-micro)/1.2 var(--font-mono);
--type-micro:var(--weight-bold) var(--text-micro)/1.2 var(--font-mono);
--type-code:var(--weight-normal) var(--text-caption)/1.5 var(--font-mono);
}
:root{
--space-0:0;
--space-1:2px;
--space-2:4px;
--space-3:6px;
--space-4:8px;
--space-5:10px;
--space-6:14px;
--space-7:18px;
--space-8:24px;
--space-9:28px;
--space-10:36px;
--space-11:44px;
--space-12:64px;

/* layout */
--measure-reading:66ch;
--measure-dek:52ch;
--page-max:880px;
--page-max-wide:1120px;
--page-pad-x:24px;
--page-pad-top:28px;
--page-pad-bottom:64px;
--rail-width:232px;
--column-gap:36px;
--feed-row-y:14px;
--box-pad:12px;
--box-head-pad:7px 10px;
}
@media (max-width:600px){
:root{--page-pad-x:16px}
}
/* Line weights. Declared on every theme root, not just :root, because a
   custom property that references another resolves where it is declared: a
   [data-theme="dark"] block scoped to one element must recompute --border with
   its own --border-strong, not inherit the page's. */
:root,[data-theme]{
--radius:0;
--radius-sm:0;

--border-width:2px;
--border-width-hair:1px;
--border-width-heavy:3px;
--border:2px solid var(--border-strong);
--border-heavy:3px solid var(--border-strong);
--border-hair:1px solid var(--border-hairline);
--border-dot:1px dotted var(--border-dotted);
--rule:3px solid var(--rule-heavy);

--underline-offset:0.12em;
--underline-thickness:2px;
--motion-fast:70ms; /* @kind other */
--motion-base:110ms; /* @kind other */
--easing:cubic-bezier(.2,.8,.2,1); /* @kind other */
}
/* ---------------------------------------------------------------------------
   Halftone ("retícula") geometry and tilt. Non-colour tokens.

   The hard shadow is a dot field, not a solid block: dots at an integer pitch
   with a pixel radius, never a percentage of the cell, so every dot lands on
   the same sub-pixel phase and the field does not beat against the screen
   (moire). On phones the pitch opens to 6px and the offset drops to 5px, about
   half the ink coverage, so blocks weigh less on a small screen.
   --------------------------------------------------------------------------- */
:root{
--dot-pitch:4px;
--dot-radius:1.5px;
--shadow-offset:6px;
--shadow-offset-hover:9px;
--shadow-offset-pressed:0px;
--press-travel:2px;

/* Image screens (portraits, thumbnails, empty placeholders). */
--screen-pitch:6px;
--screen-radius:2px;

/* Tilt: ONLY the ink block behind a title or the wordmark tilts, between -2deg
   and +1.5deg, like a sticker. Text, panels, controls never rotate. */
--tilt-min:-2deg;
--tilt-max:1.5deg;
--tilt:-1.5deg;      /* default: wordmark, display highlight */
--tilt-cw:1.5deg;    /* the clockwise variant, for a second block nearby */
--tilt-strong:-2deg; /* the steepest allowed */
}
@media (max-width:600px){
:root{--dot-pitch:6px;--shadow-offset:5px}
}
/* Minimal element defaults. Consumers get these for free by linking styles.css. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--surface-page)}
body{margin:0;background:var(--surface-page);color:var(--text-1);font:var(--type-body);text-wrap:pretty}
/* A themed island (data-theme on any element) paints its own paper and ink. */
[data-theme]{background-color:var(--surface-page);color:var(--text-1)}
::selection{background:var(--selection-bg);color:var(--selection-fg)}
a{color:var(--link);text-decoration:underline;text-underline-offset:var(--underline-offset);text-decoration-thickness:var(--underline-thickness)}
a:visited{color:var(--link-visited)}
a:active{color:var(--link-active)}
/* Hover inverts a plain link into a block of its own colour. :where() keeps
   this at zero specificity, so any component class (.btn, .card, .chip ...)
   wins without opting out; .cast and .wordmark are excluded outright. */
:where(a:not(.cast,.neo,.wordmark,[data-no-invert])):hover{background:var(--link);color:var(--text-inverse);text-decoration:none}
:where(a:not(.cast,.neo,.wordmark,[data-no-invert])):visited:hover{background:var(--link-visited);color:var(--text-inverse)}
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px}
hr{border:0;border-top:var(--border);margin:var(--space-8) 0}
code,kbd,samp,pre{font:var(--type-code)}
button,input,select,textarea{font:inherit;color:inherit;border-radius:0}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:var(--weight-display);letter-spacing:var(--tracking-display);margin:0 0 var(--space-4)}
h1{font-size:var(--text-display-2);line-height:var(--leading-display)}
h2{font-size:var(--text-display-3);line-height:1.1}
h3{font-size:var(--text-display-4);line-height:1.15}
h4{font-size:var(--text-title);line-height:var(--leading-title)}
img{max-width:100%;height:auto}
/* ---------------------------------------------------------------------------
   The surface layer: halftone cast, press, lift, ink block, tilt.

     .cast        a block: 2px ink border, opaque fill, and a hard shadow made
                  of a dot field offset --shadow-offset. Needs an opaque
                  background (it gets --surface-card unless you set one).
     .cast-flat   same block, no shadow (a nested block inside a casting one).
     .press       interactive: lifts 2px toward the light on hover (shadow grows
                  to 9px), slams flat into the shadow on press (offset 0).
                  Buttons, chips, links-as-blocks.
     .lift        hover lift with no press state. Cards and tiles.
     .ink-block   the highlight block behind a title or the wordmark suffix.
     .tilt        rotates an .ink-block (-1.5deg); .tilt-cw +1.5deg; .tilt-strong -2deg.
     .screen      a halftone image field (portrait, thumbnail, placeholder);
                  set --dot-ink to pick the ink.

   Rules: one cast per view region, never two nested blocks that both cast,
   never a shadow on something that cannot be touched or read as raised. Only
   ink blocks tilt; text, panels and controls stay square.

   v1 names (.neo, .neo-press, .neo-lift, .neo-flat, .neo-sm, .neo-lg) still
   work as aliases. There is no size step any more: one offset per breakpoint.
   --------------------------------------------------------------------------- */
.cast,.neo{
  position:relative;isolation:isolate;
  border:var(--border);border-radius:0;
  background-color:var(--surface-card);
}
.cast::after,.neo::after{
  --dot-field:radial-gradient(circle at 50% 50%,var(--shadow-color) var(--dot-radius),transparent calc(var(--dot-radius) + 0.5px));
  content:"";position:absolute;inset:calc(var(--border-width) * -1);z-index:-2;pointer-events:none;
  transform:translate(var(--shadow-offset),var(--shadow-offset));
  background:var(--dot-field) 0 0/var(--dot-pitch) var(--dot-pitch);
}
/* The block's own fill, repainted above the dot field: inside an isolated
   block a negative z-index child paints over the block's background, so the
   dots would otherwise screen the block's own content. */
.cast::before,.neo::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:inherit}
.cast-flat::after,.neo-flat::after{background:none}

.press,.lift,.neo-press,.neo-lift,
.press::after,.lift::after,.neo-press::after,.neo-lift::after{transition:transform var(--motion-fast) var(--easing)}
.press:hover,.lift:hover,.neo-press:hover,.neo-lift:hover{transform:translate(calc(var(--press-travel) * -1),calc(var(--press-travel) * -1))}
.press:hover::after,.lift:hover::after,.neo-press:hover::after,.neo-lift:hover::after{transform:translate(var(--shadow-offset-hover),var(--shadow-offset-hover))}
.press:active,.neo-press:active{transform:translate(var(--press-travel),var(--press-travel))}
.press:active::after,.neo-press:active::after{transform:translate(var(--shadow-offset-pressed),var(--shadow-offset-pressed));background:none}
.press:disabled,.press[aria-disabled="true"],.neo-press:disabled,.neo-press[aria-disabled="true"]{transform:none}
.press:disabled::after,.press[aria-disabled="true"]::after,.neo-press:disabled::after,.neo-press[aria-disabled="true"]::after{transform:none;background:none}
@media (prefers-reduced-motion:reduce){
  .press,.lift,.neo-press,.neo-lift,.press::after,.lift::after,.neo-press::after,.neo-lift::after{transition:none}
  .press:hover,.lift:hover,.neo-press:hover,.neo-lift:hover{transform:none}
  .press:hover::after,.lift:hover::after,.neo-press:hover::after,.neo-lift:hover::after{transform:translate(var(--shadow-offset),var(--shadow-offset))}
}

/* The ink block. inline-block + line-height .92 sizes it from the line box,
   not from Computer Modern's very tall ascent/descent; the deeper bottom
   padding sits it on the optical centre of the caps. */
.ink-block{
  display:inline-block;line-height:.92;padding:.06em .07em .1em;
  background:var(--ink,var(--project-ink));color:var(--on-ink,var(--project-ink-contrast));
}
.tilt{transform:rotate(var(--tilt))}
.tilt-cw{transform:rotate(var(--tilt-cw))}
.tilt-strong{transform:rotate(var(--tilt-strong))}

.screen{
  --screen-field:radial-gradient(circle at calc(var(--screen-pitch) / 2) calc(var(--screen-pitch) / 2),var(--dot-ink,var(--halftone-dot)) var(--screen-radius),transparent calc(var(--screen-radius) + 0.5px));
  background-color:var(--surface-card);
  background-image:var(--screen-field);
  background-size:var(--screen-pitch) var(--screen-pitch);
}

/* 1x screens: anti-aliased round dots of 1-2 device px smear into grey and
   beat. Square dots snapped to whole px stay crisp: a 2x2 block per cell. */
@media (max-resolution:1.49dppx){
  .cast::after,.neo::after{--dot-field:conic-gradient(from 270deg at 2px 2px,var(--shadow-color) 25%,transparent 0)}
  .screen{--screen-field:conic-gradient(from 270deg at 3px 3px,var(--dot-ink,var(--halftone-dot)) 25%,transparent 0)}
}
:root, [data-theme] {
--project-ink:var(--ink-orange);
--project-ink-contrast:var(--on-orange);
}
