/*
  Glyphscape's legal pages, in Glyphscape's own look (see /glyphscape/index.html): the violet-black
  night with phosphor cyan and glyph magenta for the title band, where a still spiral of the app's
  Classic ramp ( .:-=+*#%@) glows behind the title; then the app's Paper palette (its type-specimen
  section) for the reading area, so long text sits dark on warm paper. Display type is Departure Mono,
  one of the app's own art fonts (SIL OFL, see /glyphscape/fonts/OFL.txt); text is Atkinson Hyperlegible Next.
*/
@font-face {
  font-family: "Departure Mono";
  src: url("/glyphscape/fonts/departure-mono.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --night: #0a0418;
  --night-2: #110a22;
  --line: rgba(168, 156, 240, .16);
  --text: #eeeaff;
  --sub: #c4bde6;
  --muted: #9a92c4;
  --lav: #a89cf0;
  --cyan: #5ce1ef;
  --magenta: #e45bb6;
  --paper: #f2ede4;
  --paper-2: #e8e1d5;
  --ink: #1e1a15;
  --ink-2: #4e463c;
  --rule: rgba(30, 26, 21, .16);
  --plum: #a3307c;
  --rim: linear-gradient(150deg, #a89cf0 0%, #e45bb6 52%, #5ce1ef 100%);
  --mono: "Departure Mono", "DejaVu Sans Mono", Menlo, Consolas, "Noto Sans Mono", monospace;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --col: 42rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--magenta); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--plum); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--col), 100% - 56px); margin-inline: auto; }

/* ---------- Title band: Glyphscape's night, with a still glyph field ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--text); }
.band :focus-visible { outline-color: var(--cyan); }
.field { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* The app's Classic ramp drawn as a spiral, coloured like its glyph art: cyan at the heart, magenta, then violet. */
.field::before {
  content: "                                     ..                ..::--=+++****+++==--::..\A                            .......::::::::::....         ..:--=++******++==-::...\A                        .....:::-----=========---::..       .::-=++******++=--::..\A                     ....:::---===+++**********+++=-::.      .::-=+*******+==-::..\A                  ....:::--===++***#####%%%%%%%%###*+=-:.     .:-=++**##**++=--:..\A                ....::---==++***####%%%%%%%%%%@@@@@%%#*=-:.    .:-=+*####**+=--:..\A              ....::---==++**#############***###%%@@@@%#+=:.    .-=+*####**+=--:..\A             ...:::--==++***#######**++==-------=+*#%@@@%*=:    .:=+*#####*+=--:..\A           ....::--==+++***####**++=--:..        ..-+#@@@%*-.   .:=+*#####*+=--:..\A          ...:::--==+++********+==-:..      .::--::.:-*@@@#+:   .:=+##%%##*+=-::.\A         ...:::--==+++******++=--:.     .:-+#%@@@@@%+-=#@@%+:   .-+*#%%%#*++=-:..\A        ...:::--==+++*****++==-:.     .:=*%@@@@@@@@@@#=%@@%+:  .:=+#%%%##*+=-:..\A       ...:::--===+++***+++=--:.     .-+#@@@@#+=#@@@@@#@@@#-   :=+#%%%%#*+=-::.\A      ....::---==++++++++==-::.     .-+#@@@%+--%@@%@@@@@@#-. .:=*#%%%%#*+=-::.\A     ....:::--===+++++++==-::.     .-=*%@@%+-.-@@@##@@@*-. .:-+#%%@%%#*+=-:..\A     ...:::---===++++++==--:.     .:=+#@@@#=: :*@@@%*=--:-=+*#%@@@%%#*+=-:..\A    ....:::---===+++++==--:..     .:=*#@@@#+:  :+@@@@@@%%%%@@@@@%%#*+=-:..          .\A    ....:::---===+++====-::.      .-=*#%@@#+-.  .-+#@@@@@@@@%%##*+=--:..          ...\A    ...::::---=========--:..      .:=+#%@@%#+-.   .:-=+*****++==-::..           ....:\A   ....::::---========--::..      .:-+*#%@%%*+-:     ...::::::...            ....::::\A   ....::::---========--::..      .:-=+#%%%%#*+=-..                       ....:::::--\A   ....::::----======---::..       .:-=*##%%%%#*+=-:..                ....:::::------\A   ....::::-----====----::..       .::-+**#%%%%##*+==--:::..........::::::-----------\A   .....::::-----==-----::..        .::-=+*##%%%###**++===----------------===========\A   .....::::------------::...        .::-=++*#########***+++++=======================\A   .....:::::-----------::...         ..:--=++**########*******+++++++++++++========-";
  content: "                                     ..                ..::--=+++****+++==--::..\A                            .......::::::::::....         ..:--=++******++==-::...\A                        .....:::-----=========---::..       .::-=++******++=--::..\A                     ....:::---===+++**********+++=-::.      .::-=+*******+==-::..\A                  ....:::--===++***#####%%%%%%%%###*+=-:.     .:-=++**##**++=--:..\A                ....::---==++***####%%%%%%%%%%@@@@@%%#*=-:.    .:-=+*####**+=--:..\A              ....::---==++**#############***###%%@@@@%#+=:.    .-=+*####**+=--:..\A             ...:::--==++***#######**++==-------=+*#%@@@%*=:    .:=+*#####*+=--:..\A           ....::--==+++***####**++=--:..        ..-+#@@@%*-.   .:=+*#####*+=--:..\A          ...:::--==+++********+==-:..      .::--::.:-*@@@#+:   .:=+##%%##*+=-::.\A         ...:::--==+++******++=--:.     .:-+#%@@@@@%+-=#@@%+:   .-+*#%%%#*++=-:..\A        ...:::--==+++*****++==-:.     .:=*%@@@@@@@@@@#=%@@%+:  .:=+#%%%##*+=-:..\A       ...:::--===+++***+++=--:.     .-+#@@@@#+=#@@@@@#@@@#-   :=+#%%%%#*+=-::.\A      ....::---==++++++++==-::.     .-+#@@@%+--%@@%@@@@@@#-. .:=*#%%%%#*+=-::.\A     ....:::--===+++++++==-::.     .-=*%@@%+-.-@@@##@@@*-. .:-+#%%@%%#*+=-:..\A     ...:::---===++++++==--:.     .:=+#@@@#=: :*@@@%*=--:-=+*#%@@@%%#*+=-:..\A    ....:::---===+++++==--:..     .:=*#@@@#+:  :+@@@@@@%%%%@@@@@%%#*+=-:..          .\A    ....:::---===+++====-::.      .-=*#%@@#+-.  .-+#@@@@@@@@%%##*+=--:..          ...\A    ...::::---=========--:..      .:=+#%@@%#+-.   .:-=+*****++==-::..           ....:\A   ....::::---========--::..      .:-+*#%@%%*+-:     ...::::::...            ....::::\A   ....::::---========--::..      .:-=+#%%%%#*+=-..                       ....:::::--\A   ....::::----======---::..       .:-=*##%%%%#*+=-:..                ....:::::------\A   ....::::-----====----::..       .::-+**#%%%%##*+==--:::..........::::::-----------\A   .....::::-----==-----::..        .::-=+*##%%%###**++===----------------===========\A   .....::::------------::...        .::-=++*#########***+++++=======================\A   .....:::::-----------::...         ..:--=++**########*******+++++++++++++========-" / "";
  position: absolute; right: -60px; top: 50%; transform: translateY(-38%); opacity: .9;
  font: 15px/1.2 var(--mono); white-space: pre; letter-spacing: 0;
  background: radial-gradient(ellipse 300px 230px at 59.5% 50%, #5ce1ef 0%, #879aec 22%, #e45bb6 48%, #713598 78%, #3a2468 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
/* Shade the field away from the text, as the app page does. */
.field::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 4, 24, .97) 0%, rgba(10, 4, 24, .94) 48%, rgba(10, 4, 24, .55) 64%, rgba(10, 4, 24, .05) 80%),
    linear-gradient(180deg, rgba(10, 4, 24, .96) 0%, rgba(10, 4, 24, .75) 14%, rgba(10, 4, 24, 0) 30%, rgba(10, 4, 24, 0) 80%, rgba(10, 4, 24, .9) 100%);
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0;
  width: min(1160px, 100% - 56px); margin-inline: auto;
}
.top .app { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--mono); font-size: 22px; color: var(--text); }
.top .app img { width: 36px; height: 36px; border-radius: 10px; }
.top-links { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.top-links .by { color: var(--muted); text-decoration: none; white-space: nowrap; }
.top-links .by:hover { color: var(--text); }
.play-mini {
  display: inline-flex; white-space: nowrap; align-items: center; gap: 8px; text-decoration: none; color: var(--text);
  padding: 7px 13px; border-radius: 10px; border: 1px solid rgba(168, 156, 240, .35); background: rgba(10, 4, 24, .55);
}
.play-mini svg { width: 15px; height: 15px; color: var(--cyan); }
.play-mini:hover { border-color: var(--cyan); }

.hero { padding: 48px 0 72px; }
.eyebrow { margin: 0 0 20px; font-family: var(--mono); font-size: 16.5px; line-height: 1.3; color: var(--cyan); }
h1 { margin: 0 0 28px; font-family: var(--mono); font-weight: 400; font-size: 44px; line-height: 1.12; letter-spacing: 0; text-wrap: balance; }
.meta { display: grid; gap: 4px; font-size: 1rem; line-height: 1.5; color: var(--sub); }
.meta b { color: var(--text); font-weight: 700; }
.meta code { font-family: var(--mono); font-size: 16.5px; color: var(--cyan); background: none; padding: 0; }

/* ---------- Contents, set like the app's type specimen ---------- */
.toc { margin: 56px auto 8px; padding: 14px 0 0; border-top: 1.5px solid var(--ink); }
.toc h2 { margin: 0 0 14px; font-family: var(--mono); font-weight: 400; font-size: 16.5px; line-height: 1.3; color: var(--ink-2); }
.toc ol { margin: 0; padding-left: 2.2em; columns: 2; column-gap: 4.2em; }
.toc li { margin: 0 0 7px; break-inside: avoid; font-size: 1rem; line-height: 1.45; }
.toc li::marker { font-family: var(--mono); color: var(--plum); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--plum); }

/* ---------- The document ---------- */
main { padding: 12px 0 96px; }
section { padding: 40px 0 12px; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }
h2.sec { margin: 0 0 20px; font-family: var(--mono); font-weight: 400; font-size: 27.5px; line-height: 1.2; letter-spacing: 0; text-wrap: balance; scroll-margin-top: 20px; }
h3 { margin: 28px 0 8px; font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
p { margin: 0 0 18px; }
p, li, td { text-wrap: pretty; }
ul, ol { margin: 0 0 18px; padding-left: 1.4em; }
li { margin: 0 0 10px; }
/* Bullets are the app's own "+" in Departure Mono. */
main ul { list-style: none; padding-left: 0; }
main ul > li { position: relative; padding-left: 26px; }
main ul > li::before { content: "+"; position: absolute; left: 0; top: 0; font-family: var(--mono); color: var(--plum); }
main ol li::marker { font-family: var(--mono); color: var(--plum); }
strong, b { font-weight: 700; }
code { font-family: var(--mono); font-size: 16.5px; background: var(--paper-2); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }

/* Tables scroll inside their own box. */
.table-scroll { overflow-x: auto; margin: 6px 0 24px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.55; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); }
tbody tr:last-child td { border-bottom: 0; }
th { font-family: var(--mono); font-weight: 400; font-size: 16.5px; color: var(--ink-2); }
td:first-child { width: 36%; }

/* Callouts: a card rimmed like the app icon and its Pro plan. */
.callout {
  margin: 6px 0 24px; padding: 20px 24px; border-radius: 18px;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--paper-2), var(--paper-2)) padding-box, var(--rim) border-box;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Footer, as on Glyphscape's page ---------- */
footer { background: var(--night); border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
footer .wrap { width: min(1160px, 100% - 56px); display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
footer a { color: var(--sub); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--cyan); }
footer :focus-visible { outline-color: var(--cyan); }

@media (max-width: 760px) {
  .toc ol { columns: 1; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap, .top, footer .wrap { width: calc(100% - 40px); }
  .top { align-items: flex-start; }
  .top-links { flex-direction: column; align-items: flex-end; gap: 6px; }
  .top-links .by { font-size: .82rem; }
  .play-mini { padding: 6px 10px; font-size: .85rem; }
  .hero { padding: 28px 0 52px; }
  h1 { font-size: 33px; }
  h2.sec { font-size: 22px; }
  .field::before { font-size: 11px; right: -230px; top: 84px; transform: none; opacity: .75; }
  .field::after {
    background:
      linear-gradient(180deg, rgba(10, 4, 24, .6) 0%, rgba(10, 4, 24, .8) 40%, rgba(10, 4, 24, .94) 62%, rgba(10, 4, 24, .97) 100%);
  }
  table { min-width: 0; font-size: .95rem; }
  th { font-size: 16.5px; }
  td:first-child { width: 40%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
