:root {
  --bg: #05050a;
  --bg-deep: #020205;
  --surface: #0c0b12;
  --surface-2: #12101a;
  --surface-3: #191522;
  --paper: #f2eadf;
  --text: #f7f1e9;
  --muted: #b6aeb9;
  --faint: #77717d;
  --violet: #a68bff;
  --violet-soft: #d2c7ff;
  --crimson: #cf4d5c;
  --crimson-deep: #6d1e30;
  --gold: #d8b66c;
  --ice: #b9d9ef;
  --line: rgba(242,234,223,.14);
  --line-strong: rgba(242,234,223,.28);
  --shadow: 0 28px 90px rgba(0,0,0,.52);
  --radius: 28px;
  --radius-sm: 16px;
  --max: 1240px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  background:
    radial-gradient(circle at var(--mx, 76%) var(--my, 10%), rgba(166,139,255,.16), transparent 28rem),
    radial-gradient(circle at 8% 30%, rgba(207,77,92,.11), transparent 34rem),
    linear-gradient(180deg, #090811 0%, var(--bg) 38%, var(--bg-deep) 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .36;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.08) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.055) 0 1px, transparent 1.4px),
    radial-gradient(circle at 30% 80%, rgba(255,255,255,.045) 0 1px, transparent 1.4px);
  background-size: 180px 180px, 240px 240px, 310px 310px;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(166,139,255,.35); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: .8rem 1rem;
  background: var(--paper);
  color: #090811;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 840px); margin-inline: auto; }
.section { padding: clamp(4.8rem, 8vw, 8rem) 0; position: relative; }
.section.compact { padding: 4rem 0; }
.section-title { margin: 0 0 1rem; font: 700 clamp(2.3rem, 5vw, 4.8rem)/.98 var(--serif); letter-spacing: -.045em; }
.section-kicker, .eyebrow {
  color: var(--violet-soft);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .7rem;
  font-weight: 850;
}
.section-lead { max-width: 760px; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.22rem); }
.rule { width: 110px; height: 1px; background: linear-gradient(90deg, var(--violet), var(--crimson), transparent); margin: 1.5rem 0 2rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .section-lead, .center .rule { margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(5,5,10,.72);
  border-bottom: 1px solid rgba(242,234,223,.08);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(166,139,255,.5), rgba(207,77,92,.35), transparent); opacity: .55; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; font-family: var(--serif); font-weight: 700; letter-spacing: .12em; }
.brand img { width: 44px; height: 44px; }
.brand-mark { border-radius: 50%; object-fit: cover; border: 1px solid rgba(216,182,108,.3); box-shadow: 0 0 26px rgba(166,139,255,.12); }
.brand span small { display: block; color: #958ba5; font: 700 .58rem/1.15 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin-top: .16rem; }
.site-nav { display: flex; align-items: center; gap: 1.15rem; }
.site-nav a { text-decoration: none; color: #d8d1dc; font-size: .88rem; font-weight: 680; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.42rem; height: 1px; background: linear-gradient(90deg, var(--violet), var(--crimson)); transition: right .24s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.nav-cta { border: 1px solid rgba(166,139,255,.28); padding: .68rem 1rem; border-radius: 999px; background: rgba(166,139,255,.055); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: 14px; }
.nav-toggle span { display: block; height: 1px; width: 22px; background: currentColor; margin: 5px auto; }

.hero { min-height: calc(100svh - 78px); display: grid; align-items: center; padding: 5rem 0 6rem; overflow: hidden; position: relative; }
.hero::before { content: "ARCHIVO / 01"; position: absolute; right: -1rem; top: 6rem; color: rgba(242,234,223,.035); font: 800 clamp(7rem, 20vw, 18rem)/1 var(--sans); letter-spacing: -.08em; white-space: nowrap; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; position: relative; z-index: 1; }
.hero h1 { margin: .85rem 0 1.4rem; font: 700 clamp(4rem, 8.6vw, 8.2rem)/.84 var(--serif); letter-spacing: -.065em; max-width: 880px; }
.hero h1 span { display: block; color: var(--paper); text-shadow: 0 0 44px rgba(166,139,255,.15); }
.hero h1 em { display: block; color: var(--violet-soft); font-style: italic; font-weight: 400; }
.hero-copy { color: #c8c0cc; font-size: clamp(1.05rem, 1.7vw, 1.25rem); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2rem 0 1.2rem; }
.hero-note { color: #8e8694; font-size: .9rem; max-width: 650px; }
.hero-visual { position: relative; min-height: 650px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: min(44vw, 560px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(166,139,255,.16); box-shadow: inset 0 0 0 48px rgba(166,139,255,.016), 0 0 90px rgba(166,139,255,.07); }
.hero-orbit { position: absolute; width: min(42vw, 520px); aspect-ratio: 1; border: 1px dashed rgba(242,234,223,.12); border-radius: 50%; animation: rotate 46s linear infinite; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 24px currentColor; }
.hero-orbit::before { top: 9%; left: 20%; color: var(--violet); background: currentColor; }
.hero-orbit::after { right: 4%; bottom: 28%; color: var(--crimson); background: currentColor; }
.hero-card { position: absolute; right: -1rem; bottom: 2%; width: 270px; background: rgba(9,8,16,.9); border: 1px solid rgba(242,234,223,.14); border-radius: 18px; padding: 1rem 1.1rem; box-shadow: var(--shadow); backdrop-filter: blur(15px); }
.hero-card strong { display: block; font-family: var(--serif); color: var(--paper); }
.hero-card span { color: var(--muted); font-size: .82rem; }

.hero-cover-stack { position: relative; width: min(92%, 560px); height: 610px; display: grid; place-items: center; }
.hero-cover { position: absolute; width: min(62%, 320px); aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 38px 85px rgba(0,0,0,.7); }
.hero-cover-es { z-index: 4; transform: translate(-16%, 2%) rotate(-3deg); }
.hero-cover-en { z-index: 2; transform: translate(37%, -7%) rotate(6deg); opacity: .66; filter: saturate(.65) brightness(.72); }
.hero-cover-letters { z-index: 3; transform: translate(36%, -5%) rotate(5deg); opacity: .9; }
.hero-heraldic-seal { position: absolute; z-index: 6; width: 118px; height: 118px; object-fit: cover; border-radius: 50%; right: -1%; bottom: 1%; border: 1px solid rgba(216,182,108,.42); box-shadow: 0 20px 55px rgba(0,0,0,.65), 0 0 36px rgba(166,139,255,.12); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 49px; padding: .8rem 1.2rem; border-radius: 999px; text-decoration: none; border: 1px solid transparent; font-weight: 820; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #0b0910; background: linear-gradient(135deg, var(--paper), #d8c8ff 72%, #b399ff); box-shadow: 0 14px 38px rgba(166,139,255,.17); }
.btn-secondary { border-color: rgba(242,234,223,.18); background: rgba(255,255,255,.025); color: var(--text); }
.btn-secondary:hover { border-color: rgba(166,139,255,.42); background: rgba(166,139,255,.07); }
.btn-tertiary { color: var(--violet-soft); padding-inline: .25rem; }

.stats-strip { border-block: 1px solid rgba(242,234,223,.09); background: rgba(255,255,255,.012); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 1.45rem 2rem; text-align: center; border-right: 1px solid rgba(242,234,223,.08); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 700 1.35rem var(--serif); color: var(--paper); }
.stat span { color: #8f8794; font-size: .82rem; }

.books-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; margin-top: 3rem; }
.book-card { display: grid; grid-template-columns: minmax(180px, .72fr) 1.28fr; gap: 2rem; align-items: center; padding: 1.7rem; border: 1px solid rgba(242,234,223,.12); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,16,26,.92), rgba(7,6,11,.94)); box-shadow: var(--shadow); overflow: hidden; position: relative; isolation: isolate; }
.book-card::before { content: ""; position: absolute; inset: auto -12% -40% 30%; height: 70%; background: radial-gradient(circle, rgba(166,139,255,.16), transparent 64%); z-index: -1; }
.book-card:nth-child(2)::before { background: radial-gradient(circle, rgba(207,77,92,.16), transparent 64%); }
.book-cover { border-radius: 4px; box-shadow: 0 24px 55px rgba(0,0,0,.56); aspect-ratio: 2/3; object-fit: cover; transform: perspective(1000px) rotateY(3deg); transition: transform .35s ease, filter .35s ease; }
.book-card:hover .book-cover { transform: perspective(1000px) rotateY(0deg) translateY(-5px); filter: saturate(1.05); }
.book-card h3 { margin: .45rem 0 .8rem; font: 700 clamp(1.7rem, 2.8vw, 2.7rem)/1.02 var(--serif); letter-spacing: -.03em; }
.book-card p { color: var(--muted); }
.book-byline { font-size: .86rem; }
.badges { display: flex; flex-wrap: wrap; gap: .48rem; margin: 1rem 0; }
.badge { display: inline-flex; align-items: center; border: 1px solid rgba(166,139,255,.26); color: #d7ceff; background: rgba(166,139,255,.065); padding: .28rem .62rem; border-radius: 999px; font-size: .72rem; font-weight: 760; }
.badge.spoiler { border-color: rgba(207,77,92,.36); color: #f0b9c0; background: rgba(207,77,92,.07); }
.badge.safe { border-color: rgba(185,217,239,.32); color: #c9e5f6; background: rgba(185,217,239,.055); }
.card-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.35rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.feature-card, .value-card { padding: 1.5rem; border-radius: 18px; border: 1px solid rgba(242,234,223,.1); background: rgba(14,12,20,.72); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, rgba(166,139,255,.16), rgba(207,77,92,.09)); color: var(--violet-soft); margin-bottom: 1rem; }
.feature-card h3, .value-card h3 { margin: 0 0 .45rem; font: 700 1.35rem var(--serif); }
.feature-card p, .value-card p { color: var(--muted); margin: 0; font-size: .91rem; }

.archive-preview { overflow: hidden; }
.archive-shell { margin-top: 3rem; border: 1px solid rgba(242,234,223,.12); border-radius: 26px; background: rgba(6,5,10,.84); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.archive-shell::after { content: "PUBLIC / PUBLISHED"; position: absolute; right: 1rem; bottom: .7rem; color: rgba(242,234,223,.04); font: 900 clamp(3rem, 7vw, 7rem)/1 var(--sans); pointer-events: none; }
.archive-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.archive-dots { display: flex; gap: .4rem; }
.archive-dots span { width: 8px; height: 8px; border-radius: 50%; background: #35313d; }
.archive-dots span:nth-child(1) { background: var(--crimson); }
.archive-dots span:nth-child(2) { background: var(--violet); }
.archive-dots span:nth-child(3) { background: var(--ice); }
.archive-status { color: #8c8491; font: 780 .68rem var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.archive-tile { min-height: 210px; padding: 1.45rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.archive-tile:hover { background: rgba(166,139,255,.05); transform: translateY(-2px); }
.archive-tile:nth-child(4n) { border-right: 0; }
.archive-tile h3 { margin: 1.4rem 0 .45rem; font: 700 1.4rem var(--serif); }
.archive-tile p { color: var(--muted); font-size: .87rem; margin: 0; }
.archive-code { color: var(--violet-soft); font: 800 .68rem/1 var(--sans); letter-spacing: .15em; }

.quote-section { background: linear-gradient(90deg, rgba(207,77,92,.075), rgba(166,139,255,.07)); border-block: 1px solid rgba(242,234,223,.08); }
.quote { margin: 0; font: italic 400 clamp(1.8rem, 3.8vw, 3.3rem)/1.22 var(--serif); color: #e9e0e8; max-width: 980px; }
.quote footer { font: 750 .72rem var(--sans); color: var(--violet-soft); text-transform: uppercase; letter-spacing: .18em; margin-top: 1.1rem; }

.reading-path { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem; align-items: center; margin-top: 2.5rem; }
.reading-step { min-height: 210px; padding: 1.7rem; border: 1px solid rgba(242,234,223,.11); border-radius: 20px; background: linear-gradient(145deg, rgba(17,15,24,.82), rgba(8,7,12,.9)); }
.reading-step .number { font: 900 3.5rem/1 var(--serif); color: rgba(166,139,255,.28); }
.reading-step h3 { margin: .3rem 0 .55rem; font: 700 1.6rem var(--serif); }
.reading-step p { color: var(--muted); }
.reading-arrow { color: var(--violet); font-size: 2rem; }

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem; border: 1px solid rgba(242,234,223,.12); border-radius: 24px; background: linear-gradient(145deg, rgba(166,139,255,.08), rgba(207,77,92,.06)); }
.newsletter h2 { margin-top: 0; font: 700 2rem var(--serif); }
.newsletter p { color: var(--muted); }
.newsletter-form { display: flex; gap: .7rem; align-items: center; }
.newsletter-form input, .search-box { border: 1px solid rgba(242,234,223,.15); background: rgba(5,5,10,.72); color: var(--text); outline: none; }
.newsletter-form input { flex: 1; min-width: 0; min-height: 50px; border-radius: 999px; padding: 0 1rem; }
.newsletter-form input:focus, .search-box:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(166,139,255,.08); }
.form-note { color: #77717e; font-size: .76rem; margin-top: .7rem; }

.page-hero { padding: 7rem 0 4.5rem; border-bottom: 1px solid rgba(242,234,223,.08); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(166,139,255,.09); filter: blur(90px); right: -120px; top: -220px; }
.page-hero::after { content: "INDEX"; position: absolute; right: 1rem; bottom: -1.1rem; color: rgba(242,234,223,.035); font: 900 clamp(5rem, 13vw, 11rem)/1 var(--sans); letter-spacing: -.08em; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin: .7rem 0 1rem; font: 700 clamp(3.3rem, 7vw, 6.8rem)/.91 var(--serif); letter-spacing: -.055em; max-width: 980px; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.breadcrumbs { color: #756e7c; font-size: .81rem; }
.breadcrumbs a { color: var(--violet-soft); text-decoration: none; }

.book-detail { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.book-cover-column { position: sticky; top: 110px; }
.book-detail .book-cover { transform: none; width: 100%; }
.cover-language { display: flex; justify-content: center; margin-top: 1rem; }
.book-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; margin: 2rem 0; }
.meta-item { padding: 1rem; border: 1px solid rgba(242,234,223,.1); border-radius: 14px; background: rgba(255,255,255,.018); }
.meta-item span { display: block; color: #807889; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; }
.meta-item strong { font-family: var(--serif); color: var(--paper); }
.prose h2, .prose h3 { font-family: var(--serif); line-height: 1.12; }
.prose h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-top: 2.8rem; }
.prose h3 { font-size: 1.35rem; margin-top: 2rem; }
.prose p, .prose li { color: #c2bac5; }
.prose blockquote { margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 2px solid var(--violet); background: linear-gradient(90deg, rgba(166,139,255,.07), transparent); font: italic 1.3rem var(--serif); color: #e9e1ec; }
.prose ul { padding-left: 1.15rem; }
.edition-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.2rem 0 2rem; }
.editions-section { border-block: 1px solid rgba(242,234,223,.08); background: rgba(255,255,255,.008); }
.edition-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.edition-card { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(12,10,17,.88); box-shadow: var(--shadow); }
.edition-images { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; padding: 1rem; background: rgba(0,0,0,.28); }
.edition-images img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; box-shadow: 0 18px 42px rgba(0,0,0,.42); }
.edition-copy { padding: 1.35rem; }
.edition-copy h3 { margin: .45rem 0 .25rem; font: 700 1.6rem var(--serif); }
.edition-copy p { color: var(--muted); }
.heraldic-band { border-block: 1px solid rgba(242,234,223,.08); }
.heraldic-panel { display: grid; grid-template-columns: 140px 1fr; gap: 2rem; align-items: center; padding: 1.5rem; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.012); }
.heraldic-panel img { width: 130px; border-radius: 50%; box-shadow: 0 0 48px rgba(166,139,255,.08); }
.heraldic-panel h2 { margin: .3rem 0 .45rem; font: 700 2rem var(--serif); }
.heraldic-panel p { color: var(--muted); margin: 0; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0 2.5rem; }
.filter-btn { border: 1px solid var(--line); background: rgba(255,255,255,.015); color: #cbc3ce; border-radius: 999px; padding: .62rem .92rem; font-weight: 720; }
.filter-btn.active, .filter-btn:hover { background: rgba(166,139,255,.1); color: var(--violet-soft); border-color: rgba(166,139,255,.35); }
.lore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.lore-card { padding: 1.45rem; min-height: 260px; border-radius: 18px; border: 1px solid rgba(242,234,223,.1); background: linear-gradient(145deg, rgba(18,15,25,.8), rgba(7,6,11,.88)); transition: transform .2s ease, border-color .2s ease, background .2s ease; position: relative; overflow: hidden; }
.lore-card::after { content: attr(data-canon-id); position: absolute; right: .8rem; bottom: -.35rem; color: rgba(242,234,223,.035); font: 900 2.7rem var(--sans); pointer-events: none; }
.lore-card:hover { transform: translateY(-4px); border-color: rgba(166,139,255,.32); background: linear-gradient(145deg, rgba(26,21,36,.82), rgba(8,7,13,.92)); }
.lore-card[hidden] { display: none; }
.lore-card h2 { font: 700 1.7rem var(--serif); margin: .9rem 0 .45rem; }
.lore-card p { color: var(--muted); font-size: .91rem; }
.lore-card a { color: var(--violet-soft); text-decoration: none; font-weight: 740; position: relative; z-index: 1; }
.search-box { width: 100%; max-width: 520px; min-height: 50px; border-radius: 999px; padding: 0 1rem; }

.timeline { position: relative; margin: 3rem 0; }
.timeline::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--violet), rgba(207,77,92,.35), transparent); }
.timeline-item { position: relative; padding-left: 78px; margin-bottom: 2.5rem; }
.timeline-dot { position: absolute; left: 11px; top: 3px; width: 31px; height: 31px; border: 1px solid rgba(166,139,255,.5); border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--violet-soft); font-size: .72rem; }
.timeline-item h2 { margin: 0; font: 700 1.7rem var(--serif); }
.timeline-item p { color: var(--muted); }

.author-story { display: grid; grid-template-columns: .82fr 1.18fr; gap: 3rem; align-items: center; }
.author-mark { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(242,234,223,.1); background: radial-gradient(circle, rgba(166,139,255,.12), rgba(207,77,92,.05) 40%, transparent 72%); }
.author-mark img { width: 62%; }
.values-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 2rem; }

.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; }
.post-card { border-radius: 20px; overflow: hidden; border: 1px solid rgba(242,234,223,.1); background: rgba(12,10,17,.78); }
.post-visual { aspect-ratio: 16/10; background: radial-gradient(circle at 70% 25%, rgba(166,139,255,.22), transparent 23%), linear-gradient(145deg, #191424, #12090e); position: relative; }
.post-visual::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(210,199,255,.6); font-size: 3.5rem; }
.post-body { padding: 1.3rem; }
.post-body h2 { margin: .4rem 0 .6rem; font: 700 1.45rem var(--serif); }
.post-body p { color: var(--muted); font-size: .9rem; }
.post-meta { color: var(--violet-soft); text-transform: uppercase; letter-spacing: .13em; font-size: .67rem; font-weight: 820; }

.cta-panel { padding: 2rem; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(166,139,255,.08), rgba(207,77,92,.07)); display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.cta-panel h2 { margin: 0 0 .35rem; font: 700 2rem var(--serif); }
.cta-panel p { margin: 0; color: var(--muted); }

.site-footer { padding: 4rem 0 2rem; border-top: 1px solid rgba(242,234,223,.09); background: rgba(2,2,5,.82); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 2rem; }
.footer-brand p { max-width: 390px; color: #8e8792; font-size: .88rem; }
.footer-col h2 { font: 700 1rem var(--serif); color: var(--paper); }
.footer-col a { display: block; text-decoration: none; color: #948c99; margin: .45rem 0; font-size: .86rem; }
.footer-col a:hover { color: var(--violet-soft); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(242,234,223,.07); color: #66606c; font-size: .75rem; }
.notice { border: 1px solid rgba(166,139,255,.23); background: rgba(166,139,255,.055); border-radius: 14px; padding: 1rem 1.1rem; color: #d8d0e0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes rotate { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .site-nav { position: fixed; inset: 78px 0 auto; padding: 1rem; background: rgba(5,5,10,.97); border-bottom: 1px solid var(--line); display: grid; transform: translateY(-130%); opacity: 0; pointer-events: none; transition: .25s ease; }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: .7rem .6rem; }
  .nav-toggle { display: block; }
  .hero-grid, .newsletter, .author-story { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { min-height: 540px; }
  .hero-orbit { width: min(80vw, 500px); }
  .books-grid { grid-template-columns: 1fr; }
  .feature-grid, .posts-grid { grid-template-columns: repeat(2,1fr); }
  .archive-grid { grid-template-columns: repeat(2,1fr); }
  .archive-tile:nth-child(2n) { border-right: 0; }
  .lore-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 720px) {
  .section { padding: 4.5rem 0; }
  .hero { padding-top: 3.5rem; }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 5.9rem); }
  .hero-visual { min-height: 420px; }
  .hero-cover-stack { height: 420px; }
  .hero-cover { width: min(60%, 245px); }
  .hero-heraldic-seal { width: 88px; height: 88px; }
  .hero-card { width: 215px; right: .5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(242,234,223,.08); }
  .stat:last-child { border-bottom: 0; }
  .book-card { grid-template-columns: 1fr; }
  .book-cover { width: min(74%, 320px); margin-inline: auto; transform: none; }
  .feature-grid, .posts-grid, .lore-grid, .values-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-tile { border-right: 0; }
  .reading-path { grid-template-columns: 1fr; }
  .reading-arrow { transform: rotate(90deg); text-align: center; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .book-detail { grid-template-columns: 1fr; }
  .book-cover-column { position: static; }
  .book-detail .book-cover { width: min(74%, 360px); margin-inline: auto; }
  .book-meta { grid-template-columns: 1fr; }
  .edition-grid { grid-template-columns: 1fr; }
  .heraldic-panel { grid-template-columns: 90px 1fr; gap: 1rem; }
  .heraldic-panel img { width: 88px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom, .cta-panel { flex-direction: column; align-items: flex-start; }
  .archive-toolbar { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
