/* era-golescu-grec v1.1 — fable-grade editorial styles. Newsreader (OFL) self-hosted. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-ext-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fff;
  --card: #faf9f6;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #78716c;
  --rule: #e7e2d9;
  --accent: #9a3412;
  --accent-ink: #7c2d12;
  --seal-true: #166534;
  --seal-part: #92400e;
  --seal-un: #57534e;
  --seal-false: #b91c1c;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
:root[data-theme="dark"] {
  --paper: #141311;
  --card: #1c1a17;
  --ink: #f5f0e8;
  --ink-soft: #d6cfc2;
  --muted: #a8a098;
  --rule: #2e2a25;
  --accent: #fb923c;
  --accent-ink: #fdba74;
  --seal-true: #4ade80;
  --seal-part: #fbbf24;
  --seal-un: #b8b0a4;
  --seal-false: #f87171;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.08rem/1.7 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
main { max-width: 46rem; margin: 0 auto; padding: 0 1.2rem; }

/* ---- topbar ---- */
.skip { position: absolute; left: -999px; }
.skip:focus { left: .5rem; top: .5rem; z-index: 70; background: var(--ink); color: var(--paper); padding: .4rem .8rem; border-radius: 6px; font-family: var(--sans); font-size: .9rem; }
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1rem;
  max-width: 60rem; margin: 0 auto; padding: .55rem 1.2rem;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  font: 400 .92rem var(--sans);
}
.brand { font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.topnav { display: flex; gap: 1rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.topnav a[aria-current="true"] { color: var(--accent); font-weight: 700; }
.lang {
  border: 1px solid var(--rule); border-radius: 999px; padding: .2rem .8rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.icon {
  width: 2.2rem; height: 2.2rem; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper); color: var(--ink); cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.icon .i-sun { display: none; }
:root[data-theme="dark"] .icon .i-moon { display: none; }
:root[data-theme="dark"] .icon .i-sun { display: inline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.progress {
  position: fixed; top: 0; left: 0; z-index: 60; height: 3px; width: 0;
  background: var(--accent); transition: width .08s linear;
}

/* ---- hero ---- */
.hero { border-top: 4px solid var(--ink); margin-top: 2.2rem; padding: 1.4rem 0 1rem; }
.kicker { font: 600 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.1rem; }
h1 {
  font: 560 clamp(2.7rem, 9vw, 5rem)/1.02 var(--serif);
  letter-spacing: -.025em; margin: 0 0 1.3rem; text-wrap: balance;
}
h1 .q { color: var(--accent); font-style: italic; font-weight: 480; }
.deck { font-size: 1.28rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 1.4rem; max-width: 39rem; }
.tally {
  list-style: none; margin: 0 0 1.4rem; padding: .85rem 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: .45rem 1.4rem;
  font: 600 .83rem var(--sans); letter-spacing: .05em; text-transform: uppercase;
}
.tally-item { display: flex; align-items: baseline; gap: .45rem; white-space: nowrap; }
.tally-item .dot { width: .6em; height: .6em; border-radius: 999px; background: currentColor; align-self: center; }
.tally-n { font: 700 1.05rem var(--serif); }
.tally-item.s-true { color: var(--seal-true); }
.tally-item.s-part { color: var(--seal-part); }
.tally-item.s-un { color: var(--seal-un); }
.tally-item.s-false { color: var(--seal-false); }
.answer {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--card); border: 1px solid var(--rule); border-radius: 6px;
  padding: 1.1rem 1.25rem; font-size: 1.1rem; line-height: 1.6; margin: 0 0 1.1rem;
}
.stamp {
  flex: none; transform: rotate(-4deg);
  font: 800 1.5rem/1 var(--serif); color: var(--accent-ink);
  border: 2px solid var(--accent-ink); border-radius: 4px; padding: .3rem .7rem .4rem;
  box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--accent-ink);
  margin: .2rem;
}
:root[data-theme="dark"] .stamp { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--accent); }
.byline { font: 400 .88rem var(--sans); color: var(--muted); margin: 0; }

/* ---- toc: the index of seven ---- */
.toc { padding: 2.2rem 0 0; }
.toc h2 { font: 640 1.65rem/1.25 var(--serif); letter-spacing: -.01em; margin: 0 0 .25rem; }
.toc-note { color: var(--muted); margin: 0 0 .6rem; font-size: 1.02rem; }
.toc-grid { display: grid; }
.toc-item {
  display: flex; align-items: baseline; gap: .9rem; text-decoration: none; color: var(--ink);
  border-top: 1px solid var(--rule); padding: .78rem .2rem;
}
.toc-item:last-child { border-bottom: 1px solid var(--rule); }
.toc-item:hover { background: var(--card); }
.toc-item:hover .toc-t { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.toc-n { font: italic 600 1.05rem var(--serif); color: var(--accent); min-width: 2rem; }
.toc-t { flex: 1; font-weight: 560; font-size: 1.06rem; }
.toc-v { font: 700 .76rem var(--sans); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.toc-item.s-true .toc-v { color: var(--seal-true); }
.toc-item.s-part .toc-v { color: var(--seal-part); }
.toc-item.s-un .toc-v { color: var(--seal-un); }
.toc-item.s-false .toc-v { color: var(--seal-false); }

/* ---- claims: chapters ---- */
.block { padding: 2.6rem 0 0; }
.claim, .block, .toc, .companion { scroll-margin-top: 4.2rem; }
.claim { border-top: 3px solid var(--ink); padding-top: 1.5rem; margin: 0 0 4rem; }
.claim h2 { font: 640 clamp(1.65rem, 4.5vw, 2.15rem)/1.15 var(--serif); letter-spacing: -.015em; margin: 0 0 1.1rem; text-wrap: balance; }
.numeral { display: block; font: italic 600 1.05rem/1 var(--serif); letter-spacing: .08em; color: var(--accent); margin: 0 0 .45rem; }
.perma { color: var(--muted); text-decoration: none; font-size: 1rem; margin-left: .5rem; }
.perma:hover { color: var(--accent); }
.claim h3 { font: italic 600 1.15rem var(--serif); color: var(--ink); margin: 1.5rem 0 .7rem; }
.claim p { margin: 0 0 1.1rem; }
.dropcap::first-letter {
  font: 600 3.4em/.82 var(--serif); float: left;
  padding: .09em .14em 0 0; color: var(--ink);
}
.claim-q {
  margin: 0 0 1.3rem; padding: 1.1rem 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font: italic 450 1.38rem/1.5 var(--serif); color: var(--ink);
}
.q-label { display: block; font: 700 .74rem/1 var(--sans); font-style: normal; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: .55rem; }
.doc { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 1rem 1.2rem; margin: 0 0 .7rem; }
.doc-q { font-size: 1.08rem; line-height: 1.62; margin: 0 0 .45rem !important; }
.doc-s { font: 400 .86rem var(--sans); color: var(--muted); margin: 0 !important; }
.fac { margin: 1.4rem 0; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: clamp(.6rem, 2vw, 1rem); }
.fac img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 2px; background: #fff; }
.fac-enlarge {
  display: block; margin: .7rem 0 0 auto;
  font: 600 .8rem var(--sans); letter-spacing: .02em;
  color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px;
  padding: .32rem .85rem; cursor: pointer;
}
.fac-enlarge:hover { border-color: var(--accent); color: var(--accent); }
.fac figcaption { font: 400 .86rem var(--sans); color: var(--muted); margin: .6rem 0 .5rem; }
.trans { font: italic 450 1.04rem/1.65 var(--serif); color: var(--ink-soft); margin: 0; border-top: 1px solid var(--rule); padding-top: .7rem; }
.verdict {
  display: flex; align-items: center; gap: 1rem;
  border-top: 1px solid var(--rule); padding-top: 1.1rem; margin: 1.5rem 0 0;
}
.seal {
  flex: none; border: 2px solid; border-radius: 4px; padding: .28rem .8rem;
  font: 800 .84rem var(--sans); text-transform: uppercase; letter-spacing: .07em;
  transform: rotate(-2deg); white-space: nowrap; background: var(--paper);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px currentColor;
  margin: .15rem;
}
.s-true { color: var(--seal-true); border-color: var(--seal-true); }
.s-part { color: var(--seal-part); border-color: var(--seal-part); }
.s-un { color: var(--seal-un); border-color: var(--seal-un); }
.s-false { color: var(--seal-false); border-color: var(--seal-false); }
.toc-item.s-true, .toc-item.s-part, .toc-item.s-un, .toc-item.s-false { color: var(--ink); border-color: var(--rule); }
.reason { color: var(--ink-soft); font-size: 1.02rem; }

/* ---- lightbox ---- */
.lightbox { border: none; padding: 0; background: transparent; max-width: min(1060px, 94vw); max-height: 94vh; }
.lightbox::backdrop { background: rgba(12, 11, 9, .88); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: #0c0b09; }
.lightbox figcaption { font: 400 .86rem var(--sans); color: #d6cfc2; padding: .6rem .2rem 0; }
.lightbox-close {
  display: block; margin: .8rem 0 0 auto;
  font: 700 .85rem var(--sans); color: #f5f0e8; background: transparent;
  border: 1px solid #6b6459; border-radius: 999px; padding: .35rem 1rem; cursor: pointer;
}
.lightbox-close:hover { border-color: #f5f0e8; }

/* ---- timeline ---- */
.block > h2 { font: 640 1.7rem/1.25 var(--serif); letter-spacing: -.01em; margin: 0 0 .4rem; }
.lede { color: var(--ink-soft); margin: 0 0 1.4rem; font-size: 1.05rem; }
.timeline { list-style: none; margin: 0 0 0 .4rem; padding: 0 0 0 1.7rem; border-left: 2px solid var(--rule); display: grid; gap: 1.35rem; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1.7rem - 6px); top: .5em;
  width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--paper); border: 2px solid var(--accent);
}
.t-date { display: block; font: italic 600 1.06rem var(--serif); color: var(--accent-ink); margin-bottom: .15rem; }
:root[data-theme="dark"] .t-date { color: var(--accent); }

/* ---- companion / faq / sources ---- */
.companion { background: var(--ink); color: var(--paper); border-radius: 6px; padding: 2rem clamp(1.2rem, 4vw, 2.2rem); margin-top: 2.6rem; }
.companion .kicker { color: var(--paper); opacity: .66; }
.companion h2 { font: 640 1.5rem/1.3 var(--serif); letter-spacing: -.01em; margin: 0 0 .6rem; }
.companion p { margin: 0 0 .9rem; color: var(--paper); opacity: .88; }
.companion p:last-child { margin-bottom: 0; opacity: 1; }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none;
  font: 700 .95rem var(--sans); padding: .6rem 1.15rem; border-radius: 6px;
}
.companion .btn { background: var(--paper); color: var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); padding: .95rem 0; }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { font: 600 1.1rem var(--serif); cursor: pointer; }
.faq summary::marker { color: var(--accent); }
.faq p { color: var(--ink-soft); margin: .55rem 0 0; }
.src-row { margin: 0 0 1.1rem; }
.src-k { font: 700 1.06rem var(--serif); margin: 0 0 .2rem; }
.src-row p { margin: 0; color: var(--ink-soft); }
.src-row a { color: var(--accent-ink); text-underline-offset: 2px; }
:root[data-theme="dark"] .src-row a { color: var(--accent); }
.method { margin: .4rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); display: grid; gap: .45rem; }
.method::marker { color: var(--accent); }
footer { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.2rem 3rem; font: 400 .88rem var(--sans); color: var(--muted); border-top: 1px solid var(--rule); margin-top: 2.5rem; }

/* ---- responsive ---- */
@media (max-width: 30rem) {
  body { font-size: 1.02rem; }
  .topbar { gap: .7rem; padding: .55rem .8rem; font-size: .86rem; }
  .topnav a + a { display: none; }
  .hero { margin-top: 1.4rem; }
  .claim-q { font-size: 1.2rem; }
  .answer { gap: .9rem; padding: .95rem 1rem; }
  .stamp { font-size: 1.25rem; }
  .verdict { flex-wrap: wrap; }
}

/* ---- motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress { transition: none; }
}

/* ---- print ---- */
@media print {
  .topbar, .progress, .fac-enlarge, .lightbox, .skip { display: none !important; }
  body { font-size: 11pt; }
  main, footer { max-width: none; }
  a { color: inherit; }
  .companion { background: none; color: #000; border: 2px solid #000; }
  .companion .kicker, .companion h2, .companion p { color: #000; opacity: 1; }
}
