/* Digi-Skeptikko web reader. Design approved by the board (prototype "Skeptikko 1/2020 – mobiiliversio"). */
:root { --red: #c8202e; --ink: #231f20; --paper: #ffffff; --muted: #6f6a64; --rule: #e6e2dc; --box: #f6f3ee; --measure: 37rem; }
:root:not([data-theme="light"]) { color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --red: #ff5a63; --ink: #ebe6dd; --paper: #171615; --muted: #a49e95; --rule: #2f2c29; --box: #23211f; } }
:root[data-theme="dark"] { --red: #ff5a63; --ink: #ebe6dd; --paper: #171615; --muted: #a49e95; --rule: #2f2c29; --box: #23211f; }
* { box-sizing: border-box; }
html { scroll-padding-top: calc(3.2rem + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "EB Garamond", Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.5; -webkit-hyphens: auto; hyphens: auto; }
.bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: calc(.55rem + env(safe-area-inset-top, 0px)) 1rem .55rem; background: var(--red); color: #fff; font-family: "Archivo Narrow", "Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-size: 1rem; letter-spacing: .02em; }
.bar a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.55); }
.bar .name { font-family: "Paytone One", "Arial Rounded MT Bold", Arial, sans-serif; font-size: 1.15rem; }
.bar .links { display: flex; gap: 1rem; }
main { max-width: var(--measure); margin: 0 auto; padding: 0 1.1rem calc(3rem + env(safe-area-inset-bottom, 0px)); }
.cover { margin: 1.25rem auto 0; max-width: 22rem; }
.cover img { width: 100%; height: auto; display: block; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.issue { margin: 1.5rem 0 .25rem; font-family: "Archivo Narrow", "Roboto Condensed", "Arial Narrow", Arial, sans-serif; color: var(--muted); font-size: 1rem; }
h1.toc-h { font-family: "Paytone One", "Arial Rounded MT Bold", Arial, sans-serif; font-weight: 400; font-size: 2rem; line-height: 1.1; margin: 0 0 1rem; color: var(--red); }
.toc { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--rule); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a { display: block; padding: .7rem 0; color: inherit; text-decoration: none; }
.toc .sec { display: block; font-family: "Archivo Narrow", "Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-size: .85rem; color: var(--muted); }
.toc .t { font-weight: 600; }
.toc .a { display: block; font-style: italic; color: var(--muted); font-size: 1rem; }
.epub-box { background: var(--box); padding: 1rem 1.1rem; margin: 0 0 3rem; border-radius: 4px; font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif; font-size: 1rem; }
.epub-box a.btn { display: inline-block; margin-top: .5rem; background: var(--red); color: #fff; padding: .5rem 1rem; border-radius: 3px; text-decoration: none; font-weight: 700; }
article { padding: 1.5rem 0 2.5rem; border-top: 6px solid var(--red); }
article + article { margin-top: 1rem; }
.kicker { margin: 0 0 .6rem; font-family: "Archivo Narrow", "Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
article h1 { font-family: "Paytone One", "Arial Rounded MT Bold", Arial, sans-serif; font-weight: 400; font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.05; margin: 0 0 .8rem; color: var(--red); -webkit-hyphens: manual; hyphens: manual; }
.subtitle { font-size: 1.25rem; line-height: 1.3; margin: -.3rem 0 .9rem; font-weight: 600; }
.lede { font-style: italic; font-size: 1.3rem; line-height: 1.35; margin: 0 0 .9rem; }
.author { font-family: "Archivo Narrow", "Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-size: 1rem; margin: 0 0 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
article h2 { font-family: "Archivo Narrow", "Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.25; letter-spacing: .02em; margin: 1.8rem 0 .5rem; text-transform: uppercase; -webkit-hyphens: manual; hyphens: manual; }
article p { margin: 0; }
article p + p { text-indent: 1.4em; }
article p.first, article p.lede, article p.author, article p.subtitle, article p.credit, article h2 + p, figure + p, aside + p, blockquote + p { text-indent: 0; }
p.first::first-letter { float: left; font-family: "Paytone One", "Arial Rounded MT Bold", Arial, sans-serif; font-size: 3.6em; line-height: .8; padding: .06em .1em 0 0; color: var(--red); }
blockquote { margin: 1rem 0 1rem 1rem; padding-left: 1rem; border-left: 3px solid var(--red); font-size: 1.05rem; }
blockquote p { text-indent: 0; }
figure { margin: 1.4rem 0; }
figure img { max-width: 100%; height: auto; display: block; }
figcaption { font-size: 1rem; font-style: italic; color: var(--muted); margin-top: .5rem; line-height: 1.35; }
figcaption .credit { font-style: normal; font-family: "Archivo Narrow", "Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-size: .8rem; display: block; margin-top: .2rem; }
sup { font-size: .7em; line-height: 0; }
.back { display: inline-block; margin-top: 2rem; font-family: "Archivo Narrow", "Roboto Condensed", "Arial Narrow", Arial, sans-serif; color: var(--red); text-decoration: none; border-bottom: 1px solid currentColor; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
footer { margin: 3rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--muted); font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif; }
.watermark { font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif; font-size: .85rem; color: var(--muted); text-align: center; margin: .5rem 0 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
