/* graphe.app: graphe's own style (docs/STYLE-SPEC.md), set for a web page.
   The tokens are the app's (desktop/src/styles/tokens.css), lapis accent; the display sizes
   above the reading size are the site's own (DESIGN.md, "Website"). */

@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F,U+0250-02FF,U+0300-036F,U+1D00-1DBF,U+1E00-1EFF,U+2000-206F,U+2070-209F,U+20AC,U+2100-214F,U+2150-218F,U+2190-21FF,U+2200-22FF,U+25CC,U+2C60-2C7F,U+A720-A7FF,U+FB00-FB06,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-greek.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-03FF,U+1F00-1FFF;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-italic-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-024F,U+0250-02FF,U+0300-036F,U+1D00-1DBF,U+1E00-1EFF,U+2000-206F,U+2070-209F,U+20AC,U+2100-214F,U+2150-218F,U+2190-21FF,U+2200-22FF,U+25CC,U+2C60-2C7F,U+A720-A7FF,U+FB00-FB06,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F,U+0250-02FF,U+0300-036F,U+1D00-1DBF,U+1E00-1EFF,U+2000-206F,U+2070-209F,U+20AC,U+2100-214F,U+2150-218F,U+2190-21FF,U+2200-22FF,U+25CC,U+2C60-2C7F,U+A720-A7FF,U+FB00-FB06,U+FEFF,U+FFFD;
}

:root {
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-read: "Literata", ui-serif, Georgia, serif;
  --ui-2xs: 10.5px; --ui-xs: 11.5px; --ui-sm: 12.5px; --ui-md: 13.5px; --ui-lg: 15px; --ui-xl: 17px;
  --read-size: 20px; --read-leading: 1.62; --read-measure: 38em;
  /* display sizes: the reading size up a major third (×1.25) a step: 25, 31, 39, 49 */
  --d-1: 25px; --d-2: 31px; --d-3: clamp(31px, 5vw, 39px); --d-4: clamp(36px, 7vw, 49px);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  --s16: 64px; --s24: 96px;
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-full: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 110ms; --t-med: 180ms;
  --page: 1120px;

  color-scheme: light;
  --paper: oklch(0.992 0.004 85); --paper-2: oklch(0.978 0.005 85); --paper-3: oklch(0.962 0.006 85);
  --raised: oklch(1 0 0);
  --ink: oklch(0.235 0.012 75); --ink-2: oklch(0.42 0.012 75); --ink-3: oklch(0.54 0.011 75); --ink-4: oklch(0.68 0.009 80);
  /* small secondary text: --ink-3, but --ink-2 in dark, where --ink-3 measures APCA Lc 57–58 on
     the paper and cards, under the Lc 60 floor (CLAUDE.md, "Known drift") */
  --ink-small: var(--ink-3);
  --line: oklch(0.912 0.007 85); --line-2: oklch(0.868 0.008 85);
  --hover: oklch(0.235 0.012 75 / 0.055); --press: oklch(0.235 0.012 75 / 0.09);
  --accent: oklch(0.52 0.14 262); --accent-hover: oklch(0.47 0.145 262); --accent-ink: oklch(0.46 0.13 262);
  --accent-soft: oklch(0.945 0.03 262); --accent-softer: oklch(0.968 0.018 262);
  --accent-line: oklch(0.52 0.14 262 / 0.35);
  --accent-edge: color-mix(in srgb, var(--accent) 8%, transparent);
  --on-accent: oklch(0.99 0 0);
  --text-select: oklch(0.905 0.060 85);
  --mark: oklch(0.905 0.1 92); --mark-ink: oklch(0.3 0.04 75);
  --plate: oklch(0.440 0.098 262); --plate-art: transparent;
  --shadow-color: 70deg 15% 25%;
  --shadow-1: 0 1px 1px hsl(var(--shadow-color) / 0.06), 0 1px 2px hsl(var(--shadow-color) / 0.05);
  --shadow-2: 0 1px 1px hsl(var(--shadow-color) / 0.05), 0 2px 4px hsl(var(--shadow-color) / 0.05), 0 6px 12px hsl(var(--shadow-color) / 0.06);
  --shadow-3: 0 1px 1px hsl(var(--shadow-color) / 0.04), 0 3px 6px hsl(var(--shadow-color) / 0.05), 0 10px 20px hsl(var(--shadow-color) / 0.07), 0 24px 48px hsl(var(--shadow-color) / 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: oklch(0.185 0.006 75); --paper-2: oklch(0.205 0.006 75); --paper-3: oklch(0.228 0.007 75);
    --raised: oklch(0.245 0.007 75);
    --ink: oklch(0.915 0.008 85); --ink-2: oklch(0.82 0.009 82); --ink-3: oklch(0.755 0.01 80); --ink-4: oklch(0.6 0.009 80);
    --ink-small: var(--ink-2);
    --line: oklch(0.29 0.007 75); --line-2: oklch(0.34 0.008 75);
    --hover: oklch(0.915 0.008 85 / 0.06); --press: oklch(0.915 0.008 85 / 0.1);
    --accent: oklch(0.72 0.12 262); --accent-hover: oklch(0.77 0.11 262); --accent-ink: oklch(0.8 0.1 262);
    --accent-soft: oklch(0.3 0.05 262); --accent-softer: oklch(0.255 0.03 262);
    --accent-line: oklch(0.72 0.12 262 / 0.4);
    --accent-edge: color-mix(in srgb, var(--accent) 10%, transparent);
    --on-accent: oklch(0.17 0.01 262);
    --text-select: oklch(0.424 0.060 85);
    --mark: oklch(0.44 0.08 88); --mark-ink: oklch(0.95 0.02 90);
    --plate: transparent; --plate-art: var(--accent-ink);
    --shadow-1: 0 0 0 1px oklch(1 0 0 / 0.04);
    --shadow-2: 0 0 0 1px oklch(1 0 0 / 0.06), 0 8px 24px hsl(0 0% 0% / 0.35);
    --shadow-3: 0 0 0 1px oklch(1 0 0 / 0.07), 0 16px 48px hsl(0 0% 0% / 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--ui-lg)/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
::selection { background: var(--text-select); color: var(--ink); }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-read); font-weight: 600; text-wrap: balance; margin: 0; color: var(--ink); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration-line: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: text-decoration-color var(--t-fast); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }

.skip { position: absolute; left: var(--s3); top: -48px; z-index: 20; background: var(--raised); color: var(--ink); padding: var(--s2) var(--s3); border-radius: var(--r-md); box-shadow: var(--shadow-2); font-weight: 550; text-decoration: none; }
.skip:focus { top: var(--s3); }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--s6)); margin: 0 auto; padding: 0 var(--s6); }
@media (max-width: 640px) { .wrap { padding: 0 var(--s4); } }

/* Header: the app's bar, translucent with the reading bar's blur */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: var(--s4); height: 52px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); text-decoration: none; font: 600 var(--ui-xl)/1 var(--font-read); letter-spacing: -0.005em; }
.brand img { width: 28px; height: 28px; }
.brand .dark { display: none; }
@media (prefers-color-scheme: dark) { .brand .light { display: none; } .brand .dark { display: block; } }
.site-nav { margin-left: auto; display: flex; gap: 2px; }
.site-nav a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: var(--r-md);
  color: var(--ink-2); font: 550 var(--ui-sm)/1 var(--font-ui); text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.site-nav a:hover { background: var(--hover); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--accent-softer); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-edge); }
@media (max-width: 420px) { .site-nav a.wide { display: none; } }

/* Buttons (STYLE-SPEC 6.2, at the web's larger target) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 40px; padding: 0 var(--s4); border-radius: var(--r-md);
  font: 550 var(--ui-md)/1 var(--font-ui); text-decoration: none; cursor: pointer;
  background: var(--raised); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-1);
  transition: background var(--t-fast), color var(--t-fast);
}
.btn:hover { background: var(--paper-2); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: none; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }

.label { font: 600 var(--ui-2xs)/1.3 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-small); }

/* Hero */
.hero { padding: var(--s24) 0 var(--s12); text-align: center; }
.hero h1 { font-size: var(--d-4); line-height: 1.12; letter-spacing: -0.012em; }
.hero .lede { margin: var(--s5) auto 0; max-width: 34em; font: 400 var(--ui-xl)/1.55 var(--font-ui); color: var(--ink-2); }
.hero .avail { margin-top: var(--s8); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s3); }
.soon { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: var(--s2) var(--s4); line-height: 1.3; border-radius: var(--r-md); background: var(--paper-3); border: 1px solid var(--line); color: var(--ink-2); font: 500 var(--ui-md)/1 var(--font-ui); }
.soon::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 640px) { .hero { padding: var(--s16) 0 var(--s8); } .hero .lede { font-size: var(--ui-lg); } }

/* A screenshot, in a window's frame */
.shot { margin: 0; }
.shot img, .shot picture { width: 100%; }
.shot.window img { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-3); background: var(--paper); }
.shot.panel img { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.shot figcaption { margin-top: var(--s3); font: 400 var(--ui-sm)/1.45 var(--font-ui); color: var(--ink-small); text-align: center; }
.hero-shot { padding-bottom: var(--s16); }

/* Sections */
.section { padding: var(--s16) 0; border-top: 1px solid var(--line); }
.section.ground { background: var(--paper-2); }
.section-head { max-width: 40em; margin: 0 auto var(--s10); text-align: center; }
.section-head h2 { font-size: var(--d-3); line-height: 1.15; letter-spacing: -0.008em; }
.section-head p { margin-top: var(--s4); font: 400 var(--ui-xl)/1.55 var(--font-ui); color: var(--ink-2); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s12); align-items: center; }
.feature + .feature { margin-top: var(--s24); }
.feature.flip > .copy { order: 2; }
.feature h2 { font-size: var(--d-2); line-height: 1.2; letter-spacing: -0.006em; }
.feature .copy > p { margin-top: var(--s4); font: 400 19px/1.6 var(--font-read); color: var(--ink-2); max-width: 30em; }
.feature .copy ul { margin: var(--s5) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s2); max-width: 30em; }
.feature .copy li { position: relative; padding-left: 20px; font: 400 var(--ui-lg)/1.5 var(--font-ui); color: var(--ink-2); }
.feature .copy li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.feature .visual { min-width: 0; }
.feature .visual.narrow { max-width: 470px; justify-self: center; width: 100%; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
  .feature.flip > .copy { order: 0; }
  .feature + .feature { margin-top: var(--s16); }
}

/* A page of graphe, set in the reader's type: the specimen */
.page {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  padding: var(--s10) var(--s10) var(--s8) var(--s12);
  font: 400 var(--read-size)/var(--read-leading) var(--font-read); color: var(--ink);
}
.page .bk { font-variant-caps: all-small-caps; letter-spacing: 0.14em; font-weight: 600; font-size: 15px; color: var(--ink-small); }
.page .ch { margin: var(--s2) 0 var(--s5); font-weight: 400; font-size: var(--d-1); line-height: 1.2; color: var(--ink); }
.page .ch span { font-variant-caps: all-small-caps; letter-spacing: 0.12em; color: var(--ink-small); font-size: 0.9em; margin-right: 0.15em; }
.page .ch b { font-weight: 600; font-size: 1.3em; font-variant-numeric: lining-nums; }
.page p { position: relative; hyphens: auto; -webkit-hyphens: auto; }
.page .v { position: absolute; left: -30px; width: 22px; text-align: right; font: 400 var(--ui-xs)/1 var(--font-ui); top: 0.62em; color: var(--ink-small); font-variant-numeric: tabular-nums; }
.page em { font-style: italic; }
.page .fade { color: var(--ink-small); }
/* the woodcut: three lines, cap height of the first to the baseline of the third (DESIGN.md,
   "Chapter openings"), the clear space between two lines beside it */
/* Literata's cap height is 0.703 em (canvas ink metrics); in em, so it holds at any size */
.page .plate { float: left; width: calc(2 * var(--read-leading) * 1em + 0.703em); height: calc(2 * var(--read-leading) * 1em + 0.703em); margin: 0.5225em 0.7em 0 0; }
svg .ground { fill: var(--plate); }
svg .art { fill: var(--plate-art); }
.plates { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s6); }
.plates .plate { width: 56px; height: 56px; }
@media (max-width: 640px) {
  .page { padding: var(--s6) var(--s5) var(--s6) var(--s10); font-size: 18px; }
  .page .v { left: -26px; }
  .plates { gap: var(--s2); }
  .plates .plate { width: 48px; height: 48px; }
}

/* Interlinear specimen */
.interlinear { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); margin-top: var(--s5); }
.interlinear .w { display: grid; justify-items: center; gap: 2px; }
.interlinear .gk { font: 400 24px/1.2 var(--font-read); color: var(--ink); }
.interlinear .tr { font: italic 400 var(--ui-md)/1.2 var(--font-read); color: var(--ink-small); }
.interlinear .gl { font: 500 var(--ui-md)/1.2 var(--font-ui); color: var(--accent-ink); }
.interlinear .gl.quiet { color: var(--ink-small); font-weight: 400; }
.page .verse { margin-top: var(--s2); }
.page .verse .chosen { background: var(--accent-softer); box-shadow: 0 0 0 3px var(--accent-softer); border-radius: 2px; }

/* A note, as the file it is */
.file { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.file .path { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); background: var(--paper-3); border-bottom: 1px solid var(--line); font: 500 var(--ui-sm)/1.3 var(--font-ui); color: var(--ink-2); overflow-wrap: anywhere; }
.file .path svg { flex: none; width: 16px; height: 16px; color: var(--ink-3); }
.file pre { margin: 0; padding: var(--s4) var(--s5) var(--s5); font: 500 13px/1.65 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.file pre .k { color: var(--ink-small); }
.file pre .m { background: var(--mark); color: var(--mark-ink); border-radius: 2px; }
.file pre .b { color: var(--ink); font-weight: 700; }
.apps { margin-top: var(--s4); font: 400 var(--ui-sm)/1.45 var(--font-ui); color: var(--ink-small); }

/* Promises: privacy, in three lines */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.promise { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); }
.promise h3 { font-size: 19px; line-height: 1.3; }
.promise p { margin-top: var(--s2); color: var(--ink-2); font-size: var(--ui-lg); }
.promises-more { margin-top: var(--s6); text-align: center; font-size: var(--ui-md); color: var(--ink-small); }
@media (max-width: 860px) { .promises { grid-template-columns: minmax(0, 1fr); } }

/* Download */
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); max-width: 52em; margin: 0 auto; }
.dl { display: flex; flex-direction: column; gap: var(--s3); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); }
.dl h3 { font-size: 21px; line-height: 1.25; }
.dl p { color: var(--ink-2); font-size: var(--ui-lg); }
.dl .where { margin-top: auto; padding-top: var(--s3); }
.dl .soon { min-height: 32px; padding: var(--s1) var(--s3); font-size: var(--ui-sm); }
@media (max-width: 860px) { .downloads { grid-template-columns: minmax(0, 1fr); } }

/* Text pages: privacy, support, credits */
.doc { padding: var(--s16) 0 var(--s24); }
.doc .wrap { max-width: calc(44em + 2 * var(--s6)); }
.doc h1 { font-size: var(--d-3); line-height: 1.15; letter-spacing: -0.008em; }
.doc .lede { margin-top: var(--s4); font: 400 var(--d-1)/1.4 var(--font-read); color: var(--ink-2); }
.doc h2 { margin-top: var(--s12); font-size: var(--d-1); line-height: 1.25; }
.doc h3 { margin-top: var(--s8); font: 600 var(--ui-xl)/1.3 var(--font-ui); }
.doc p, .doc li { font: 400 18px/1.62 var(--font-read); color: var(--ink); }
.doc p + p, .doc h2 + p, .doc h3 + p, .doc h2 + ul, .doc p + ul, .doc ul + p { margin-top: var(--s3); }
.doc ul { padding-left: 1.2em; margin: var(--s3) 0 0; }
.doc li + li { margin-top: var(--s2); }
.doc strong { font-weight: 650; }
.doc .meta { margin-top: var(--s6); font: 400 var(--ui-sm)/1.5 var(--font-ui); color: var(--ink-small); }
/* support: the devices an entry applies to, under its heading; the page's contents */
.doc .on { margin-top: var(--s1); font: 500 var(--ui-sm)/1.4 var(--font-ui); color: var(--ink-small); }
.doc h3 + .on + p { margin-top: var(--s2); }
.doc .toc { margin-top: var(--s8); }
.doc .toc ul { list-style: none; padding: 0; columns: 2; column-gap: var(--s8); }
.doc .toc li { margin: 0 0 var(--s2); font: 400 var(--ui-lg)/1.4 var(--font-ui); break-inside: avoid; }
@media (max-width: 640px) { .doc .toc ul { columns: 1; } }
.doc section[id] { scroll-margin-top: var(--s16); }
.doc code { font: 500 0.85em/1 var(--font-ui); padding: 1px 4px; border-radius: var(--r-xs); background: var(--paper-3); }
.doc .contact { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.card-list { list-style: none; padding: 0 !important; margin-top: var(--s5) !important; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-list > li { margin: 0 !important; padding: var(--s3) 14px; position: relative; font-family: var(--font-ui) !important; font-size: var(--ui-lg) !important; line-height: 1.5 !important; }
.card-list > li + li::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; border-top: 1px solid var(--line); }
.card-list .name { font-weight: 600; color: var(--ink); }
.card-list a.name { color: var(--accent-ink); }
.card-list .by, .card-list .what { color: var(--ink-2); }
.card-list .lic { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: var(--r-xs); background: var(--paper-3); border: 1px solid var(--line); font: 500 var(--ui-2xs)/1 var(--font-ui); color: var(--ink-2); vertical-align: 2px; text-decoration: none; }
a.lic:hover { border-color: var(--line-2); color: var(--ink); }
.card-list .changes { display: block; margin-top: 2px; font-size: var(--ui-md); color: var(--ink-small); }
details { margin-top: var(--s4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--raised); }
details summary { cursor: pointer; padding: var(--s3) 14px; font: 550 var(--ui-md)/1.4 var(--font-ui); color: var(--ink); border-radius: var(--r-lg); }
details summary:hover { background: var(--hover); }
details .pkgs { padding: 0 14px var(--s4); columns: 2 220px; column-gap: var(--s6); font: 400 var(--ui-sm)/1.7 var(--font-ui); color: var(--ink-2); }
details .pkgs span { display: block; break-inside: avoid; }
details .pkgs i { font-style: normal; color: var(--ink-small); }
details pre { margin: 0; padding: 0 14px var(--s4); white-space: pre-wrap; font: 400 var(--ui-sm)/1.6 var(--font-ui); color: var(--ink-2); }
.faq h3 { margin-top: var(--s8); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: var(--s10) 0 var(--s12); background: var(--paper-2); }
.site-foot .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.site-foot nav a { color: var(--ink-2); font: 500 var(--ui-md)/2 var(--font-ui); text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.site-foot .copy { margin-left: auto; color: var(--ink-small); font-size: var(--ui-md); }
.site-foot .legal { margin-top: var(--s5); max-width: 60em; color: var(--ink-small); font-size: var(--ui-sm); line-height: 1.5; }
@media (max-width: 640px) { .site-foot .copy { margin-left: 0; width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}

/* Keycaps (STYLE-SPEC 6.14) */
kbd { display: inline-block; min-width: 18px; padding: 1px 5px; border-radius: var(--r-xs); border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--paper-2); font: 500 var(--ui-xs)/1.4 var(--font-ui); color: var(--ink-2); text-align: center; vertical-align: 2px; }

/* iPhone and iPad: their screenshots as screens, the display's own rounded corners and a
   hairline, never a drawn device (Apple allows only its own product images, unaltered) */
.screen { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); box-shadow: var(--shadow-3); background: var(--paper); }
.screen.phone { border-radius: 13.6% / 6.3%; }   /* iPhone 17: 55 pt corners on a 402 × 874 pt screen */
.screen.pad { border-radius: 1.5% / 2.2%; }      /* iPad Pro 11-inch, landscape: 18 pt corners on 1210 × 834 pt */
.hero-devices { position: relative; padding-right: 7%; }
.hero-devices .on-phone { position: absolute; right: 0; bottom: -6%; width: 19%; margin: 0; }
.hero-devices .on-phone .screen { box-shadow: var(--shadow-3), 0 0 0 6px var(--paper); }
/* on a phone the iPhone comes forward: a third of the width, rising above the Mac's window */
@media (max-width: 640px) { .hero-devices { padding-right: 14%; } .hero-devices .on-phone { width: 33%; bottom: -16%; } .hero-devices .on-phone .screen { box-shadow: var(--shadow-2), 0 0 0 3px var(--paper); } }
.hero-shot figcaption { margin-top: var(--s10); }
@media (max-width: 640px) { .hero-shot figcaption { margin-top: var(--s16); } }

/* the iPad three phones wide, so the three screens stand about the same height */
.devices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.devices figure { margin: 0; }
.devices figcaption { margin-top: var(--s4); font: 400 var(--ui-sm)/1.45 var(--font-ui); color: var(--ink-small); text-align: center; text-wrap: balance; }
@media (max-width: 860px) {
  .devices { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8) var(--s5); }
  .devices .wide { grid-column: 1 / -1; order: -1; }
}
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s12); }
.point h3 { font-size: 19px; line-height: 1.3; }
.point p { margin-top: var(--s2); color: var(--ink-2); font-size: var(--ui-lg); }
.point kbd { font-size: var(--ui-xs); }
@media (max-width: 860px) { .points { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } }

/* Support (DESIGN.md, "Website", 2026-11-17): a home with search, frequent questions and topic
   cards; a page per topic with breadcrumbs, the topics at the side, the devices each article is on,
   and a way to write at the foot of every page */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.help-search { position: relative; max-width: 36rem; margin: var(--s8) auto 0; text-align: left; }
.help-search::before { content: ""; position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; background: var(--ink-small); mask: url(/images/search.svg) center / contain no-repeat; pointer-events: none; }
.help-search input { width: 100%; height: 46px; padding: 0 var(--s4) 0 42px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--raised); box-shadow: var(--shadow-1); color: var(--ink); font: 400 var(--ui-xl)/1 var(--font-ui); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.help-search input::placeholder { color: var(--ink-small); }
.help-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.help-search input::-webkit-search-cancel-button { cursor: pointer; }
.help-search .results { list-style: none; margin: var(--s2) 0 0; padding: var(--s1); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.help-search .results li { margin: 0; font: inherit; }
.help-search .results a { display: block; padding: var(--s2) var(--s3); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.help-search .results a:hover, .help-search .results a:focus-visible { background: var(--hover); }
.help-search .results a:focus-visible { outline-offset: -2px; }
.help-search .results .t { font: 600 var(--ui-lg)/1.35 var(--font-ui); }
.help-search .results .k { margin-left: var(--s2); font: 500 var(--ui-sm)/1.35 var(--font-ui); color: var(--ink-small); }
.help-search .results .x { display: block; margin-top: 2px; font: 400 var(--ui-md)/1.45 var(--font-ui); color: var(--ink-2); }
.help-search .results .none { padding: var(--s2) var(--s3); font: 400 var(--ui-md)/1.45 var(--font-ui); color: var(--ink-2); }

.help-home { padding: var(--s16) 0 var(--s10); text-align: center; }
.help-home h1 { font-size: var(--d-4); line-height: 1.1; letter-spacing: -0.01em; }
.help-home .lede { max-width: 34em; margin: var(--s4) auto 0; font: 400 var(--ui-xl)/1.55 var(--font-ui); color: var(--ink-2); }
.frequent { margin-top: var(--s8); }
.frequent h2.label { margin: 0; }
.frequent ul { list-style: none; padding: 0; margin: var(--s3) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.frequent a { display: inline-flex; align-items: center; min-height: 32px; padding: var(--s1) var(--s3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--raised); color: var(--ink-2); font: 500 var(--ui-md)/1.3 var(--font-ui); text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.frequent a:hover { background: var(--paper-2); color: var(--ink); }

.help-topics { padding: var(--s6) 0 var(--s12); }
.topic-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.topic-card { display: flex; flex-direction: column; gap: var(--s2); height: 100%; padding: var(--s5) var(--s6); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.topic-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.topic-card h2 { font-size: 19px; line-height: 1.3; color: var(--accent-ink); }
.topic-card p { color: var(--ink-2); font-size: var(--ui-lg); line-height: 1.5; }
.topic-card .count { margin-top: auto; padding-top: var(--s2); font: 500 var(--ui-sm)/1.3 var(--font-ui); color: var(--ink-small); }
@media (max-width: 860px) { .topic-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topic-cards { grid-template-columns: minmax(0, 1fr); } }

.help-still { padding: 0 0 var(--s16); }
.still { display: flex; align-items: center; justify-content: space-between; gap: var(--s4) var(--s8); padding: var(--s6) var(--s8); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.still h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.still p { margin-top: var(--s2); max-width: 40em; font: 400 var(--ui-lg)/1.55 var(--font-ui); color: var(--ink-2); }
.still-actions { flex: none; }
@media (max-width: 720px) { .still { flex-direction: column; align-items: flex-start; padding: var(--s5); } }

.doc.help { padding-top: var(--s8); }
.doc.help .wrap { max-width: calc(var(--page) + 2 * var(--s6)); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; }
.doc .crumbs li { margin: 0; font: 500 var(--ui-md)/1.4 var(--font-ui); color: var(--ink); }
.crumbs li + li::before { content: "›"; margin-right: var(--s2); color: var(--ink-small); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.help-grid { display: grid; grid-template-columns: 15rem minmax(0, 44em); gap: var(--s12); align-items: start; margin-top: var(--s6); }
.help-side { position: sticky; top: calc(52px + var(--s6)); max-height: calc(100vh - 52px - var(--s10)); overflow-y: auto; padding: 2px; }
.help-side .help-search { margin: 0; }
.help-side .help-search input { height: 40px; font-size: var(--ui-lg); }
.help-side .help-search::before { top: 11px; }
.help h2.label { margin: 0; font: 600 var(--ui-2xs)/1.3 var(--font-ui); }
.side-topics { margin-top: var(--s6); }
.side-topics ul, .topics-drop ul { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.doc .side-topics li, .doc .topics-drop li { margin: 0; font: 500 var(--ui-lg)/1.35 var(--font-ui); }
.side-topics a, .topics-drop a { display: block; padding: 6px var(--s3); border-radius: var(--r-md); color: var(--ink-2); text-decoration: none; }
.side-topics a:hover, .topics-drop a:hover { background: var(--hover); color: var(--ink); }
.side-topics a[aria-current="page"], .topics-drop a[aria-current="page"] { background: var(--accent-softer); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-edge); }
.topics-drop { display: none; }
.topics-drop ul { padding: 0 var(--s2) var(--s2); }
.help .toc { margin-top: var(--s8); padding: var(--s4) var(--s5); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.help .toc ul { margin-top: var(--s3); }
.doc.help .toc li { margin-bottom: var(--s1); }
.help .on { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s2); }
.help .chips { display: flex; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.doc .chips li { display: inline-flex; align-items: center; height: 22px; margin: 0; padding: 0 7px; border-radius: var(--r-xs); background: var(--accent-softer); box-shadow: inset 0 0 0 1px var(--accent-edge); color: var(--accent-ink); font: 500 var(--ui-xs)/1 var(--font-ui); }
.help .on .note { font: 400 var(--ui-sm)/1.4 var(--font-ui); color: var(--ink-small); }
.doc .on + p, .doc .on + ul { margin-top: var(--s3); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s16); }
.pager a { display: block; padding: var(--s4) var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--raised); color: var(--accent-ink); font: 600 var(--ui-lg)/1.35 var(--font-ui); text-decoration: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.pager a:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.pager .label { display: block; margin-bottom: var(--s1); }
.pager .next { grid-column: 2; text-align: right; }
.help .still { margin-top: var(--s6); }
@media (max-width: 900px) {
  .help-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
  .help-side { position: static; max-height: none; overflow: visible; }
  .side-topics { display: none; }
  .topics-drop { display: block; }
}
@media (max-width: 560px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager .next { grid-column: 1; text-align: left; } }

/* Motion as you scroll (DESIGN.md, "Website"): CSS scroll-driven animations, so no script. Each
   thing rises a little and fades in as it enters the view, done by the time a third of it shows,
   with the app's ease-out curve; things side by side follow one another. Where a browser lacks
   scroll timelines (Firefox, for now) or the reader asks for less motion, nothing moves and
   everything is simply there. */
/* things sliding in from the side never widen the page (clip, unlike hidden, keeps the header sticky) */
main { overflow-x: clip; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes rise-in-left { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
@keyframes rise-in-right { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(40px) scale(0.965); } to { opacity: 1; transform: none; } }
@keyframes lift { from { transform: translateY(10%); } to { transform: translateY(-16%); } }
@keyframes head-edge { from { box-shadow: none; } to { box-shadow: var(--shadow-2); } }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* the opening: the headline, then its words, then the screenshots, as the page loads */
  .hero h1, .hero .lede, .hero .avail, .hero-shot .shot { animation: arrive 700ms var(--ease-out) both; }
  .hero .lede { animation-delay: 80ms; }
  .hero .avail { animation-delay: 160ms; }
  .hero-shot .shot { animation-name: settle; animation-duration: 900ms; animation-delay: 220ms; }

  @supports (animation-timeline: view()) {
    .reveal, .section-head, .feature .copy, .feature .visual, .devices figure, .point, .promise,
    .promises-more, .dl, .plates .plate, .detail, .trio figure, .showcase .page, .showcase figure, .doc h2, .doc .card-list, .doc details, .doc .faq h3 {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
      animation-timing-function: var(--ease-out);
    }
    /* a feature's words come from their side, its picture from the other */
    .feature .copy { animation-name: rise-in-left; }
    .feature .visual { animation-name: rise-in-right; }
    .feature.flip .copy { animation-name: rise-in-right; }
    .feature.flip .visual { animation-name: rise-in-left; }
    .devices figure, .trio-phone, .showcase figure, .feature .visual .shot { animation-name: settle; }
    .feature .visual:has(.shot) { animation: none; }
    .feature .visual .shot { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; animation-timing-function: var(--ease-out); }
    /* side by side: each starts a little after the one before */
    .devices figure:nth-child(2), .point:nth-child(3n+2), .promise:nth-child(2), .dl:nth-child(2), .detail:nth-child(3n+2), .trio figure:nth-child(2), .showcase figure { animation-range: entry 8% entry 43%; }
    .devices figure:nth-child(3), .point:nth-child(3n), .promise:nth-child(3), .dl:nth-child(3), .detail:nth-child(3n), .trio figure:nth-child(3) { animation-range: entry 16% entry 51%; }
    .plates .plate:nth-child(2) { animation-range: entry 6% entry 41%; }
    .plates .plate:nth-child(3) { animation-range: entry 12% entry 47%; }
    .plates .plate:nth-child(4) { animation-range: entry 18% entry 53%; }
    .plates .plate:nth-child(5) { animation-range: entry 24% entry 59%; }
    .plates .plate:nth-child(6) { animation-range: entry 30% entry 65%; }
    /* the hero's iPhone rises over the Mac as you scroll past them */
    .hero-devices .on-phone { animation: lift linear both; animation-timeline: view(); animation-range: contain 0% exit 100%; }
    /* the header takes a shadow once the page moves under it */
    .site-head { animation: head-edge linear both; animation-timeline: scroll(root); animation-range: 0 64px; }
  }
}

/* The text: a large page of graphe beside Psalm 23 on iPhone, then the details, each shown in
   live type */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: var(--s12); align-items: center; max-width: 960px; margin: 0 auto; }
.showcase figure { margin: 0; }
.showcase figcaption { margin-top: var(--s4); font: 400 var(--ui-sm)/1.45 var(--font-ui); color: var(--ink-small); text-align: center; }
.page.big { padding: var(--s12) var(--s12) var(--s10) calc(var(--s12) + var(--s4)); font-size: 21px; }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s16); }
.detail { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); }
.detail .spec { min-height: 56px; display: flex; align-items: center; margin: 0 0 var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.detail .spec.read { font: 400 24px/1.3 var(--font-read); color: var(--ink); }
.detail .spec.read em { font-style: italic; }
.detail .spec.narrow-col { font-size: 21px; line-height: 1.35; display: block; }
.detail .spec.plates { gap: var(--s2); margin-top: 0; flex-wrap: nowrap; }
.detail .spec.plates .plate { width: 40px; height: 40px; }
/* the divine name as printed: a capital L, then small capitals */
.sc { font-variant-caps: small-caps; letter-spacing: 0.03em; }
.detail h3 { font-size: 19px; line-height: 1.3; }
.detail > p:not(.spec) { margin-top: var(--s2); color: var(--ink-2); font-size: var(--ui-lg); }
.swatches { gap: var(--s3); }
.sw { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.08); }
.sw.lapis { background: oklch(0.52 0.14 262); }
.sw.tyrian { background: oklch(0.529 0.095 328); }
.sw.umber { background: oklch(0.522 0.110 68); }
.sw.verdigris { background: oklch(0.504 0.085 190); }
@media (prefers-color-scheme: dark) {
  .sw.lapis { background: oklch(0.72 0.12 262); } .sw.tyrian { background: oklch(0.728 0.080 328); }
  .sw.umber { background: oklch(0.723 0.095 68); } .sw.verdigris { background: oklch(0.706 0.095 190); }
}
@media (max-width: 860px) {
  .showcase { grid-template-columns: minmax(0, 1fr); gap: var(--s10); }
  .showcase-phone { max-width: 240px; justify-self: center; }
  .details { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .page.big { padding: var(--s6) var(--s5) var(--s6) var(--s10); font-size: 18px; }
  .details { grid-template-columns: minmax(0, 1fr); }
}

/* Notes: the same note three ways, in graphe, in iCloud Drive, as its file */
.trio { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s8); align-items: center; }
.trio figure { margin: 0; }
.trio figcaption { margin-top: var(--s4); font: 400 var(--ui-sm)/1.45 var(--font-ui); color: var(--ink-small); text-align: center; text-wrap: balance; }
.folder { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.folder .path { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); background: var(--paper-3); border-bottom: 1px solid var(--line); font: 500 var(--ui-sm)/1.3 var(--font-ui); color: var(--ink-2); }
.folder svg { flex: none; width: 16px; height: 16px; color: var(--ink-small); }
.folder ul { list-style: none; margin: 0; padding: var(--s1) 0; }
.folder li { display: flex; align-items: center; gap: var(--s2); padding: 7px var(--s4); position: relative; font: 400 var(--ui-md)/1.35 var(--font-ui); }
.folder li + li::before { content: ""; position: absolute; top: 0; left: 40px; right: var(--s4); border-top: 1px solid var(--line); }
.folder li svg { color: var(--accent-ink); }
.folder .fname { color: var(--ink); }
.folder .fnote { margin-left: auto; padding-left: var(--s3); color: var(--ink-small); font-size: var(--ui-sm); white-space: nowrap; }
@media (max-width: 960px) {
  .trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .trio-phone { grid-row: span 2; }
}
@media (max-width: 640px) {
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio-phone { grid-row: auto; max-width: 240px; justify-self: center; }
}
