/* Aeternaxis v5 base: tokens, type, grid, the axis, nav, rail, footer, shared controls.
   One colour, one meaning: pencil = an agent's proposal, seal = a person's decision,
   flag = a check's finding. No gradients, no blur, no looping animation. */

:root {
  --paper: #f3f1ea;
  --sheet: #fbfaf6;
  --ink: #17181b;
  --ink-2: #5d5e63;
  --rule: #d9d5ca;
  --well: #17181b;
  --well-ink: #e7e4dc;
  --pencil: #2f55c8;
  --seal: #c8281e;
  --flag: #9a5b13;
  --on-ink: #f3f1ea;
  /* The well is nearly the page colour in dark, so command blocks get a hairline there. */
  --cmd-edge: transparent;

  --font-display: 'Newsreader', 'Noto Serif KR', 'Newsreader Fallback', 'Noto Serif Hangul Fallback', 'Iowan Old Style', Georgia, serif;
  --font-display-ko: 'Newsreader', 'Noto Serif KR', 'Newsreader Fallback', 'Noto Serif Hangul Fallback', serif;
  --font-text: 'IBM Plex Sans', 'IBM Plex Sans KR', 'Plex Sans Fallback', 'Plex Sans Hangul Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-sheet: 'AX Document Serif', 'Noto Serif Hangul Fallback', 'Batang', serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t1: 120ms; --t2: 240ms; --t3: 400ms; --t4: 600ms; --t5: 1200ms;

  --pad: 24px;
  --gap: 24px;
  --W: min(1200px, 100% - 2 * var(--pad));
  --col: calc((var(--W) - 11 * var(--gap)) / 12);
  --axis-x: calc(50% - var(--W) / 2 + 5 * var(--col) + 4.5 * var(--gap));
  --nav-h: 56px;
  /* Sections sit 2 x --sec apart: 120px, 72px on mobile. */
  --sec: 60px;
  --axis-gap: 24px;
  --h1: clamp(36px, 3.9vw, 56px);
  --h2: clamp(28px, 2.9vw, 40px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131416; --sheet: #e6e3da; --ink: #e7e4dc; --ink-2: #9c9a94; --rule: #2e2f33;
    --well: #0c0d0f; --well-ink: #e7e4dc; --pencil: #8fa8ff; --seal: #ff6b5a; --flag: #e0a04a; --on-ink: #131416;
    --cmd-edge: var(--rule);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131416; --sheet: #e6e3da; --ink: #e7e4dc; --ink-2: #9c9a94; --rule: #2e2f33;
  --well: #0c0d0f; --well-ink: #e7e4dc; --pencil: #8fa8ff; --seal: #ff6b5a; --flag: #e0a04a; --on-ink: #131416;
  --cmd-edge: var(--rule);
  color-scheme: dark;
}

@media (max-width: 767px) {
  :root { --pad: 20px; --sec: 36px; }
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--t1); }
.nav, .axis { view-transition-name: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font-text);
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:lang(ko), [lang="ko"] { word-break: keep-all; overflow-wrap: anywhere; line-height: 1.75; }
/* Inline text keeps its line's height: a link in a Korean heading, or a Korean word in an English line. */
:where(a, span, strong, em, b, i, code, mark, time, small, abbr):lang(ko):where(:not(.sheet *)) { line-height: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color var(--t1) var(--ease); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--pencil); outline-offset: 2px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--pencil) 22%, transparent); }
code, pre, kbd, .mono { font-family: var(--font-mono); font-size: .88em; }
:not(pre) > code { padding: 0 .2em; border-radius: 2px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; display: inline-flex; align-items: center; min-block-size: 44px; min-inline-size: 44px; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html:not(.js) [data-js] { display: none !important; }

/* ---------- layout */
.wrap { width: var(--W); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.c-l { grid-column: 1 / span 5; min-width: 0; padding-right: calc(var(--axis-gap) - var(--gap) / 2); }
.c-r { grid-column: 6 / span 7; min-width: 0; padding-left: calc(var(--axis-gap) - var(--gap) / 2); }
.c-all { grid-column: 1 / -1; min-width: 0; }
@media (max-width: 767px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .c-l, .c-r, .c-all { grid-column: 1 / -1; padding-inline: 0; }
}

.axis { position: absolute; top: 0; bottom: 0; left: var(--axis-x); width: 1px; background: var(--ink); pointer-events: none; z-index: 0; }
main { position: relative; display: block; }
main > * { position: relative; z-index: 1; }
@media (max-width: 767px) {
  .axis { left: 10px; opacity: .35; }
}

/* One section system on every page: a heading left of the axis with its pin on the axis,
   content right of it, a hairline as wide as the grid between sections. */
.sec { position: relative; scroll-margin-top: var(--nav-h); }
.sec > .wrap { padding-block: var(--sec); }
.sec + .sec > .wrap { border-top: 1px solid var(--rule); }
/* Page openings: H1 left of the axis, the first line right of it on the H1's baseline. */
.sec-open { --open-top: 0px; }
.sec-open:has(.c-l > .eyebrow:first-child) { --open-top: 33px; }
.sec-open .eyebrow { margin-bottom: 16px; }
.sec-open .c-r > .lede:first-child { margin-top: calc(var(--open-top) + var(--h1) * .76 - 21px); }
:lang(ko) .sec-open .c-r > .lede:first-child { margin-top: calc(var(--open-top) + var(--h1) * .9 - 24px); }
.sec-head { position: relative; }
.sec-head > .h2, .pin { position: relative; }
.sec-head > .h2::after, .pin::after {
  content: ''; position: absolute; top: .56em; right: calc(-1 * var(--axis-gap) - 4.5px);
  width: 8px; height: 8px; border-radius: 4px; background: var(--paper); border: 1px solid var(--ink);
}
:lang(ko) .sec-head > .h2::after { top: .62em; }
.sec-head > p { margin: 12px 0 0; max-width: 26em; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
:lang(ko) .sec-head > p { line-height: 1.7; }
/* The heading rides down its column while the section scrolls, and its pin slides along the axis.
   It stays inside its own grid row, so it stops above the section's end and never meets the next heading. */
@media (min-width: 768px) {
  .grid:not(.has-under) > .sec-head { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
}
/* The first line right of the axis sits on the heading's baseline. */
.sec-head + .c-r { padding-top: calc(var(--h2) * .75 - 19px); }
:lang(ko) .sec-head + .c-r { padding-top: calc(var(--h2) * .9 - 21px); }
/* A section may carry a second block under its heading, left of the axis; the right side spans both. */
.grid.has-under { grid-template-rows: auto 1fr; }
.has-under > .c-r { grid-row: 1 / span 2; align-self: start; }
.sec-under { margin-top: 24px; }
/* The home hero keeps its own block padding (home.css). */
.sec.hero > .wrap { padding-block: 0; }
@media (max-width: 767px) {
  .grid.has-under { grid-template-rows: none; }
  .has-under > .c-r { grid-row: auto; }
  .sec-open .c-l { margin-bottom: 20px; }
  .sec-open .c-r > .lede:first-child, :lang(ko) .sec-open .c-r > .lede:first-child { margin-top: 0; }
  .sec-head { margin-bottom: 16px; }
  .sec-head > .h2::after, .pin::after, :lang(ko) .sec-head > .h2::after { right: auto; left: calc(-1 * var(--pad) + 6px); top: .5em; }
  .sec-head + .c-r, :lang(ko) .sec-head + .c-r { padding-top: 0; }
}

/* ---------- type */
.eyebrow { margin: 0 0 20px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); margin: 0; text-wrap: balance; }
.h1 { font-size: var(--h1); line-height: 1.04; letter-spacing: -.022em; font-variation-settings: 'opsz' 72; }
.h2 { font-size: var(--h2); line-height: 1.08; letter-spacing: -.018em; font-variation-settings: 'opsz' 60; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; font-variation-settings: 'opsz' 24; }
:lang(ko) .h1, :lang(ko) .h2, :lang(ko) .h3 { font-family: var(--font-display-ko); font-weight: 400; letter-spacing: -.02em; line-height: 1.22; }
:lang(ko) .h1 { line-height: 1.16; }
.h1 .br, .h2 .br { display: block; line-height: inherit; }   /* :lang(ko) sets 1.75 on every element; the second line keeps the heading's leading */
.lede { font-size: 19px; line-height: 1.6; color: var(--ink); max-width: 36em; margin: 24px 0 0; }
:lang(ko) .lede { font-size: 18px; line-height: 1.8; }
.small { font-size: 14px; line-height: 1.55; }
.muted { color: var(--ink-2); }
.prose p { margin: 0 0 1em; max-width: 38em; }
.prose p:last-child { margin-bottom: 0; }
.facts { font: 400 12.5px/1.6 var(--font-mono); color: var(--ink-2); margin: 20px 0 0; }

/* ---------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  font: 500 15px/1 var(--font-text); color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 4px; text-decoration: none; cursor: pointer;
  transition: background var(--t1) var(--ease), color var(--t1) var(--ease);
}
.btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.btn.fill { background: var(--ink); color: var(--on-ink); }
.btn.fill:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }

.chip { display: inline-block; padding: 2px 7px; font: 500 11.5px/1.5 var(--font-mono); border-radius: 2px; border: 1px solid currentColor; white-space: nowrap; vertical-align: .1em; }
.chip-shipped { color: var(--ink); }
/* Chips are availability, not findings or proposals: ink only, the border says how far along. */
.chip-main { color: var(--ink); }
.chip-dev { color: var(--ink-2); border-style: dashed; }
.chip-prealpha, .chip-unproven { color: var(--ink-2); border-style: dotted; }

.cmd { background: var(--well); color: var(--well-ink); border: 1px solid var(--cmd-edge); border-radius: 2px; overflow: hidden; }
.cmd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 40px; padding: 0 4px 0 16px; border-bottom: 1px solid color-mix(in srgb, var(--well-ink) 14%, transparent); font: 500 12px/1 var(--font-mono); color: color-mix(in srgb, var(--well-ink) 70%, transparent); }
/* Shell commands wrap (at spaces, then at the path breaks ctx.code marks); JSON keeps its lines and scrolls; text outputs wrap. */
.cmd pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 13.5px/1.65 var(--font-mono); tab-size: 2; white-space: pre-wrap; overflow-wrap: break-word; }
.cmd-json pre { white-space: pre; overflow-wrap: normal; }
/* A block without a label has no bar: Copy sits in its corner. */
.cmd-bare { position: relative; }
.cmd-bare .cmd-head { position: absolute; top: 0; right: 0; min-block-size: 0; border: 0; padding: 0 4px; }
.cmd-bare:has(.cmd-copy) pre { padding-right: 92px; min-block-size: 44px; padding-block: 11px; }
.cmd pre:focus-visible { outline-color: var(--well-ink); outline-offset: -3px; }
.cmd code { font: inherit; background: none; padding: 0; }
.cmd .nb { white-space: nowrap; }
.cmd-copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-block-size: 44px; min-inline-size: 44px; padding: 0 10px; font: inherit; color: inherit; background: none; border: 0; border-radius: 2px; cursor: pointer; }
.cmd-copy[hidden] { display: none; }
.cmd-head:not(:has(.cmd-label)):has(.cmd-copy[hidden]),
html:not(.js) .cmd-head:not(:has(.cmd-label)) { display: none; }
.cmd .cmd-head .cmd-copy:focus-visible { outline-color: var(--well-ink); outline-offset: -3px; }
.cmd-copy svg { width: 14px; height: 14px; }
.cmd-copy:hover { color: var(--well-ink); }
.cmd-copy.done { color: var(--well-ink); }
.cmd-out, .cmd.cmd-out { background: transparent; color: var(--ink); border-color: var(--rule); }
.cmd-out .cmd-head { color: var(--ink-2); border-bottom-color: var(--rule); }
.cmd-out pre:focus-visible { outline-color: var(--pencil); }
.cmd + .cmd { margin-top: 12px; }

.tabs [role="tablist"] { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] { min-block-size: 44px; min-inline-size: 44px; padding: 0 14px; font: 500 14px/1 var(--font-text); color: var(--ink-2); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs [role="tab"]:focus-visible { outline-offset: -3px; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
html:not(.js) .tabs [role="tablist"] { display: none; }
html:not(.js) .tabs [role="tabpanel"] + [role="tabpanel"] { margin-top: 24px; }
html:not(.js) .tabs [role="tabpanel"][hidden] { display: block; }
.js .tabs [role="tabpanel"][hidden] { display: none; }

.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.tbl th { font: 500 12px/1.4 var(--font-mono); letter-spacing: .03em; color: var(--ink-2); text-transform: uppercase; }
@media (max-width: 599px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .tbl td { border: 0; padding: 2px 0; }
}

/* Captures behind tabs (ctx.shots); without JS each shows under its name. */
.shots [role="tablist"] { margin-bottom: 12px; }
.shots-name { margin: 0 0 8px; font: 500 12px/1.5 var(--font-mono), var(--font-text); }
.js .shots-name { display: none; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 2px; background: var(--sheet); }
.shot figcaption { margin-top: 10px; font: 400 12.5px/1.5 var(--font-mono); color: var(--ink-2); }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--rule); }
.nav-in { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; min-block-size: 44px; min-inline-size: 44px; text-decoration: none; font: 500 16px/1 var(--font-text); letter-spacing: -.01em; margin-right: 8px; }
.nav-mark { width: 30px; height: 30px; margin: -2px 0; color: var(--ink); }
.nav-links { display: flex; gap: 4px; }
.nav-links a, .nav-lang { display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; min-inline-size: 44px; padding: 0 10px; font: 400 15px/1 var(--font-text); color: var(--ink-2); text-decoration: none; border-radius: 2px; }
.nav-links a:hover, .nav-lang:hover, .nav-links a[aria-current="page"], .nav-links a[data-section-current] { color: var(--ink); }
.nav-links a[aria-current="page"], .nav-links a[data-section-current] { text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: .45em; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-install { position: relative; z-index: 0; min-block-size: 44px; min-inline-size: 52px; padding: 4px 18px; font-size: 14px; border: 0; }
.nav-install.btn.fill, .nav-install.btn.fill:hover { background: transparent; }
.nav-install::before { content: ''; position: absolute; inset: 4px; z-index: -1; border-radius: 4px; background: var(--ink); transition: background var(--t1) var(--ease); }
.nav-install:hover::before { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.nav-install:focus-visible, .nav-menu:focus-visible { outline-offset: -2px; }
.nav-menu-wrap { display: none; }
.nav-menu { position: relative; z-index: 0; display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; min-inline-size: 52px; padding: 4px 16px; font: 500 14px/1 var(--font-text); color: var(--ink); background: none; border: 0; border-radius: 4px; cursor: pointer; list-style: none; user-select: none; }
.nav-menu::-webkit-details-marker { display: none; }
.nav-menu::marker { content: ''; }
.nav-menu::before { content: ''; position: absolute; inset: 4px; z-index: -1; border: 1px solid var(--rule); border-radius: 4px; transition: border-color var(--t1) var(--ease), background var(--t1) var(--ease); }
.nav-menu:hover::before { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav-menu-close { display: none; }
.nav-menu-wrap[open] .nav-menu-open { display: none; }
.nav-menu-wrap[open] .nav-menu-close { display: inline; }
.nav-menu-wrap:not([open]) > .menu { display: none; }
.menu { position: absolute; top: 100%; left: 0; right: 0; max-block-size: calc(100vh - var(--nav-h)); max-block-size: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); }
.menu ul { list-style: none; margin: 0; padding: 12px 0; }
.menu li a { display: flex; align-items: center; min-block-size: 48px; font: 400 20px/1 var(--font-display); text-decoration: none; border-bottom: 1px solid var(--rule); }
.menu li a[aria-current="page"] { font-weight: 500; text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: .25em; }
.menu li a:focus-visible { outline-offset: -3px; }
:lang(ko) .menu li a { font-family: var(--font-display-ko); font-size: 19px; }
.menu-lang { margin: 8px 0 20px; }
.menu-lang a { display: inline-flex; align-items: center; min-block-size: 44px; min-inline-size: 44px; }
.menu-lang a:focus-visible { outline-offset: -2px; }
@media (max-width: 767px) {
  .nav-links, .nav-lang { display: none; }
  .nav-in { gap: 12px; }
  .nav-end { gap: 4px; }
  .nav-menu-wrap { display: block; }
}

/* ---------- rail (/rigorloom/*) */
.rail { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 2; }
.rail-in { display: flex; align-items: center; gap: 2px; min-block-size: 44px; overflow-x: auto; scrollbar-width: none; }
.rail-name { font: 500 13px/1 var(--font-text); margin-right: 16px; white-space: nowrap; }
.rail-name .mono { color: var(--ink-2); font-size: 12px; margin-left: 4px; }
.rail a { display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; min-inline-size: 44px; padding: 0 10px; font: 400 13.5px/1 var(--font-text); color: var(--ink-2); text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.rail a:hover { color: var(--ink); }
.rail a:focus-visible { outline-offset: -3px; }
.rail a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 767px) {
  .rail-name { display: none; }
  .rail a { padding-inline: clamp(6px, 2vw, 10px); }
}

/* ---------- footer */
.foot { position: relative; padding: 0 0 24px; border-top: 1px solid var(--rule); margin-top: 0; }
/* The axis ends in the mark: the paper box is only as tall as the mark. */
.foot-end { position: absolute; top: -1px; left: var(--axis-x); transform: translate(-50%, -100%); width: 40px; height: 38px; display: grid; place-items: end center; padding-bottom: 4px; background: var(--paper); }
.foot-mark { width: 32px; height: 32px; color: var(--ink); }
/* The Rigorloom list is twice as long as the others, so it runs in two columns. */
.foot-cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: 32px 0 24px; }
.foot-col:first-child ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(3, auto); column-gap: var(--gap); }
.foot-col h2 { margin: 0 0 6px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
:lang(ko) .foot-col h2 { text-transform: none; letter-spacing: 0; font-family: var(--font-text); font-size: 13px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0; }
.foot-col a { display: inline-flex; min-block-size: 44px; min-inline-size: 44px; align-items: center; font-size: 15px; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); }
.foot-base a { display: inline-flex; align-items: center; min-block-size: 44px; min-inline-size: 44px; color: var(--ink-2); }
.theme { margin-left: auto; display: inline-flex; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.theme[hidden] { display: none; }
.theme button { min-block-size: 44px; min-inline-size: 44px; padding: 0 12px; font: 400 13px/1 var(--font-text); color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.theme button:focus-visible { outline-offset: -3px; }
.theme button + button { border-left: 1px solid var(--rule); }
.theme button[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
@media (max-width: 767px) {
  .foot-end { left: 10px; width: 20px; height: 24px; }
  .foot-mark { width: 18px; height: 18px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .foot-col:first-child { grid-row: 1 / span 3; }
  .foot-col:first-child ul { display: block; }
  .theme { margin-left: 0; }
}
@media (max-width: 520px) {
  .foot-col a[href^="mailto:"] { font-size: 13px; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  @view-transition { navigation: none; }
}
@media print {
  .nav, .rail, .foot, .axis { display: none; }
}
