/* Old Whistle: the public tune pages (/tunes, /tunes/<id>; tools/seo_pages.py). The same book as the plain pages
   (pages.css) and the app: leaf, ink, lapis, vermilion and gold, always light. One small sheet, no framework. */
@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; }
:root {
  --vellum: #f6f1e4; --page: #fbf8ef; --ink: #1f1a15; --ink-soft: #4a4036; --muted: #6b5f50;
  --lapis: #2d4a8c; --lapis-d: #233b72; --rubric: #b0361d; --gold: #c9a040; --gold-ink: #7a5a12;
  --rule: rgba(31, 26, 21, .12); --edge: rgba(123, 58, 38, .62); --fil: rgba(201, 160, 64, .6);
  --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;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--vellum) radial-gradient(120% 90% at 50% 0%, #fcf8ee 0%, #f7f2e5 55%, #f0e8d6 100%); min-height: 100%; }
body { margin: 0; color: var(--ink); font: 400 1.0625rem/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: var(--lapis); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, audio:focus-visible { outline: 2px solid var(--lapis); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--page); padding: .5rem 1rem; z-index: 9; }
.skip:focus { left: .5rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 46rem; margin: 0 auto; padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 500 1.375rem/1 var(--display); }
.brand img { border-radius: 50%; }
.top nav { display: flex; gap: 1.25rem; font-weight: 600; font-size: .9375rem; }
.top nav a { text-decoration: none; padding: .5rem 0; }
.top nav a[aria-current] { color: var(--rubric); }
main { max-width: 46rem; margin: 0 auto; padding: .5rem 1.25rem 2rem; }
.crumbs { font-size: .875rem; color: var(--muted); margin: .75rem 0 0; }
.title { display: flex; gap: 1rem; align-items: center; margin: 1rem 0 .5rem; }
.ini { flex: none; width: 96px; height: 96px; border-radius: 3px; box-shadow: 0 0 0 1px var(--edge), 0 0 0 3px var(--page), 0 0 0 4px var(--fil), var(--lift); }
h1 { font: 500 2.375rem/1.1 var(--display); margin: 0; text-wrap: balance; }
.kicker { margin: .375rem 0 0; color: var(--rubric); font: 600 .9375rem/1.3 var(--display); font-variant: all-small-caps; letter-spacing: .08em; }
.aka { color: var(--ink-soft); font-size: .9375rem; margin: .5rem 0 0; }
.lede { font: 400 1.25rem/1.5 var(--display); margin: .75rem 0 1rem; }
h2 { font: 500 1.625rem/1.25 var(--display); margin: 2.25rem 0 .5rem; text-wrap: balance; }
h3 { font: 600 .8125rem/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--rubric); margin: 1rem 0 .25rem; }
p { margin: 0 0 1rem; }
.small { font-size: .9375rem; color: var(--ink-soft); }
.recs { display: grid; gap: .5rem; margin: 1rem 0; }
.rec { margin: 0; padding: .625rem .875rem; background: var(--page); border: 1px solid var(--rule); border-radius: 8px; }
.rec figcaption { font-weight: 600; font-size: .9375rem; margin-bottom: .375rem; }
.rec figcaption span { font-weight: 400; color: var(--muted); }
.rec audio { width: 100%; height: 40px; }
.cta { display: block; margin: 1.25rem 0; padding: .9rem 1.1rem; min-height: 56px; background: var(--lapis); color: #fbf3dc; border-radius: 12px;
  text-decoration: none; text-align: center; box-shadow: var(--lift); }
.cta:hover { background: var(--lapis-d); }
.cta span { display: block; font: 600 1.125rem/1.3 var(--ui); }
.cta small { display: block; font-size: .875rem; opacity: .9; margin-top: .125rem; }
.cta.alt { background: var(--page); color: var(--lapis); border: 1px solid var(--lapis); }
.cta.alt:hover { background: #fff; }
.notes { background: var(--page); border: 1px solid var(--edge); border-radius: 3px; padding: .75rem 1rem;
  box-shadow: inset 0 0 0 2px var(--page), inset 0 0 0 3px var(--fil), var(--lift); }
.nl { font: 500 1.0625rem/1.9 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; margin: 0 0 .25rem; word-spacing: .05em; }
.nl .bar { color: var(--gold-ink); }
.chart { display: flex; flex-wrap: wrap; gap: .75rem .5rem; padding: .75rem; background: var(--page); border: 1px solid var(--rule); border-radius: 8px; }
.chart figure { margin: 0; width: 2.75rem; text-align: center; }
.chart svg { display: block; margin: 0 auto; }
.chart .c { fill: var(--ink); } .chart .o { fill: var(--page); stroke: var(--ink); stroke-width: 1.3; } .chart .p { stroke: var(--rubric); stroke-width: 2; }
.chart figcaption { font: 600 .9375rem/1.4 var(--ui); margin-top: .25rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .25rem 1.5rem; margin: 0; }
.facts div { padding: .375rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: .8125rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 0; }
.sheet { background: #fffdf6; border: 1px solid var(--rule); border-radius: 8px; padding: .5rem; min-height: 12rem; overflow-x: auto; }
.ini-story { font-style: italic; color: var(--ink-soft); }
.ini-story em { font-style: normal; font-weight: 600; color: var(--ink); }
.rel { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0 1.5rem; }
.rel li, .cols li { padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.rel span, .cols span { color: var(--muted); font-size: .875rem; }
.cols { list-style: none; padding: 0; margin: 0; columns: 15rem; column-gap: 1.5rem; }
.cols li { break-inside: avoid; }
.rel a, .cols a { display: inline-block; padding: .25rem 0; }
.jump { line-height: 2.2; }
.foot { max-width: 46rem; margin: 2rem auto 0; padding: 1.5rem 1.25rem 2.5rem; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: .9375rem; text-align: center; }
@media (min-width: 700px) { h1 { font-size: 3rem; } .ini { width: 120px; height: 120px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
