/* =====================================================================
   Archaeognosia - public site styles
   Look: warm marble and parchment, black-figure ink, terracotta and gold.
   Fonts: Cinzel (inscription capitals), EB Garamond (headings),
          Literata (reading text), Inter (small interface text).
   ===================================================================== */

:root {
  --bg: #f6f0e4;
  --bg-2: #efe6d4;
  --surface: #fffcf6;
  --ink: #1c1915;
  --ink-2: #463d33;
  --muted: #776a59;
  --line: #e2d6c1;
  --line-2: #d3c4aa;
  --accent: #a3432a;        /* terracotta */
  --accent-2: #8a3620;
  --accent-soft: #f3e1d5;
  --gold: #a9853f;
  --gold-bright: #c9a45c;
  --night: #17130f;         /* always dark bands */
  --night-2: #221c16;
  --cream: #f3ead8;
  --shadow: 0 1px 2px rgba(40, 28, 14, .05), 0 8px 28px rgba(40, 28, 14, .08);
  --shadow-lg: 0 24px 60px -18px rgba(40, 28, 14, .35);

  --f-caps: "Cinzel", "EB Garamond", Georgia, serif;
  --f-head: "EB Garamond", Georgia, "Times New Roman", serif;
  --f-text: "Literata", Georgia, serif;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M0 11.3H12M10.3 11.3V.7H1.7V8.3H7.3V4H4.6' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110d;
    --bg-2: #1b1712;
    --surface: #1e1914;
    --ink: #f0e8da;
    --ink-2: #d4c8b5;
    --muted: #a39580;
    --line: #2f2820;
    --line-2: #3d342a;
    --accent: #e0805c;
    --accent-2: #eb9473;
    --accent-soft: #3a2219;
    --gold: #d2ae68;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14110d;
  --bg-2: #1b1712;
  --surface: #1e1914;
  --ink: #f0e8da;
  --ink-2: #d4c8b5;
  --muted: #a39580;
  --line: #2f2820;
  --line-2: #3d342a;
  --accent: #e0805c;
  --accent-2: #eb9473;
  --accent-soft: #3a2219;
  --gold: #d2ae68;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-mid { max-width: 920px; }
.wrap-text { max-width: calc(700px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { left: 12px; }

/* Greek key (meander) band */
.meander {
  height: 16px;
  background: var(--gold);
  -webkit-mask: var(--meander) repeat-x left center / 16px 16px;
  mask: var(--meander) repeat-x left center / 16px 16px;
  opacity: .75;
}
.meander-small { height: 12px; -webkit-mask-size: 12px 12px; mask-size: 12px 12px; max-width: 216px; margin: 0 auto 28px; }

/* small Greek word above headings */
.greek {
  font-family: var(--f-head);
  font-style: italic;
  font-size: 19px;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.kicker, .hero-kicker, .tl-period, .vt-period {
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker { color: var(--accent); display: inline-block; margin-bottom: 8px; }
.kicker:hover { color: var(--accent-2); }
.meta { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1.2 var(--f-ui); cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-light { background: var(--cream); color: #1c1915; }
.btn-light:hover { background: #fff; }
.btn-ghost-light { border-color: rgba(243, 234, 216, .5); color: var(--cream); }
.btn-ghost-light:hover { background: rgba(243, 234, 216, .12); border-color: var(--cream); }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.link-arrow { font: 500 14.5px var(--f-ui); color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { color: var(--accent-2); }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(3px); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* the blur sits on a layer behind, so the phone menu (position: fixed) can still fill the screen */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--f-caps); font-weight: 600; font-size: 19px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; }
.brand-tag { font-family: var(--f-head); font-style: italic; font-size: 14.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 8px); left: 50%; min-width: 300px;
  translate: -50% 6px; opacity: 0; visibility: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px; transition: opacity .18s var(--ease), translate .18s var(--ease), visibility .18s;
}
.menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; translate: -50% 0; }
.menu a { display: flex; justify-content: space-between; gap: 18px; width: 100%; border-radius: 8px; padding: 10px 12px; }
.menu a span { font-family: var(--f-head); font-size: 18px; color: var(--ink); font-weight: 500; }
.menu a small { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.menu .menu-all { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 6px; padding-top: 12px; color: var(--accent); font-size: 14px; }
.header-tools { display: flex; align-items: center; gap: 2px; }
.main-nav + .header-tools { margin-left: 8px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
.nav-burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-burger span { width: 18px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

@media (max-width: 1080px) { .brand-tag { display: none; } }
@media (max-width: 960px) {
  .nav-burger { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); margin: 0;
    padding: 16px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a { font-family: var(--f-head); font-size: 26px; padding: 16px 4px; border-radius: 0; background: none !important; color: var(--ink); }
  .main-nav .menu-toggle svg { display: none; }
  .menu, .has-menu:hover .menu, .has-menu:focus-within .menu { position: static; opacity: 1; visibility: visible; translate: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 14px; min-width: 0; }
  .menu::before { display: none; }
  .menu a { padding: 8px 4px; }
  .menu a span { font-size: 17px; color: var(--ink-2); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 15px; letter-spacing: .1em; }
  .brand-logo { width: 38px; height: 38px; }
}

/* reading progress bar (articles only) */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; display: none; }
.is-article .progress { display: block; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-bright), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--cream); background: var(--night); min-height: clamp(540px, 84vh, 780px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transform: scale(1.04); animation: heroIn 1.6s var(--ease) forwards; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 13, 9, .78) 0%, rgba(18, 13, 9, .35) 55%, rgba(18, 13, 9, .1) 100%),
    linear-gradient(180deg, rgba(18, 13, 9, .25) 0%, rgba(18, 13, 9, 0) 30%, rgba(18, 13, 9, .85) 100%);
}
@keyframes heroIn { from { transform: scale(1.1); opacity: .6; } to { transform: scale(1.04); opacity: 1; } }
.hero-inner { padding-top: 120px; padding-bottom: clamp(48px, 8vh, 88px); }
.hero-copy { max-width: 780px; animation: rise .9s .15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-bright); margin-bottom: 18px; }
.pill-gold { font-family: var(--f-ui); font-size: 11px; letter-spacing: .08em; font-weight: 600; background: var(--gold-bright); color: #1c1915; padding: 4px 10px; border-radius: 999px; }
.hero-title { font-size: clamp(42px, 6.6vw, 84px); line-height: 1.02; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
.hero-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: rgba(243, 234, 216, .4); }
.hero-text { font-family: var(--f-text); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: rgba(243, 234, 216, .86); margin-top: 20px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 32px; }
.hero-actions.center { justify-content: center; }
.hero-meta { font-size: 14px; color: rgba(243, 234, 216, .75); }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); }
.section-head.on-dark { border-color: rgba(243, 234, 216, .14); }
.section-head.on-dark .link-arrow { color: var(--gold-bright); }
.center-cta { text-align: center; margin-top: 44px; }

/* ---------- cards ---------- */
.card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); aspect-ratio: 3 / 2; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--bg-2)); }
.card-placeholder span { font-family: var(--f-head); font-size: 72px; color: var(--accent); opacity: .55; }
.card-title { font-size: 26px; line-height: 1.15; text-wrap: balance; }
.card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.card:hover .card-title a { background-size: 100% 1px; }
.card-excerpt { font-family: var(--f-text); font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 10px 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card-lead .card-media { aspect-ratio: 16 / 10; }
.card-lead .card-title { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; }
.card-lead .card-excerpt { font-size: 17.5px; -webkit-line-clamp: 4; }

.card-mini { flex-direction: row-reverse; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.card-mini:first-child { padding-top: 0; }
.card-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.card-mini .card-media { width: 112px; flex: none; aspect-ratio: 1; }
.card-mini .card-body { flex: 1; min-width: 0; }
.card-mini .card-title { font-size: 21px; margin-bottom: 8px; }
.card-mini .kicker { font-size: 11px; margin-bottom: 6px; }

.card-row { flex-direction: row; gap: 24px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.card-row .card-media { width: 220px; flex: none; }
.card-row .card-body { flex: 1; min-width: 0; }

.latest-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.latest-side { border-left: 1px solid var(--line); padding-left: 40px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; }

@media (max-width: 960px) {
  .latest-grid { grid-template-columns: 1fr; gap: 36px; }
  .latest-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-row { flex-direction: column; }
  .card-row .card-media { width: 100%; }
  .card-mini .card-media { width: 88px; }
  .section-head { flex-wrap: wrap; align-items: flex-start; flex-direction: column; gap: 10px; }
}

/* ---------- timeline band (home) ---------- */
.timeline-band { background: var(--night); color: var(--cream); padding-block: clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.timeline-band::before {
  content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background: var(--gold-bright);
  -webkit-mask: var(--meander) repeat 0 0 / 34px 34px; mask: var(--meander) repeat 0 0 / 34px 34px;
}
.timeline-band .greek { color: var(--gold-bright); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 62px; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 164, 92, .55) 8%, rgba(201, 164, 92, .55) 92%, transparent); }
.tl-item { display: flex; flex-direction: column; gap: 10px; padding: 0 18px 0 0; height: 100%; position: relative; }
.tl-num { font-family: var(--f-head); font-size: 34px; color: rgba(243, 234, 216, .28); line-height: 1; height: 40px; transition: color .3s; }
.tl-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--night); border: 2px solid var(--gold-bright); margin: 2px 0 8px; transition: background .25s, transform .25s var(--ease); }
.tl-period { color: var(--gold-bright); font-size: 11.5px; }
.tl-name { font-family: var(--f-head); font-size: 25px; line-height: 1.1; color: var(--cream); }
.tl-desc { font-family: var(--f-text); font-size: 14.5px; line-height: 1.6; color: rgba(243, 234, 216, .66); }
.tl-count { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 500; color: var(--gold-bright); opacity: .85; }
.tl-item:hover .tl-dot { background: var(--gold-bright); transform: scale(1.25); }
.tl-item:hover .tl-num { color: var(--gold-bright); }
.tl-item:hover .tl-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(243, 234, 216, .4); }
@media (max-width: 960px) {
  .timeline { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .timeline::-webkit-scrollbar { display: none; }
  .timeline > li { flex: 0 0 min(76%, 300px); scroll-snap-align: start; }
  .timeline::before { left: var(--gutter); right: auto; width: calc(5 * min(76vw, 300px)); }
}

/* ---------- themes (arched niches) ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.theme-card {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 3 / 4.3;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--night-2); color: var(--cream);
  display: flex; align-items: flex-end; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.theme-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: opacity .6s var(--ease), transform .9s var(--ease); }
.theme-img-hover { opacity: 0; }
.theme-card:hover .theme-img { transform: scale(1.05); }
.theme-card:hover .theme-img-hover { opacity: 1; }
.theme-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 13, 9, 0) 35%, rgba(18, 13, 9, .9) 100%); }
.theme-card.no-image { background: linear-gradient(160deg, #8f3a23, #5c2414); }
.theme-card.no-image:nth-child(even) { background: linear-gradient(160deg, #2b241d, #15110d); }
.theme-card.no-image::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; background: var(--gold-bright);
  -webkit-mask: var(--meander) repeat 0 0 / 26px 26px; mask: var(--meander) repeat 0 0 / 26px 26px;
}
.theme-letter { position: absolute; top: 18%; left: 0; right: 0; text-align: center; font-family: var(--f-head); font-size: 130px; line-height: 1; color: var(--gold-bright); opacity: .85; }
.theme-body { padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.theme-name { font-family: var(--f-head); font-size: 26px; line-height: 1.08; }
.theme-desc { font-family: var(--f-text); font-size: 14px; line-height: 1.5; color: rgba(243, 234, 216, .78); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.theme-card:hover .theme-desc, .theme-card:focus-visible .theme-desc { max-height: 90px; opacity: 1; }
.theme-count { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-bright); }
@media (hover: none) { .theme-desc { max-height: none; opacity: 1; } }
@media (max-width: 640px) {
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .theme-name { font-size: 20px; }
  .theme-body { padding: 16px 14px; }
  .theme-desc { display: none; }
  .theme-letter { font-size: 90px; }
}

/* ---------- quote ---------- */
.quote-band { background: var(--bg-2); padding-block: 26px; }
.quote { text-align: center; padding-block: clamp(48px, 7vw, 84px); margin: 0 auto; max-width: 980px; }
.quote-greek { font-family: var(--f-head); font-style: italic; font-size: clamp(18px, 2vw, 22px); color: var(--gold); margin-bottom: 22px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--f-head); font-size: clamp(30px, 4.2vw, 50px); line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
.quote figcaption { margin-top: 26px; font-family: var(--f-caps); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- page header (lists, eras, search) ---------- */
.page-head { position: relative; border-bottom: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.page-head-inner { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(36px, 5vw, 56px); position: relative; }
.page-head h1 { font-size: clamp(44px, 6vw, 76px); letter-spacing: -.02em; line-height: 1.02; max-width: 16ch; text-wrap: balance; }
.page-intro { font-family: var(--f-text); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 640px; margin-top: 18px; }
.page-count { margin-top: 18px; font-size: 13.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.page-head.has-image .page-head-inner { padding-right: min(42%, 480px); min-height: 420px; }
.page-head-media { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); top: 40px; bottom: -2px; width: min(36%, 400px); border-radius: 999px 999px 0 0; overflow: hidden; }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }
.page-head-center { text-align: center; }
.page-head-center h1 { margin-inline: auto; }
.page-logo { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 6px var(--bg), 0 0 0 7px var(--line); }
@media (max-width: 760px) {
  .page-head.has-image .page-head-inner { padding-right: var(--gutter); min-height: 0; }
  .page-head-media { position: relative; right: auto; top: auto; width: 62%; max-width: 280px; aspect-ratio: 3 / 3.4; margin: 28px auto -1px; display: block; }
  .page-head.has-image { display: flex; flex-direction: column-reverse; }
}

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--accent); }

/* filter pills */
.pills { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 22px 0; margin-bottom: 26px; border-bottom: 1px solid var(--line); scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: all .2s; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pills-label { flex: none; font-family: var(--f-caps); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 4px 0 12px; }
.list-grid { padding-bottom: 24px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 40px 0 88px; }
.pager-info { font-size: 14px; color: var(--muted); }
.list-grid:last-child { padding-bottom: 96px; }

/* ---------- article ---------- */
.preview-bar { background: #f5d77a; color: #3b2d06; text-align: center; padding: 10px var(--gutter); font-size: 14px; }
.preview-bar a { text-decoration: underline; margin-left: 10px; font-weight: 600; }
.article-head { padding-top: clamp(36px, 6vw, 72px); text-align: center; }
.article-head .crumbs { justify-content: center; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.tag { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); transition: all .2s; }
.tag:hover { border-color: var(--ink); color: var(--ink); }
.tag-accent { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
.tag-accent:hover { color: var(--accent-2); border-color: transparent; }
.article-title { font-size: clamp(40px, 6vw, 72px); line-height: 1.03; letter-spacing: -.02em; margin: 22px auto 0; text-wrap: balance; }
.article-dek { font-family: var(--f-text); font-style: italic; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 680px; margin: 22px auto 0; text-wrap: pretty; }
.byline { display: flex; align-items: center; gap: 14px; text-align: left; max-width: 700px; margin: 34px auto 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--night); color: var(--gold-bright); display: grid; place-items: center; font-family: var(--f-caps); font-size: 15px; flex: none; }
.byline-name { display: block; font-weight: 600; font-size: 15px; }
.byline-meta { display: block; font-size: 13.5px; color: var(--muted); }
.share { margin-left: auto; display: flex; gap: 2px; }
.article-cover { margin: clamp(32px, 5vw, 56px) auto 0; }
.article-cover img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: var(--radius); background: var(--bg-2); }
.article-cover figcaption { font-size: 13.5px; color: var(--muted); margin-top: 12px; text-align: center; font-style: italic; }
@media (max-width: 640px) {
  .article-cover { padding-inline: 0; }
  .article-cover img { border-radius: 0; max-height: 64vh; }
  .article-cover figcaption { padding-inline: var(--gutter); }
  .byline { flex-wrap: wrap; }
  .share { margin-left: 0; width: 100%; justify-content: flex-start; margin-top: 4px; }
}

/* reading text */
.prose { font-family: var(--f-text); font-size: clamp(18px, 1.35vw, 19.5px); line-height: 1.78; color: var(--ink); padding-top: clamp(36px, 5vw, 56px); }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-child::first-letter {
  float: left; font-family: var(--f-head); font-size: 5.1em; line-height: .78; font-weight: 500;
  color: var(--accent); margin: .07em .1em 0 -.02em; padding-right: .04em;
}
.prose h2 { font-size: clamp(30px, 3vw, 36px); margin-top: 1.8em; line-height: 1.15; }
.prose h3 { font-size: 26px; margin-top: 1.6em; }
.prose h4 { font-family: var(--f-caps); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .55em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: 1.8em 0; padding: 1.1em 0 1.1em 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  font-family: var(--f-head); font-style: italic; font-size: clamp(25px, 2.6vw, 31px); line-height: 1.3; color: var(--ink); text-align: center; position: relative;
}
.prose blockquote::before { content: "“"; display: block; font-size: 2.2em; line-height: .5; color: var(--gold); margin-bottom: .1em; font-style: normal; }
.prose img { width: 100%; border-radius: var(--radius); margin-block: 1.8em .4em; background: var(--bg-2); }
.prose p:has(> img) { margin-top: 1.6em; }
.prose p:has(> img) + p > em:only-child, .prose figcaption { display: block; font-family: var(--f-ui); font-style: normal; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.prose p:has(> img) + p:has(> em:only-child) { margin-top: .5em; }
.prose iframe, .prose .ql-video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin-block: 1.8em; background: #000; }
.prose hr { border: 0; height: 12px; margin: 2.4em auto; max-width: 180px; background: var(--gold); -webkit-mask: var(--meander) repeat-x center / 12px 12px; mask: var(--meander) repeat-x center / 12px 12px; opacity: .7; }
.prose pre { background: var(--bg-2); padding: 1em; border-radius: var(--radius); overflow-x: auto; font-size: 15px; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 2em; }
.prose .ql-indent-2 { padding-left: 4em; }
.prose .ql-size-small { font-size: .85em; }
.prose .ql-size-large { font-size: 1.25em; }
.prose .ql-size-huge { font-size: 1.6em; }

.article-foot { padding-top: 56px; padding-bottom: 24px; }
.article-foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.article-foot .article-tags { justify-content: flex-start; }
.related { border-top: 1px solid var(--line); margin-top: 40px; }

/* simple pages */
.page-prose { padding-bottom: 40px; }
.page-prose > p:first-child::first-letter { float: none; font: inherit; color: inherit; margin: 0; padding: 0; }
.contact-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 96px; padding-block: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-email { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-head); font-size: 24px; color: var(--accent); }
.contact-email:hover { text-decoration: underline; text-underline-offset: 4px; }

/* explore timeline (vertical) */
.explore { padding-block: clamp(48px, 7vw, 88px) 24px; }
.vtimeline { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; position: relative; }
.vtimeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 200px; width: 1px; background: var(--line-2); }
.vt-item { display: grid; grid-template-columns: 168px 64px 1fr; align-items: start; gap: 0; padding-bottom: 28px; }
.vt-period { color: var(--gold); text-align: right; padding-top: 30px; padding-right: 8px; }
.vt-dot { width: 46px; height: 46px; margin: 14px auto 0; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--f-head); font-size: 22px; color: var(--gold); position: relative; z-index: 1; transition: background .25s, color .25s; }
.vt-card { display: block; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.vt-card h2 { font-size: 32px; }
.vt-card p { font-family: var(--f-text); font-size: 16.5px; line-height: 1.6; color: var(--ink-2); margin: 10px 0 14px; }
.vt-item:hover .vt-card { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateX(4px); }
.vt-item:hover .vt-dot { background: var(--gold); color: var(--bg); }
@media (max-width: 760px) {
  .vtimeline::before { left: 22px; }
  .vt-item { grid-template-columns: 46px 1fr; column-gap: 16px; }
  .vt-period { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 8px; }
  .vt-dot { grid-column: 1; grid-row: 1 / span 2; margin-top: 0; }
  .vt-card { grid-column: 2; grid-row: 2; padding: 20px; }
  .vt-card h2 { font-size: 26px; }
}

/* search */
.search-big { display: flex; gap: 10px; margin-top: 26px; max-width: 680px; }
.search-big input { flex: 1; min-width: 0; font: 400 20px var(--f-text); padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.search-big input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.row-list { padding-bottom: 96px; }
.search-dialog { border: 0; padding: 0; width: min(720px, calc(100vw - 32px)); margin: 12vh auto auto; background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); }
.search-dialog::backdrop { background: rgba(18, 13, 9, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-dialog form { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-dialog input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 24px var(--f-head); color: var(--ink); outline: none; }
.search-dialog .esc { border: 1px solid var(--line-2); background: transparent; border-radius: 6px; font-size: 12px; padding: 3px 8px; color: var(--muted); cursor: pointer; }
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 22px 20px; font-size: 14px; color: var(--muted); }
.search-suggest a { padding: 6px 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.search-suggest a:hover { color: var(--ink); }

/* empty and 404 */
.empty-state { text-align: center; padding: 72px 20px 96px; max-width: 560px; margin: 0 auto; }
.empty-state h2 { font-size: 36px; margin-bottom: 12px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; font-family: var(--f-text); }
.lost { text-align: center; padding: clamp(56px, 10vw, 120px) var(--gutter) 40px; }
.lost h1 { font-size: clamp(44px, 7vw, 80px); margin-bottom: 18px; }
.lost > p:not(.greek) { font-family: var(--f-text); font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 0 auto; }
.labyrinth { width: 120px; height: 120px; color: var(--gold); margin: 0 auto 26px; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: rgba(243, 234, 216, .78); margin-top: 0; }
.site-footer .meander { background: var(--gold-bright); opacity: .5; }
.meander-footer { height: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand .brand-logo { width: 52px; height: 52px; box-shadow: 0 0 0 1px rgba(243, 234, 216, .2); }
.footer-brand p { font-family: var(--f-text); font-size: 15px; line-height: 1.65; margin-top: 18px; max-width: 360px; }
.site-footer h3 { font-family: var(--f-caps); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { font-size: 15px; transition: color .2s; }
.site-footer ul a:hover { color: var(--cream); }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; opacity: .8; transition: opacity .2s, background .2s; }
.socials a:hover { opacity: 1; }
.site-footer .socials a { border-color: rgba(243, 234, 216, .25); }
.site-footer .socials a:hover { background: rgba(243, 234, 216, .1); }
.contact-card .socials { margin-top: 0; color: var(--ink-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 28px; border-top: 1px solid rgba(243, 234, 216, .12); font-size: 13.5px; color: rgba(243, 234, 216, .55); }
.footer-bottom a:hover { color: var(--cream); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* toast for "link copied" */
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 90; transition: opacity .25s, translate .25s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; translate: -50% 0; }

/* gentle fade-in when cards scroll into view */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .share, .related, .progress, .article-foot .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
