/* Shared typography and motion tokens. */
:root { --type-title:16px; --type-body:16px; --type-meta:12px; --type-index:11px; --type-note:10px; --motion-page:400ms; --motion-profile:400ms; --motion-quote:700ms; --motion-theme:560ms; --motion-menu:350ms; --motion-note:160ms; }
@media(prefers-reduced-motion:reduce){:root{--motion-note:0ms;}}

:root{--accent-light:#523969;--accent-dark:#c39bdd;--grey-primary:#545454;--grey-secondary:#8f8f8f;--control-size:38px;--control-font:19px}

/* Shared interactive styling for existing and future pages. */
.stats-wrap .profile-stats{font-variant-numeric:tabular-nums}
button,a,[role=button]{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:1px solid currentColor;outline-offset:3px}
html:not(.commonplace-dark) body:not(.trivia-dark) .footnote-trigger{color:var(--accent-light)}
html:not(.commonplace-dark) body:not(.trivia-dark) .library-page .book-bibliography,html:not(.commonplace-dark) body.library-page .book-bibliography{color:var(--grey-primary)}

/* v14: shared semantic colours; existing button accent is authoritative. */
:root{--grey-decorative:#ccc;--site-accent:var(--accent-light)}
html.commonplace-dark,body.trivia-dark{--site-accent:var(--accent-dark)}
#reader-profile #reader-name,.reader-dialog #reader-name,.stats-wrap .stats-heading{color:var(--site-accent)!important;transition:color var(--motion-theme) ease}.stats-wrap .timer-stat-row span:not(:first-child),.stats-wrap .profile-stats strong{color:var(--site-accent);transition:color var(--motion-theme) ease}
html:not(.commonplace-dark) body:not(.trivia-dark) .home-nav button{color:var(--accent-light)}
.footnote-trigger:hover{text-decoration:underline;text-decoration-color:var(--site-accent)}
@media(prefers-reduced-motion:reduce){#reader-profile #reader-name,.reader-dialog #reader-name,.stats-wrap .stats-heading,.stats-wrap .timer-stat-row span:not(:first-child),.stats-wrap .profile-stats strong{transition:none}}

:root{--type-body:14px}
.commonplace-dark .draft-guides,.trivia-dark .draft-guides{opacity:.198!important}
@media(max-width:600px){.commonplace-controls,.trivia-font-controls{bottom:max(18px,env(safe-area-inset-bottom))}}

:root{--accent-light:#422b54;--grey-primary:#444;--grey-secondary:#666;--masthead-top:clamp(133px,20.9svh,228px)}
html:not(.commonplace-dark) body:not(.trivia-dark) :is(.profile-note,.stats-wrap .profile-stats>div,.footnote,.footnote-text,.book-bibliography,.post-meta,.description){color:var(--grey-secondary)}

:root{--subpage-title:#808080}html:not(.commonplace-dark) body:not(.commonplace-dark):not(.trivia-dark) .archive #page-content > header > h1{color:var(--subpage-title)!important}

.archive #page-content > header > h1{font-family:'Courier New',monospace!important;font-weight:400!important}

:root{--grey-divider:#d6d6d6;--grey-heading:#808080;--purple-inactive:#d5c8df;--grey-heading-dark:#aaa;--grey-divider-dark:#444;--purple-inactive-dark:#655373;--profile-divider:var(--grey-divider)}
html.commonplace-dark,body.trivia-dark{--profile-divider:var(--grey-divider-dark)}

:root{--profile-dot-size:6.25px}

:root{--trivia-photo-radius:8px}

/* v37.4.14: mobile navigation only; preserve desktop and content controls. */
@media(max-width:600px){
body :is(.home-nav,.commonplace-controls,.trivia-font-controls) button,body .site-tree-nav{width:34.2px;height:34.2px}
body :is(.home-nav,.commonplace-controls,.trivia-font-controls) button>svg,body .site-tree-nav>svg{scale:.9}
}
@media(max-width:360px){body :is(.home-nav,.commonplace-controls,.trivia-font-controls) button,body .site-tree-nav{width:30.6px;height:30.6px}}
@media(max-width:600px){html body .post-step button{width:34.2px;height:34.2px}html body .post-step button>svg{scale:.9}}
