/* Fonts (bundled, so the app looks right offline) */
@font-face { font-family: 'Cinzel'; font-weight: 500; src: url('../fonts/cinzel-500.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Cinzel'; font-weight: 700; src: url('../fonts/cinzel-700.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; src: url('../fonts/cormorant-500.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; src: url('../fonts/cormorant-600.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 700; src: url('../fonts/cormorant-700.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; src: url('../fonts/cormorant-500i.woff2') format('woff2'); font-display: swap; }
/* Alchemical symbols + planet signs (Noto Sans Symbols, SIL OFL) */
@font-face { font-family: 'GrimmiSym'; src: url('../fonts/symbols.woff2') format('woff2'); unicode-range: U+1F700-1F77F, U+263D, U+263F-2644; font-display: swap; }
@font-face { font-family: 'GrimmiSym'; src: url('../fonts/symbols2-sun.woff2') format('woff2'); unicode-range: U+2609; font-display: swap; }

/* Script fonts: Noto Sans Runic, Ogham, Hebrew, Phoenician, Old Italic, Gothic, Coptic (SIL OFL) */
@font-face { font-family: 'GrimmiRunic'; src: url('../fonts/script-runic.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'GrimmiOgham'; src: url('../fonts/script-ogham.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'GrimmiHebrew'; src: url('../fonts/script-hebrew.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'GrimmiPhoenician'; src: url('../fonts/script-phoenician.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'GrimmiOldItalic'; src: url('../fonts/script-old-italic.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'GrimmiGothic'; src: url('../fonts/script-gothic.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'GrimmiCoptic'; src: url('../fonts/script-coptic.woff2') format('woff2'); font-display: swap; }

/* Magical alphabets: Grimmi originals (MIT) and Peterson fonts (CC BY 4.0). */
@font-face { font-family: 'GrimmiEnochian'; src: url('../fonts/grimmi-enochian.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'GrimmiTheban'; src: url('../fonts/grimmi-theban.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'GrimmiCelestial'; src: url('../fonts/script-celestial.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'GrimmiMalachim'; src: url('../fonts/script-malachim.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'GrimmiRiver'; src: url('../fonts/script-ptr.ttf') format('truetype'); font-display: swap; }

:root {
  --bg: #14101f; --surface: #1b1530; --surface-2: #241c3c; --line: #4a3d63; --ink: #efe3c8; --muted: #b9b0c9;
  --accent: #d4af6a; --accent-ink: #14101f; --paper: #e9dcc0; --paper-ink: #2b1d12; --paper-muted: #5a4630; --paper-line: #b8975a;
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-sym: 'GrimmiSym', 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Segoe UI Symbol', sans-serif;
  --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 19px; line-height: 1.35; font-weight: 500; -webkit-text-size-adjust: 100%; }
body { overscroll-behavior: none; }
#app { height: 100vh; height: 100dvh; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; position: relative; background: var(--bg); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sym { font-family: var(--font-sym); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- shell ---- */
.top { flex: none; display: flex; align-items: center; gap: 4px; padding: calc(8px + var(--safe-top)) 8px 6px; min-height: calc(60px + var(--safe-top)); }
.top h1 { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 4px; color: var(--accent); text-transform: uppercase; text-align: center; }
.top.left h1 { text-align: left; padding-left: 10px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; color: var(--accent); display: grid; place-items: center; border-radius: 12px; padding: 0; text-decoration: none; }
.icon-btn:active { background: var(--surface-2); }
.top .spacer { width: 44px; flex: none; }
main { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 16px 28px; -webkit-overflow-scrolling: touch; }
.tabs { flex: none; display: flex; background: var(--bg); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + var(--safe-bottom)); }
.tabs a { flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-family: var(--font-display); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; border-radius: 12px; }
.tabs a[aria-current="page"] { color: var(--accent); }
.banner { margin: 0 16px 8px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 12px; background: var(--surface-2); font-size: 17px; }

/* ---- type ---- */
.eyebrow { font-family: var(--font-display); font-size: 11.5px; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; }
.rule { display: flex; align-items: center; gap: 12px; margin: 22px 0 10px; }
.rule::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.muted { color: var(--muted); }
.italic { font-style: italic; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---- buttons, chips ---- */
.btn { min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font-family: var(--font-display); font-size: 12.5px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn.block { display: flex; width: 100%; }
.btn.quiet { border-color: var(--line); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-family: var(--font-display); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.chip::after { content: ''; position: absolute; inset: -4px; }
.chip[aria-pressed="true"], .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.tag { display: inline-block; padding: 2px 11px; border: 1px solid var(--paper-line); border-radius: 99px; font-family: var(--font-display); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--paper-muted); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg button { flex: 1; min-height: 44px; border: 0; background: transparent; font-family: var(--font-display); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* ---- forms ---- */
label.field, div.field { display: block; }
.field > span { display: block; margin: 0 0 6px 2px; font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
input[type=text], input[type=number], input[type=search], textarea, select { width: 100%; min-height: 46px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 19px; line-height: 1.3; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.hint { font-size: 16.5px; color: var(--muted); }

/* ---- cards ---- */
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.paper { position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 16px; padding: 20px 22px; }
.paper::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--paper-line); border-radius: 11px; pointer-events: none; }
.paper > * { position: relative; }
.paper .eyebrow { color: var(--paper-muted); }
.paper .rule::after { background: var(--paper-line); }
.paper .muted { color: var(--paper-muted); }
.paper h2 { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.2; text-align: center; }
.paper .sub { text-align: center; font-style: italic; color: var(--paper-muted); font-size: 19px; margin-top: 4px; }
.paper ul { list-style: none; margin: 0; padding: 0; }
.paper li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; font-size: 19px; padding: 2px 0; }
.paper li::before { content: '\2726'; font-family: var(--font-sym); font-size: 11px; color: var(--paper-muted); }
.words { text-align: center; font-style: italic; font-size: 21px; line-height: 1.4; }
.body-text { font-size: 19px; line-height: 1.4; }
.paper .btn { border-color: var(--paper-ink); color: var(--paper-ink); }
.paper .btn.primary { background: var(--paper-ink); color: var(--paper); }

/* ---- lists ---- */
.list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.item { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; text-decoration: none; background: var(--paper); color: var(--paper-ink); border: 0; border-radius: 14px; padding: 12px 16px; position: relative; min-height: 76px; }
.item::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--paper-line); border-radius: 10px; pointer-events: none; }
.item .t { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.2; }
.item .s { font-style: italic; color: var(--paper-muted); font-size: 17px; margin-top: 2px; }
.item .m { margin-top: 5px; display: flex; gap: 6px; flex-wrap: wrap; }
.item .flask { flex: none; color: var(--paper-ink); }
.empty { text-align: center; padding: 34px 18px; border: 1px dashed var(--line); border-radius: 16px; margin-top: 14px; }
.empty .big { font-size: 40px; color: var(--accent); }
.fab { position: absolute; right: 16px; bottom: calc(78px + var(--safe-bottom)); min-height: 52px; padding: 0 22px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); border: 0; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.35); text-decoration: none; }

/* ---- home ---- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 4px; }
.hero .moon-art { max-width: 78vw; height: auto; }
.shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.book { position: relative; display: block; height: 112px; border-radius: 12px; overflow: hidden; color: #f3e9d4; text-decoration: none; border: 0; padding: 0; text-align: left; }
.book::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: rgba(0,0,0,.35); border-right: 1px solid #d4af6a; }
.book svg { position: absolute; left: 38px; top: 12px; color: #d4af6a; }
.book .t { position: absolute; left: 28px; right: 8px; bottom: 10px; }
.book .t b { display: block; font-family: var(--font-display); font-size: 14px; letter-spacing: 1px; }
.book .t i { font-size: 16px; opacity: .92; }
.brew { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.brew .time { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--accent); min-width: 64px; text-align: right; }

/* ---- alchemy ---- */
.glyphs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 8px; }
.glyph { min-height: 82px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px; position: relative; }
.glyph .g { font-family: var(--font-sym); font-size: 30px; line-height: 1; color: var(--accent); }
.glyph .n { font-family: var(--font-display); font-size: 9.5px; letter-spacing: .6px; text-align: center; line-height: 1.15; color: var(--ink); text-transform: uppercase; }
.glyph .fav { position: absolute; top: 3px; right: 5px; color: var(--accent); font-size: 12px; }
.symrow { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; width: 100%; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.symrow .g { font-family: var(--font-sym); font-size: 34px; line-height: 1; color: var(--accent); flex: none; width: 46px; text-align: center; padding-top: 2px; }
.symrow .t { font-family: var(--font-display); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.symrow .d { font-size: 17.5px; color: var(--muted); margin-top: 2px; }
.symrow .mine { margin-top: 6px; font-size: 17.5px; font-style: italic; color: var(--accent); }
.bigglyph { font-family: var(--font-sym); font-size: 84px; line-height: 1; color: var(--accent); text-align: center; padding: 10px 0 4px; }
.caution { border: 1px solid var(--accent); border-radius: 12px; padding: 10px 14px; font-size: 17.5px; }
.caution b { font-family: var(--font-display); font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }

.eq-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; min-height: 64px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 32px; line-height: 1.2; }
.eq-line .tk { min-width: 28px; min-height: 44px; padding: 0 4px; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; font-size: inherit; border-radius: 8px; color: var(--ink); }
.eq-line .tk.sym { font-family: var(--font-sym); color: var(--accent); }
.eq-line .tk.txt { font-size: 20px; font-style: italic; }
.eq-line .caret { width: 2px; height: 34px; background: var(--accent); margin: 0 -1px; animation: blink 1s steps(2) infinite; flex: none; }
.eq-line .ph { color: var(--muted); font-size: 18px; font-style: italic; }
@keyframes blink { 50% { opacity: 0; } }
.eq-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; text-align: left; text-decoration: none; display: block; color: var(--ink); }
.eq-card .line { font-size: 30px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.eq-card .line .sym, .eqview .sym { font-family: var(--font-sym); color: var(--accent); }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 8px; margin-top: 8px; }
.tools button { min-height: 46px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; display: grid; place-items: center; font-size: 22px; padding: 0 6px; }
.tools button.k { font-family: var(--font-sym), var(--font-body); }
.tools button:active { background: var(--accent); color: var(--accent-ink); }
.hintbar { min-height: 64px; margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line); font-size: 17.5px; }
.hintbar b { font-family: var(--font-display); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }

/* ---- herbs ---- */
.plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.plate-card { position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: 10px 10px 12px; text-align: center; text-decoration: none; display: block; }
.plate-card::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--paper-line); border-radius: 10px; pointer-events: none; }
.plate-card .t { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-top: 2px; }
.plate-card .s { font-style: italic; color: var(--paper-muted); font-size: 17px; }
.plate { color: var(--paper-ink); display: block; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 18px; }
.facts dt { font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--paper-muted); padding-top: 4px; }
.facts dd { margin: 0; font-weight: 600; }

/* ---- moon ---- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal .dow { font-family: var(--font-display); font-size: 10.5px; letter-spacing: 1px; color: var(--muted); padding: 6px 0; }
.cal button { min-height: 52px; border: 1.5px solid transparent; border-radius: 12px; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 600; font-size: 18px; padding: 2px 0; }
.cal button.today { border-color: var(--accent); }
.cal button.ev { background: var(--surface-2); }
.cal .blank { min-height: 52px; }
.mrow { display: flex; align-items: center; gap: 14px; min-height: 58px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow .n { font-family: var(--font-display); font-size: 14px; letter-spacing: 1px; }
.mrow .d { color: var(--accent); font-weight: 700; text-align: right; }

/* ---- settings ---- */
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.theme { position: relative; display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: left; padding: 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); min-height: 80px; }
.theme[aria-pressed="true"] { border-color: var(--accent); }
.theme .sw { display: flex; height: 26px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(128,128,128,.5); }
.theme .sw i { flex: 1; }
.theme .nm { font-family: var(--font-display); font-size: 11.5px; letter-spacing: 1px; }
.theme .ck { position: absolute; bottom: 9px; right: 10px; color: var(--accent); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; font-size: 18px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; text-align: right; }

/* ---- sheet + toast ---- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; animation: fade .15s; }
.sheet { position: fixed; z-index: 41; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 560px; max-height: 90vh; max-height: 90dvh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 10px 18px calc(22px + var(--safe-bottom)); animation: up .18s ease-out; }
.sheet .grab { width: 44px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { font-family: var(--font-display); font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
@keyframes up { from { transform: translate(-50%, 30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
#toast { position: fixed; z-index: 60; left: 50%; bottom: calc(90px + var(--safe-bottom)); transform: translate(-50%, 20px); max-width: min(520px, 92vw); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 18px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.linkprev { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); word-break: break-word; }
.linkprev a { font-weight: 700; font-size: 20px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.frontis { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto; }

/* ---- library, stones, almanac, scripts (0.2.0) ---- */
.tag.src { border-style: dashed; text-transform: none; letter-spacing: .3px; font-family: var(--font-body); font-size: 14px; }
.src-list { padding: 0; margin: 0; list-style: none; }
.src-list li { padding: 4px 0; font-size: 17px; font-weight: 500; }
.src-list li::before { content: none; }
.kv.wide { grid-template-columns: auto 1fr; }
.kv.wide dt { font-family: var(--font-display); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.glyph-big { flex: none; min-width: 64px; text-align: center; font-size: 28px; color: var(--paper-ink); line-height: 1.1; }
.item .glyph-big.sym { font-size: 34px; }
.script-out { font-size: 34px; line-height: 1.5; word-break: break-word; min-height: 52px; color: var(--paper-ink); }
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 8px; }
.letter { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px; text-align: center; display: flex; flex-direction: column; gap: 1px; }
.letter .g { font-size: 30px; line-height: 1.2; color: var(--accent); }
.letter .k { font-family: var(--font-display); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.letter .n { font-size: 16px; }
.letter .m { font-size: 14px; font-style: italic; color: var(--muted); }
.kamea { --n: 3; display: flex; flex-direction: column; gap: 3px; margin: 10px auto 0; max-width: 340px; }
.kamea .kr { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; }
.kamea span { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--paper-line); border-radius: 5px; font-family: var(--font-display); font-weight: 700; font-size: clamp(10px, calc(34px - var(--n) * 3px), 24px); color: var(--paper-ink); background: rgba(255,255,255,.28); }
