/* Taakora Éditions — stylesheet
   Paper & ink palette, Fraunces (display) + Instrument Sans (text) */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --card: #fffdf8;
  --ink: #1d1a16;
  --ink-2: #4a443b;
  --muted: #7a7266;
  --line: #ddd2bf;
  --accent: #b4532a;
  --accent-ink: #8f3d1b;
  --gold: #e9c38b;
  --ok: #2f6b4f;
  --err: #a8321c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 26, 22, .06), 0 8px 24px -12px rgba(29, 26, 22, .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.mt { margin-top: 2.5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 231, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--gold); font: italic 500 1.5rem/1 var(--serif); }
.brand-text { font: 400 1.25rem/1 var(--serif); }
.brand-text strong { font-weight: 600; }
.brand-text em { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.site-nav ul a { white-space: nowrap; text-decoration: none; color: var(--ink-2); font-size: .93rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { color: var(--ink); border-color: var(--accent); }
.lang-switch { text-decoration: none; font-size: .8rem; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.lang-switch b { color: var(--ink); }
.lang-switch:hover { border-color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
  .nav-toggle span:first-child::before { position: absolute; top: -6px; }
  .nav-toggle span:first-child::after { position: absolute; top: 6px; }
  .nav-open .nav-toggle span:first-child { background: transparent; }
  .nav-open .nav-toggle span:first-child::before { top: 0; transform: rotate(45deg); }
  .nav-open .nav-toggle span:first-child::after { top: 0; transform: rotate(-45deg); }
  .site-nav { position: fixed; inset: 72px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .lang-switch { margin-top: 16px; align-self: flex-start; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 500 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-small { padding: 8px 16px; font-size: .88rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; margin-top: 10px; }
.btn.is-loading { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.more { font-weight: 500; text-decoration: none; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 620px; }
.hero-shelf { display: flex; align-items: flex-end; gap: 8px; height: 380px; padding: 0 12px; border-bottom: 10px solid var(--ink); }
.spine { flex: 1; height: var(--h); background: var(--c); border-radius: 4px 4px 0 0; position: relative; display: flex; align-items: center; justify-content: center; box-shadow: inset -6px 0 0 rgba(0,0,0,.12), inset 2px 0 0 rgba(255,255,255,.12); transition: transform .3s; }
.spine:hover { transform: translateY(-10px); }
.spine::before, .spine::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.35); }
.spine::before { top: 14px; } .spine::after { bottom: 14px; }
.spine b { writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font: 500 .95rem/1 var(--serif); letter-spacing: .04em; white-space: nowrap; }
@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-shelf { height: 220px; }
  .spine b { font-size: .75rem; }
}

/* ---------- Bands & sections ---------- */
.band { background: var(--ink); color: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 34px; padding-bottom: 34px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font: 400 2.6rem/1 var(--serif); color: var(--gold); }
.stats span { font-size: .9rem; opacity: .8; margin-top: 6px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

.section { padding: 80px 0; }
.section-tight { padding: 40px 0 72px; }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.section-intro { color: var(--ink-2); max-width: 680px; margin-bottom: 36px; }
@media (max-width: 600px) { .section { padding: 56px 0; } }

.page-head { padding: 64px 0 24px; }
.page-head .lede { margin-top: 8px; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; margin-top: 32px; }
.pillar { border-top: 1px solid var(--ink); padding-top: 22px; }
.pillar p { color: var(--ink-2); }
.pillar-n { display: block; font: italic 400 1rem/1 var(--serif); color: var(--accent); margin-bottom: 14px; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 32px; counter-reset: step; }
.flow-step { padding: 26px 24px; border-left: 1px solid var(--line); position: relative; }
.flow-step:first-child { border-left: 0; padding-left: 0; }
.flow-step p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } .flow-step:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 540px) { .flow { grid-template-columns: 1fr; } .flow-step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

.callout { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: calc(var(--wrap) - 48px); }
.callout p { opacity: .8; margin: 0; max-width: 620px; }
.callout h2 { color: var(--paper); }
@media (max-width: 700px) { .callout { flex-direction: column; align-items: flex-start; padding: 32px 24px; margin: 0 16px; } }

/* ---------- Imprints ---------- */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 7px; vertical-align: 1px; }
.imprint-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .imprint-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .imprint-grid { grid-template-columns: 1fr; } }
.imprint-tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--card); border-radius: var(--radius); text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-top: 5px solid var(--c); transition: transform .2s, box-shadow .2s; min-height: 190px; }
.imprint-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.imprint-tile strong { font: 500 1.45rem/1.1 var(--serif); }
.imprint-domain { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--muted)); font-weight: 600; }
.imprint-region { font-size: .88rem; color: var(--muted); }
.imprint-tag { font-size: .95rem; color: var(--ink-2); margin-top: auto; }

.network { position: relative; height: 380px; margin: 10px auto 48px; max-width: 520px; }
.network::before { content: ""; position: absolute; inset: 50px; border: 1px dashed var(--line); border-radius: 50%; }
.network-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 128px; height: 128px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; text-align: center; font: 500 1.1rem/1.15 var(--serif); }
.network-core em { color: var(--gold); }
.network-node { position: absolute; left: 50%; top: 50%; transform: rotate(var(--a)) translateY(-140px) rotate(calc(-1 * var(--a))) translate(-50%, -50%); transform-origin: 0 0; background: var(--card); border: 2px solid var(--c); color: var(--ink); padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  .network { height: 300px; }
  .network::before { inset: 40px; }
  .network-core { width: 96px; height: 96px; font-size: .9rem; }
  .network-node { transform: rotate(var(--a)) translateY(-112px) rotate(calc(-1 * var(--a))) translate(-50%, -50%); font-size: .7rem; padding: 4px 8px; }
}

.imprint-list { display: grid; gap: 18px; }
.imprint-row { display: grid; grid-template-columns: 240px 1fr auto; gap: 32px; align-items: start; padding: 28px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: var(--radius); }
.imprint-row h2 { font-size: 1.7rem; margin: 4px 0; }
.imprint-row h2 a { color: var(--ink); text-decoration: none; }
.imprint-row h2 a:hover { color: var(--c); }
.imprint-row-body p:last-child { margin: 0; font-size: .9rem; }
.imprint-row-links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (max-width: 860px) { .imprint-row { grid-template-columns: 1fr; gap: 12px; } .imprint-row-links { flex-direction: row; align-items: center; } }

.imprint-head { background: var(--c); color: #fff; padding-bottom: 56px; }
.imprint-head .eyebrow { color: rgba(255,255,255,.85); }
.imprint-head .lede { color: rgba(255,255,255,.9); }
.crumbs-light a, .crumbs-light span { color: rgba(255,255,255,.85) !important; }

.two-col { display: grid; grid-template-columns: 1.4fr .9fr; gap: 56px; align-items: start; }
.two-col-wide { grid-template-columns: .8fr 1.6fr; }
@media (max-width: 900px) { .two-col, .two-col-wide { grid-template-columns: 1fr; gap: 32px; } }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }

/* ---------- Books ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 36px 28px; margin-top: 28px; }
.book-card { display: flex; flex-direction: column; }
.book-card-cover { display: block; text-decoration: none; transition: transform .25s; }
.book-card-cover:hover { transform: translateY(-4px) rotate(-.6deg); }
.book-card-body { padding-top: 16px; }
.book-card h3 { font-size: 1.2rem; margin: 6px 0 4px; }
.book-card h3 a { color: var(--ink); text-decoration: none; }
.book-card h3 a:hover { color: var(--accent); }
.book-author { margin: 0 0 6px; color: var(--ink-2); font-style: italic; font-family: var(--serif); }
.book-meta { font-size: .82rem; color: var(--muted); margin: 0; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.badge { display: inline-block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.badge-sample { background: transparent; color: var(--accent-ink); border: 1px dashed var(--accent); }

.cover { aspect-ratio: 2 / 3; width: 100%; border-radius: 3px 8px 8px 3px; box-shadow: 0 2px 4px rgba(0,0,0,.12), 10px 16px 30px -14px rgba(29,26,22,.5); object-fit: cover; background: var(--paper-2); }
.cover-type { --c: #7a2e1f; background: var(--c); color: #fff; position: relative; display: flex; flex-direction: column; padding: 11% 12%; overflow: hidden; }
.cover-type::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,0)); }
.cover-type::after { content: ""; position: absolute; inset: 6%; border: 1px solid rgba(255,255,255,.35); pointer-events: none; }
.cover-imprint { font: 600 .62rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.cover-title { font: 400 1.5rem/1.08 var(--serif); margin-top: auto; margin-bottom: 10px; text-wrap: balance; }
.cover-author { font: italic 400 .85rem/1.2 var(--serif); opacity: .9; }
.cover-mark { position: absolute; right: 10%; top: 9%; font: italic 400 1.1rem/1 var(--serif); color: var(--gold); }
.cover-lg .cover-title { font-size: 2.3rem; }
.cover-lg .cover-imprint { font-size: .75rem; }
.cover-lg .cover-author { font-size: 1.05rem; }

.book-detail { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 64px; align-items: start; }
.book-detail-cover { position: sticky; top: 100px; }
.book-detail h1 { margin-top: 10px; margin-bottom: 4px; }
.subtitle { font: italic 400 1.2rem/1.4 var(--serif); color: var(--ink-2); }
.byline { font-size: 1.05rem; margin-bottom: 26px; }
@media (max-width: 800px) { .book-detail { grid-template-columns: 1fr; gap: 32px; } .book-detail-cover { position: static; max-width: 280px; } }

.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.specs > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.specs dd { margin: 4px 0 0; }
.specs a { text-decoration: none; color: var(--ink); }
.specs-stack { grid-template-columns: 1fr; margin: 0 0 14px; }
.note { font-size: .95rem; color: var(--ink-2); background: var(--paper-2); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0; margin-top: 22px; }
.also { margin-top: 20px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { display: inline-block; padding: 4px 12px; border: 1px solid var(--c); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .85rem; }
.chip:hover { background: var(--c); color: #fff; }
.excerpt { font: italic 400 1.25rem/1.6 var(--serif); margin: 0; padding-left: 26px; border-left: 3px solid var(--accent); }
.prose p { font-size: 1.08rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.crumbs { padding-top: 28px; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- Authors ---------- */
.author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.author-card { display: flex; gap: 18px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.author-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.author-card-body { display: flex; flex-direction: column; gap: 3px; font-size: .92rem; }
.author-card-body strong { font: 500 1.25rem/1.2 var(--serif); }
.author-card .badge-sample { align-self: flex-start; margin-top: 6px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initials { display: grid; place-items: center; background: var(--ink); color: var(--gold); font: italic 400 1.5rem/1 var(--serif); }
.avatar-lg { width: 180px; height: 180px; font-size: 3.4rem; }
.author-detail { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
@media (max-width: 700px) { .author-detail { grid-template-columns: 1fr; gap: 24px; } .avatar-lg { width: 120px; height: 120px; font-size: 2.4rem; } }

/* ---------- Filters & forms ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.filters .field { margin: 0; }
.field-grow { flex: 1 1 260px; }
.result-count { margin: 20px 0 0; color: var(--muted); font-size: .9rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
.filters input, .filters select { background: var(--paper); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(180, 83, 42, .18); }
textarea { resize: vertical; min-height: 110px; }
input[type=file] { padding: 10px; background: var(--paper); }
input[type=radio], input[type=checkbox] { width: auto; accent-color: var(--accent); }

.form fieldset { border: 0; padding: 0; margin: 0 0 32px; }
.form legend { font: 500 1.4rem/1.2 var(--serif); margin-bottom: 18px; padding: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field label, .field .label { font-size: .9rem; font-weight: 500; }
.req { color: var(--accent); }
.hint { color: var(--muted); font-size: .82rem; }
.error { color: var(--err); font-size: .85rem; font-weight: 500; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
.radios { display: flex; gap: 22px; }
.radios label, .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.check input { margin-top: 5px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: #f8e3dc; color: var(--err); border: 1px solid #e9b9aa; padding: 12px 16px; border-radius: 10px; margin-bottom: 24px; font-weight: 500; }
.success { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--ok); border-radius: var(--radius); padding: 36px; }
.empty { text-align: center; padding: 60px 24px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 28px; }
.empty p { color: var(--ink-2); }

.guidelines { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.guidelines h2 { font-size: 1.4rem; }
.guidelines h3 { font-size: 1.1rem; margin-top: 1.4em; }
.guidelines ol { padding-left: 20px; margin: 0 0 8px; }
.guidelines li { margin-bottom: 10px; color: var(--ink-2); font-size: .95rem; }
.guidelines li::marker { color: var(--accent); font-family: var(--serif); font-style: italic; }
@media (max-width: 900px) { .guidelines { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246, 241, 231, .78); margin-top: 0; padding-top: 64px; font-size: .93rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.brand-light { color: var(--paper); margin-bottom: 18px; }
.brand-light .brand-mark { background: var(--paper); color: var(--ink); }
.brand-light .brand-text em { color: var(--gold); }
.footer-h { font: 600 .75rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 18px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.social { list-style: none; display: flex; gap: 14px; padding: 0; margin: 20px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(246,241,231,.14); padding-top: 22px; padding-bottom: 28px; font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .filters, .actions { display: none; } body { background: #fff; } }
@media (max-width: 560px) {
  .book-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .cover-title { font-size: 1.1rem; }
  .author-grid { grid-template-columns: 1fr; }
}

/* ---------- Source (Akan / Tano) ---------- */
.source { background: #12312a; color: #eef0e6; padding: 88px 0; position: relative; overflow: hidden; }
.source h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.source p { color: rgba(238, 240, 230, .86); font-size: 1.08rem; max-width: 640px; }
.source-grid { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.eyebrow-light { color: var(--gold); }
.more-light { color: var(--gold); }
.more-light:hover { color: #fff; }
.source-art { position: relative; width: 300px; aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.source-art span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(233, 195, 139, .55); animation: ripple 7s linear infinite; opacity: 0; }
.source-art span:nth-child(2) { animation-delay: 1.75s; }
.source-art span:nth-child(3) { animation-delay: 3.5s; }
.source-art span:nth-child(4) { animation-delay: 5.25s; }
.source-art b { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #f3d9ae, #c79a52); color: #12312a; font: italic 500 1.3rem/1 var(--serif); box-shadow: 0 0 60px rgba(233, 195, 139, .35); }
@keyframes ripple { 0% { transform: scale(.3); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@media (max-width: 860px) { .source { padding: 64px 0; } .source-grid { grid-template-columns: 1fr; gap: 32px; } .source-art { width: 200px; } .source-art b { width: 70px; height: 70px; font-size: 1.05rem; } }
@media (prefers-reduced-motion: reduce) { .source-art span { animation: none; opacity: .5; } .source-art span:nth-child(1) { transform: scale(.45); } .source-art span:nth-child(2) { transform: scale(.65); } .source-art span:nth-child(3) { transform: scale(.85); } }

/* ---------- Editorial line ---------- */
.lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .lines { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lines { grid-template-columns: 1fr; } }
.line-card { display: block; padding: 26px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.line-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); color: var(--ink); }
.line-card p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.line-list { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.line-row { display: grid; grid-template-columns: 90px 1fr 220px; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.line-n { font: italic 300 3.2rem/1 var(--serif); color: var(--accent); }
.line-row h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.line-lead { font: 400 1.2rem/1.55 var(--serif); color: var(--ink); max-width: 720px; }
.line-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 8px; }
@media (max-width: 800px) { .line-row { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; } .line-n { font-size: 2.2rem; } .line-links { flex-direction: row; align-items: center; } }
.tag-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.tag-list a:hover { border-color: var(--ink); }

/* ---------- Ecosystem ---------- */
.eco { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 18px; }
@media (max-width: 900px) { .eco { grid-template-columns: 1fr; } }
.eco-card { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.eco-card h3 { font-size: 1.5rem; }
.eco-card > p { color: var(--ink-2); }
.eco-network { --c: var(--accent) !important; }
.eco-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
.eco-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.group-head { margin: 48px 0 18px; max-width: 760px; }
.group-head:first-of-type { margin-top: 8px; }
.group-head h2 { margin-bottom: 6px; }
.imprint-row h3 { font-size: 1.7rem; margin: 4px 0; }
.imprint-row h3 a { color: var(--ink); text-decoration: none; }
.imprint-row h3 a:hover { color: var(--c); }
.eco-list { padding-left: 20px; }
.eco-list li { margin-bottom: 12px; font-size: 1.05rem; }

.callout-quote { font: italic 400 clamp(1.3rem, 2.4vw, 1.75rem)/1.35 var(--serif); color: var(--paper) !important; opacity: 1 !important; margin-bottom: 14px !important; }

/* ---------- Tano: scarlet river waves ---------- */
:root {
  --tano: #c8102e;        /* scarlet */
  --tano-light: #e8364a;
  --tano-deep: #8f0b20;
}
.tano-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; overflow: hidden; pointer-events: none; z-index: 1; }
.tano-wave-sm { height: 56px; }
.tano-wave svg { display: block; width: 100%; height: 100%; }
.tano-wave path { animation: tano-flow 16s linear infinite; will-change: transform; }
.tano-wave .w-back  { fill: #f2a2ab; opacity: .95; animation-duration: 26s; animation-delay: -7s; }
.tano-wave .w-mid   { fill: var(--tano-light); opacity: 1; animation-duration: 18s; animation-delay: -3s; }
.tano-wave .w-crest { fill: var(--tano); opacity: 1; animation-duration: 12s; }
.tano-wave .w-front { fill: var(--next, var(--paper)); animation-duration: 9s; animation-direction: reverse; }
@keyframes tano-flow { from { transform: translateX(-1440px); } to { transform: translateX(0); } }
@media (max-width: 700px) { .tano-wave { height: 72px; } .tano-wave-sm { height: 36px; } }

/* sections that carry a wave at their bottom */
.has-wave { position: relative; }
.hero.has-wave { padding-bottom: 150px; }
.source.has-wave { padding-bottom: 160px; }
.page-head.has-wave { padding-bottom: 72px; }
.has-wave > .wrap { position: relative; z-index: 2; }
@media (max-width: 700px) { .hero.has-wave { padding-bottom: 96px; } .source.has-wave { padding-bottom: 104px; } .page-head.has-wave { padding-bottom: 52px; } }

/* footer: the river flows into it, overlapping the section above */
.site-footer { position: relative; }
.tano-wave-footer { bottom: 100%; margin-bottom: -1px; }
main { padding-bottom: 48px; }
body.page-home main, body.page-about main { padding-bottom: 56px; }

/* the source rings take the river's colour */
.source-art span { border-color: rgba(232, 54, 74, .7); border-width: 1.5px; }
.source-art::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 60%; transform-origin: top; transform: translateX(-50%); background: linear-gradient(var(--tano-light), transparent); opacity: .7; }
.source-art b { position: relative; z-index: 1; }

/* thin scarlet current under the header, on every page */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 6px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='6' viewBox='0 0 120 6'%3E%3Cpath d='M0 3 Q15 0 30 3 T60 3 T90 3 T120 3' fill='none' stroke='%23c8102e' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 6px;
  animation: tano-line 6s linear infinite; opacity: .85;
}
@keyframes tano-line { to { background-position-x: 120px; } }

@media (prefers-reduced-motion: reduce) {
  .tano-wave path, .site-header::after { animation: none !important; }
}

.source .tano-wave .w-back { fill: var(--tano-deep); }
