/* Old Whistle: the plain pages (privacy, terms, credits, support, delete account, reset). One book, one colour:
   the same leaf, ink, lapis, vermilion and gold as the app (web/style.css; research/DESIGN_V3.md), always light
   (owner, 18 Nov 2026): prefers-color-scheme is not read anywhere. The painted border at the head is the app's own
   (Simon Bening, about 1525); the words are clean. */
@font-face { font-family: "EB Garamond"; src: url("/fonts/ebgaramond.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Rubric Digits"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0030-0039; }

:root {                                     /* the app's tokens, by the names these pages use */
  --vellum: #f6f1e4; --vellum-deep: #efe7d3; --page: #fbf8ef;
  --ink: #1f1a15; --ink-soft: #4a4036; --muted: #6b5f50;
  --lapis: #2d4a8c; --rubric: #b0361d; --leaf: #2f6a48; --gold: #c9a040;
  --rule: rgba(31, 26, 21, .12); --edge: rgba(123, 58, 38, .62); --fil: rgba(201, 160, 64, .6); --focus: #2d4a8c;
  --lift: 0 1px 1px rgba(74, 46, 18, .05), 0 12px 22px -18px rgba(74, 46, 18, .42);
  --display: "EB Garamond", Garamond, Georgia, serif; --ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: only light;                 /* "only": a browser must not force-darken the page */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--vellum); }
/* the leaf: real vellum, its fine grain only, still under the words (the app's own ground, web/art/ground*.webp) */
html::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("/art/ground-780.webp") center top / cover no-repeat, radial-gradient(120% 90% at 50% 0%, #fcf8ee 0%, #f7f2e5 55%, #f0e8d6 100%); }
@media (min-resolution: 2.5dppx), (min-width: 500px) { html::before { background-image: url("/art/ground.webp"), radial-gradient(120% 90% at 50% 0%, #fcf8ee 0%, #f7f2e5 55%, #f0e8d6 100%); } }
body { margin: 0; background: transparent; color: var(--ink);
  font: 400 1.0625rem/1.6 var(--ui); font-variant-numeric: lining-nums proportional-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.page { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem 3rem; }
@media (min-width: 400px) { .page { padding-left: 1.5rem; padding-right: 1.5rem; } }

/* the head: the painted border, edge to edge, shading the leaf a little below; then the name as a rubric, the title */
header.top { margin-bottom: 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
header.top::before { content: ""; display: block; aspect-ratio: 13 / 4; margin: 0 -1.5rem 1.75rem; background: #d9b27a url("/art/band-tunes-1170.webp") center bottom / cover no-repeat;
  box-shadow: 0 9px 12px -9px rgba(74, 46, 18, .34); }
@media (max-width: 399px) { header.top::before { margin: 0 -1.25rem 1.75rem; } }
@media (min-width: 45rem) { header.top::before { margin: 0 0 1.75rem; border-radius: 0 0 3px 3px; } }
header.top .headpiece { display: none; }
header.top .home { display: inline-block; text-decoration: none; color: var(--rubric);
  font: 600 1.0625rem/1.375rem "Rubric Digits", var(--display); font-variant: all-small-caps lining-nums; letter-spacing: .09em; }
h1 { font: 500 2.375rem/1.15 var(--display); letter-spacing: -.005em; margin: .25rem 0 .375rem; text-wrap: balance; }
.meta { color: var(--ink-soft); font-size: 1rem; margin: 0; }

h2 { font: 500 1.625rem/1.25 var(--display); margin: 2.25rem 0 .5rem; text-wrap: balance; }
h3 { font: 600 1.0625rem/1.5 var(--ui); margin: 1.5rem 0 .25rem; }
p, ul, ol, dl, table { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin: .25rem 0; }
li::marker { color: var(--muted); }
strong, b { font-weight: 600; }
a { color: var(--lapis); text-underline-offset: .18em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: #e9cf86; color: #1f1a15; }

.lead { font-size: 1.125rem; color: var(--ink); }
/* a framed field: the clean page inside a double rule, lifted by a hair (the app's cards) */
.note { background: var(--page); border: 1px solid var(--edge); border-radius: 3px; padding: .875rem 1.125rem;
  box-shadow: inset 0 0 0 2px var(--page), inset 0 0 0 3px var(--fil), var(--lift); }
.note > :last-child { margin-bottom: 0; }
dl dt { font-weight: 600; margin-top: .875rem; }
dl dd { margin: 0 0 .25rem; color: var(--ink-soft); }

table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; vertical-align: top; padding: .625rem .75rem .625rem 0; border-bottom: 1px solid var(--rule); }
th { font: 600 1.0625rem/1.375rem "Rubric Digits", var(--display); font-variant: all-small-caps lining-nums; letter-spacing: .09em; color: var(--rubric); border-bottom-color: rgba(201, 160, 64, .7); }
.wrap { overflow-x: auto; }

/* the foot: a tailpiece (the painted pansy between two gold fillets), then the other pages */
footer.bottom { margin-top: 3rem; color: var(--ink-soft); font-size: .9375rem; }
footer.bottom::before { content: ""; display: block; height: 24px; margin: 0 auto 1.5rem; max-width: 232px; opacity: .92;
  background: url("/art/pansy.webp") center / 22px 22px no-repeat,
    linear-gradient(rgba(176, 138, 51, .7), rgba(176, 138, 51, .7)) left center / calc(50% - 24px) 1px no-repeat,
    linear-gradient(rgba(176, 138, 51, .7), rgba(176, 138, 51, .7)) right center / calc(50% - 24px) 1px no-repeat; }
footer.bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; }
footer.bottom nav a { white-space: nowrap; }
footer.bottom p { text-align: center; }
pre.licence { white-space: pre-wrap; font: .8125rem/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: var(--page); border: 1px solid var(--rule); padding: .75rem 1rem; border-radius: 3px; color: var(--ink); }
details summary { cursor: pointer; color: var(--lapis); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
