/* Hallmark · macrostructure: custom (lock-screen hero, ledger body) · tone: austere-classical · anchor hue: brand blue #1466E8
 * Shared tokens, fonts, grounds, header, footer, figures. Owned by the art director; pieces style only their own
 * section in css/<key>.css and use these tokens, never raw colours. See ../../DESIGN.md. */

@font-face { font-family: "Barlow Condensed"; font-weight: 300; font-display: swap; src: url(/fonts/BarlowCondensed-300.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 400; font-display: swap; src: url(/fonts/BarlowCondensed-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url(/fonts/BarlowCondensed-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/BarlowCondensed-600.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 500; font-display: swap; src: url(/fonts/JetBrainsMono-400.woff2) format("woff2"); }

:root {
  color-scheme: light dark;

  /* Brand, from Apps/Vault/Assets.xcassets */
  --blue: #1466E8;          /* AccentColor */
  --blue-strong: #0C4FC0;   /* AccentColor, high contrast */
  --marble: #F4F1EA;        /* Marble / Ground */
  --navy: #0A1A3F;          /* Ink */
  --white: #FFFFFF;         /* Surface */
  --vein-light: #CFC9BD;    /* Vein */
  --ink-2-light: #66645F;   /* SecondaryInk */
  --night-surface: #13254F; /* Surface, dark */
  --night-vein: #2A3A63;    /* Vein, dark */
  --night-ink-2: #9197AC;   /* SecondaryInk, dark */
  --night-blue: #3D8BFF;    /* AccentColor, dark */
  --night-blue-strong: #6AA6FF;
  /* SecondaryInk darkened for body copy on the web: 7.6:1 on marble, 8.6:1 on white; 7.5:1+ on the night grounds. */
  --ink-2-body: #4D4B47;
  --night-ink-2-body: #B4B9CA;

  /* Semantic, light */
  --ground: var(--marble);
  --surface: var(--white);
  --ink: var(--navy);
  --ink-2: var(--ink-2-body);
  --vein: var(--vein-light);
  --link: var(--blue-strong);
  --accent: var(--blue);
  --on-accent: var(--white);
  --deep: var(--navy);
  --on-deep: var(--marble);
  --on-deep-2: #B7BCCB;     /* marble mixed into navy, 9:1 on --deep */
  --deep-line: var(--night-vein);
  --deep-link: var(--night-blue-strong);
  --ok: #16703C;
  --danger: #D70015;
  --shadow-shot: 0 1px 2px rgb(10 26 63 / 0.10), 0 12px 32px -12px rgb(10 26 63 / 0.28);

  /* Type */
  --font-display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --text-xs: 0.8125rem;   /* 13 */
  --text-sm: 0.9375rem;   /* 15 */
  --text-base: 1.0625rem; /* 17 */
  --text-lg: 1.25rem;     /* 20 */
  --text-xl: 1.625rem;    /* 26 */
  --text-2xl: 2.25rem;    /* 36 */
  --text-3xl: clamp(2.5rem, 1.6rem + 3vw, 3.75rem);   /* section heads, 40–60 */
  --text-title: clamp(2.75rem, 1.5rem + 4vw, 4.75rem); /* an inner page's title in its masthead, 44–76 */
  --text-display: clamp(3.25rem, 1.5rem + 6vw, 6.5rem); /* hero, 52–104 */
  --leading-tight: 0.98;
  --leading-body: 1.55;
  --tracking-mono: 0.12em;
  --tracking-mark: 0.14em;

  /* Space, 4 pt */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem; --space-10: 8rem;
  --section-pad: clamp(4rem, 2rem + 6vw, 8rem);
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --wide: 74rem;
  --measure: 36em;

  /* Shape */
  --radius-pill: 999px;
  --radius-panel: 1.25rem;
  --radius-phone: 13% / 6%;   /* an iPhone screen's corners, for a 1320 × 2868 screenshot */
  --radius-ipad: 2.6% / 1.95%;
  --radius-duo: 1.1rem;
  --rule: 1px;

  /* Blue glass (DESIGN.md "Blue glass"). The ground is the brand blue seen through a thick pane: light enters behind
   * the bust and the pane deepens toward its edges; the copy sits on the darker side, so white stays at 5:1 or more. */
  --glass-deep: #0A3A9E;    /* the pane's thickness at its lower edge */
  --glass-night: #072A78;   /* the statue's pane (#statue): deeper still, so the bust's blue stays the hero's alone */
  --glass-mid: #125DDE;
  --glass-light: rgb(92 160 255 / 0.5);  /* light passing through, only behind the bust, never behind text */
  --glass-shade: rgb(3 18 66 / 0.42);
  --glass-ground:
    radial-gradient(ellipse 40% 56% at 66% 44%, var(--glass-light), transparent 72%),
    radial-gradient(ellipse 95% 85% at 55% 35%, transparent 52%, var(--glass-shade) 100%),
    linear-gradient(168deg, var(--blue) 0%, var(--glass-mid) 55%, var(--glass-deep) 100%);
  /* A layer of glass on the blue: a tinted pane that blurs and dims what is behind it, lit on its upper-left rim. The tint
   * alone keeps white text at 4.5:1 or more even over white, so it still holds where backdrop-filter is missing. */
  --glass-tint: rgb(12 79 192 / 0.8);
  --glass-blur: blur(18px) saturate(1.7) brightness(0.86);
  --glass-rim: inset 1px 1px 0 rgb(255 255 255 / 0.5), inset -1px -1px 0 rgb(255 255 255 / 0.12),
    inset 0 0 0 1px rgb(255 255 255 / 0.1);
  --glass-lift: 0 12px 28px -14px rgb(3 18 66 / 0.5);
  /* Navy glass: the ink seen through the same pane, lit blue from its upper right; frosted panes sit on it. */
  --glass-navy-ground:
    radial-gradient(ellipse 55% 70% at 90% 0%, rgb(40 110 235 / 0.34), transparent 70%),
    radial-gradient(ellipse 45% 60% at 0% 100%, rgb(40 110 235 / 0.18), transparent 70%),
    linear-gradient(165deg, #10255C 0%, var(--navy) 55%, #06112B 100%);
  --glass-frost: rgb(255 255 255 / 0.07);
  --glass-frost-blur: blur(20px) saturate(1.6);
  --glass-rim-soft: inset 1px 1px 0 rgb(255 255 255 / 0.3), inset 0 0 0 1px rgb(255 255 255 / 0.08);
  /* An inner page's masthead: the same pane with no bust, so no light through it and no sheen across the copy. */
  --glass-pane:
    radial-gradient(ellipse 95% 120% at 60% 0%, transparent 52%, var(--glass-shade) 100%),
    linear-gradient(168deg, var(--blue) 0%, var(--glass-mid) 55%, var(--glass-deep) 100%);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.6, 0, 0.3, 1);
  --dur-fast: 120ms;
  --dur: 240ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: var(--navy);
    --surface: var(--night-surface);
    --ink: var(--marble);
    --ink-2: var(--night-ink-2-body);
    --vein: var(--night-vein);
    --link: var(--night-blue-strong);
    --accent: var(--night-blue);
    --deep: #06112B;          /* one step below Ground so ink sections still read as a band */
    --ok: #7BE3A8;
    --danger: #FF6961;
    --shadow-shot: 0 12px 32px -12px rgb(0 0 0 / 0.6);
  }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #3A3936; --link: var(--blue-strong); --vein: #8F887B; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --ink-2: #CDD1DD; --link: var(--night-blue-strong); --vein: #4A5B87; }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip; background: var(--ground); color: var(--ink);
  font: 400 var(--text-base) / var(--leading-body) var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100svh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 500; font-style: normal; line-height: var(--leading-tight);
  letter-spacing: -0.005em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; min-width: 0;
}
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color var(--dur-fast) var(--ease-out); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
strong { font-weight: 600; }

.skip { position: absolute; inset-inline-start: var(--space-4); top: -100px; z-index: 10; background: var(--surface); color: var(--ink);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); }
.skip:focus { top: var(--space-4); }

/* Layout helpers pieces may use */
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); }
.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--ink-2); max-width: var(--measure); }
.readout { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Grounds: a section picks one; the local tokens follow. */
.on-marble { background: var(--ground); color: var(--ink); }
.on-surface { background: var(--surface); color: var(--ink); }
.on-deep { background: var(--deep); background-image: var(--glass-navy-ground); color: var(--on-deep); --ink: var(--on-deep); --ink-2: var(--on-deep-2);
  --vein: var(--deep-line); --link: var(--deep-link); --accent: var(--night-blue); }
.on-blue { background: var(--blue); background-image: var(--glass-ground); color: var(--white); --ink: var(--white); --ink-2: var(--white);
  --vein: rgb(255 255 255 / 0.35); --link: var(--white); --accent: var(--white); }

/* A glass layer that sits on the blue (the header's capsules, its phone bar and menu, the hero phone). Solid tint first,
 * the blur only where supported. */
.glass, .top-in { background: var(--glass-tint); box-shadow: var(--glass-rim), var(--glass-lift); color: var(--white); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .top-in { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass, .top-in { background: var(--blue-strong); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .on-blue, .on-blue.mast, .on-deep, .foot { background-image: none; }
}

/* Frosted panes on the navy glass (the steps on ink), and the ink cards on the marble as navy glass. */
.on-deep :is(.prove-steps, .encryption-steps) > li, .limits li {
  padding: var(--space-5); border-top: 0; border-radius: var(--radius-panel);
  background: var(--glass-frost); box-shadow: var(--glass-rim-soft);
  -webkit-backdrop-filter: var(--glass-frost-blur); backdrop-filter: var(--glass-frost-blur); }
.limits, .prose .key, .plan-lifetime { background-image: var(--glass-navy-ground); box-shadow: var(--glass-rim-soft), var(--shadow-shot); }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .on-deep :is(.prove-steps, .encryption-steps) > li, .limits li { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .limits, .prose .key, .plan-lifetime { background-image: none; }
}

/* Screenshots: real app screens, never a drawn device. */
.shot { margin: 0; }
.shot img { width: 100%; background: var(--surface); box-shadow: var(--shadow-shot); }
.shot.phone img { border-radius: var(--radius-phone); }
.shot.ipad img { border-radius: var(--radius-ipad); }
.shot.duo img { border-radius: var(--radius-duo); }
.shot.crop img { border-radius: var(--radius-panel); }  /* a crop of a real screen: the panel radius, not a device's */
.on-deep .shot img, .on-blue .shot img { box-shadow: none; }
.shot figcaption { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--ink-2); max-width: 30em; }

/* Buttons and the store status */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-5);
  border-radius: var(--radius-pill); font: 500 var(--text-lg) / 1 var(--font-display); letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap; border: var(--rule) solid currentColor; color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.btn:hover { background: var(--ink); color: var(--ground); }
.on-blue .btn:hover { color: var(--blue); }
/* Not released yet: "Coming soon" is status text, never shaped like a button (no box, no hover, no focus). */
.soon { display: grid; gap: var(--space-1); font: 400 var(--text-xl) / 1.1 var(--font-display); letter-spacing: 0.01em; color: var(--ink); }
.soon span { display: block; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: var(--ink-2); }

/* Header, the same on every page. It floats over the blue (the home hero, an inner page's masthead) as two glass
 * capsules and stays in reach while the page scrolls. Up to 760px it is one glass bar (logo, wordmark, Menu) that scrolls
 * away, and the links open as a glass panel under it (js/nav.js; without JS they wrap inside the bar). The blue pulls
 * itself up under the header by --top-h. */
body { --top-h: 4.75rem; }
.top { position: sticky; top: 0; z-index: 5; height: var(--top-h); color: var(--white);
  --link: var(--white); --accent: var(--white); pointer-events: none; }
.top-in { position: relative; width: min(100% - 2 * var(--gutter), var(--wide) - 2 * var(--gutter)); margin: var(--space-3) auto 0;
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1); border-radius: var(--radius-pill); pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.mark { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; color: inherit; text-decoration: none;
  padding: var(--space-1) var(--space-4) var(--space-1) var(--space-1);
  font: 300 var(--text-xl) / 1 var(--font-display); letter-spacing: var(--tracking-mark); text-transform: uppercase; }
.mark img { border-radius: 22%; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.5); }
.mark { border-radius: var(--radius-pill); }
.top ul { display: flex; list-style: none; margin: 0; padding: 0; }
.top nav { margin-inline-start: auto; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-pill);
  color: inherit; text-decoration: none; white-space: nowrap; font: 400 var(--text-lg) / 1 var(--font-display); letter-spacing: 0.03em;
  transition: background-color var(--dur-fast) var(--ease-out); }
.top nav a:hover { background: rgb(255 255 255 / 0.16); }
.top nav a[aria-current] { background: rgb(255 255 255 / 0.24); }
.top :focus-visible { outline-color: var(--white); outline-offset: 2px; border-radius: var(--radius-pill); }
.menu { display: none; }
/* Language menu: a small pill after the links; its list opens under it on solid blue with the glass rim (js/nav.js closes
 * it on a click outside or Escape; without JS it is a plain toggle). */
.lang { position: relative; pointer-events: auto; }
.lang summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  border-radius: var(--radius-pill); cursor: pointer; font: 400 var(--text-base) / 1 var(--font-mono); letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35); transition: background-color var(--dur-fast) var(--ease-out); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: rgb(255 255 255 / 0.16); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + var(--space-2)); z-index: 6; list-style: none; margin: 0;
  padding: var(--space-2); min-width: 10rem; border-radius: var(--radius-panel); background: var(--blue-strong);
  box-shadow: var(--glass-rim), var(--glass-lift); display: grid; }
/* 31 languages: two columns, scrolling if the window is short. */
.lang ul { grid-template-columns: repeat(2, minmax(9.5rem, auto)); max-height: min(70vh, 34rem); overflow-y: auto; }
@media (max-width: 760px) { .lang ul { grid-template-columns: minmax(10rem, auto); } }
.lang a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-pill);
  color: var(--white); text-decoration: none; font: 400 var(--text-lg) / 1 var(--font-display); }
.lang a:lang(ja) { font-family: var(--font-body); font-size: var(--text-base); }
.lang a:hover { background: rgb(255 255 255 / 0.16); }
.lang a[aria-current] { background: rgb(255 255 255 / 0.24); }

@media (max-width: 760px) {
  body { --top-h: 4.5rem; }
  .top { position: relative; height: auto; }
  /* One bar: half its height as radius, so it is a capsule on one row and a rounded panel if the links wrap (no JS). */
  .top-in { margin: var(--space-3) var(--gutter) 0; padding: var(--space-1); flex-wrap: wrap; gap: var(--space-1);
    border-radius: calc(22px + var(--space-1)); pointer-events: auto;
    background: var(--glass-tint); box-shadow: var(--glass-rim), var(--glass-lift);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
  .top .mark, .top ul { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mark { padding-inline-end: var(--space-2); font-size: var(--text-lg); }
  .mark img { box-shadow: none; }
  .top nav { flex: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .top ul { width: 100%; flex-wrap: wrap; padding: 0; }
  .top nav a { font-size: var(--text-base); padding-inline: var(--space-2); }
  .menu:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4);
    border: 0; border-radius: var(--radius-pill); background: rgb(255 255 255 / 0.16); color: var(--white); cursor: pointer;
    font: 400 var(--text-lg) / 1 var(--font-display); letter-spacing: 0.03em; }
  .menu[aria-expanded="true"] { background: rgb(255 255 255 / 0.28); }
  /* Without JS the links take their own rows under the logo. With JS they are a panel under the bar, one per row. The
   * bar's blur cannot reach past the bar (it is the panel's backdrop root), so the panel is solid, with the glass rim. */
  .top:not([data-menu]) nav { flex-basis: 100%; }
  .top[data-menu] ul { display: none; position: absolute; left: 0; right: 0; top: calc(100% + var(--space-2));
    flex-direction: column; padding: var(--space-2); border-radius: var(--radius-panel);
    background: var(--blue-strong); box-shadow: var(--glass-rim), var(--glass-lift); }
  .top[data-menu="open"] ul { display: flex; }
  .top[data-menu] nav a { display: flex; min-height: 48px; padding-inline: var(--space-4); font-size: var(--text-xl); }
}
@media (max-width: 760px) and (prefers-reduced-transparency: reduce), (max-width: 760px) and (prefers-contrast: more) {
  .top-in, .top[data-menu] ul { background: var(--blue-strong); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Footer: the meander, then columns of every page by kind (build.py lists only pages that exist). */
.foot { background: var(--deep); background-image: var(--glass-navy-ground); color: var(--on-deep); --link: var(--on-deep); --accent: var(--night-blue); }
.meander { height: 24px; color: var(--deep-line); background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M0 22.5H30M3 22.5V1.5H21V16.5H9V7.5H15'/%3E%3C/svg%3E") repeat-x center / 30px 24px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M0 22.5H30M3 22.5V1.5H21V16.5H9V7.5H15'/%3E%3C/svg%3E") repeat-x center / 30px 24px;
  margin-top: var(--space-6); }
.foot-in { max-width: var(--wide); margin-inline: auto; padding: var(--space-7) var(--gutter) var(--space-8);
  display: grid; gap: var(--space-7); }
.foot-mark { font: 300 var(--text-2xl) / 1 var(--font-display); letter-spacing: var(--tracking-mark); text-transform: uppercase; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--space-7) var(--space-6); }
.foot-h { font: 500 var(--text-lg) / 1.1 var(--font-display); letter-spacing: 0.02em; margin-bottom: var(--space-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.foot ul a { display: inline-block; padding-block: var(--space-1); font-size: var(--text-sm); white-space: nowrap; }
.foot-legal { color: var(--on-deep-2); font-size: var(--text-sm); padding-top: var(--space-5); border-top: var(--rule) solid var(--deep-line); }

/* Ledger: a folder's pages as ruled rows (build.py: <!-- list: /folder/ -->, and every index page). Title, one line,
 * an optional readout; the whole row is the link. Two columns from 761px. */
.ledger { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-7); border-top: 2px solid var(--ink); }
.ledger li { position: relative; display: grid; gap: var(--space-2); align-content: start;
  padding-block: var(--space-5) var(--space-6); border-bottom: var(--rule) solid var(--vein); }
.ledger :is(h2, h3) { font-size: var(--text-2xl); font-weight: 500; line-height: 1.05; }
.ledger a { color: var(--ink); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.ledger a::after { content: ""; position: absolute; inset: 0; }
.ledger li:hover a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; }
.ledger a:focus-visible { outline: none; }
.ledger a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.ledger p { color: var(--ink-2); max-width: 32em; }
.ledger .readout { color: var(--ink-2); }
.ledger.brief { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ledger.brief li { padding-block: var(--space-4); }
.ledger.brief :is(h2, h3) { font-size: var(--text-xl); }
@media (max-width: 1080px) { .ledger.brief { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ledger, .ledger.brief { grid-template-columns: minmax(0, 1fr); } }

/* Japanese: Barlow Condensed has no kana or kanji, so the system's Japanese face sets them; it is wider and taller, so
 * headings drop a step of tracking and get more line height, and lines break between phrases where the browser can. */
:lang(ja) { --font-display: "Barlow Condensed", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif; }
:lang(ja) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; font-weight: 600; word-break: auto-phrase; }
:lang(ja) body, :lang(ja) p { line-break: strict; }
/* Thai, Hindi and Vietnamese stack marks above and below the letters, which touch the next line at the display headings'
 * tight leading; important beats each heading's own leading. */
:is(:lang(th), :lang(hi), :lang(vi)) :is(h1, h2, h3) { line-height: 1.35 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Motion (DESIGN.md "Motion"; js/motion.js). Lenis's own rules from lenis.css 1.3.27, and the masks for headings split into
 * words: each word rises inside its own box, padded so descenders are not cut. */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.word { display: inline-block; overflow: clip; vertical-align: top; padding-block: 0.08em 0.16em; margin-block: -0.08em -0.16em; }
.word > span { display: inline-block; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
