/* ━━━━━━━━━━━━━━━━━━━━━━ DESIGN TOKENS ━━━━━━━━━━━━━━━━━━━━━ */

:root {
  --navy: #0F1B3D;
  --navy-deep: #0A1230;
  --navy-soft: #1B2754;
  --blush: #E8C4C0;
  --blush-soft: #F2D9D6;
  --brass: #C9A961;
  --brass-deep: #A8893F;
  --brass-light: #E0C68A;
  --ivory: #F4ECD8;
  --ivory-soft: #FAF4E3;
  --oxblood: #5C1A1B;
  --oxblood-deep: #3D1011;
  --ink: #1A1208;

  --serif-display: "Cormorant Garamond", "Playfair Display", "Didot", "Bodoni 72", serif;
  --serif-body:    "EB Garamond", "Garamond", "Hoefler Text", Georgia, serif;
  --sans:          "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:          "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--serif-body);
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--brass); color: var(--navy); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━ TYPE ━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.display       { font-family: var(--serif-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.02; }
.italic-display { font-family: var(--serif-display); font-style: italic; font-weight: 400; }
.smcp          { font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; }
.mono          { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━ ORNAMENT ━━━━━━━━━━━━━━━━━━━━━━━ */

.gilt-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass) 20%, var(--brass) 80%, transparent);
  border: none; margin: 0;
}

.triple-rule {
  display: flex; align-items: center; gap: 12px; color: var(--brass);
}
.triple-rule.deep { color: var(--brass-deep); }
.triple-rule::before, .triple-rule::after {
  content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.5;
}
.triple-rule .glyphs {
  font-size: 11px; letter-spacing: 0.4em; white-space: nowrap;
}

.dropcap::first-letter {
  font-family: var(--serif-display); font-weight: 500; font-style: italic;
  float: left; font-size: 5.4em; line-height: 0.85;
  padding: 0.08em 0.12em 0 0; color: var(--oxblood);
}

/* ━━━━━━━━━━━━━━━━━━━━━━ HEAT RATING ━━━━━━━━━━━━━━━━━━━━━ */

.heat { display: inline-flex; gap: 3px; align-items: center; color: var(--oxblood); }
.heat-pip {
  width: 7px; height: 11px;
  background: currentColor; opacity: 0.18;
  clip-path: polygon(50% 0, 100% 35%, 90% 80%, 50% 100%, 10% 80%, 0 35%);
}
.heat-pip.lit { opacity: 1; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━ BUTTONS ━━━━━━━━━━━━━━━━━━━━━━━ */

button, .btn {
  font-family: var(--sans); cursor: pointer; border: none;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px;
  padding: 14px 28px; transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-brass { background: var(--brass); color: var(--navy); font-weight: 600; }
.btn-brass:hover { background: var(--brass-light); }
.btn-ghost {
  background: transparent; color: var(--ivory);
  border: 1px solid var(--brass);
}
.btn-ghost:hover { background: var(--brass); color: var(--navy); }
.btn-sm { padding: 10px 20px; font-size: 10px; }

/* ━━━━━━━━━━━━━━━━━━━━━━ GILT CORNERS ━━━━━━━━━━━━━━━━━━━━━━ */

.gilt-corner { position: absolute; width: 22px; height: 22px; color: var(--brass); pointer-events: none; }
.gilt-corner.tl { top: 0; left: 0; }
.gilt-corner.tr { top: 0; right: 0; transform: rotate(90deg); }
.gilt-corner.br { bottom: 0; right: 0; transform: rotate(180deg); }
.gilt-corner.bl { bottom: 0; left: 0; transform: rotate(270deg); }
.gilt-corner.sm { width: 14px; height: 14px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━ SEAL ━━━━━━━━━━━━━━━━━━━━━━━━━ */

.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: var(--oxblood); color: var(--ivory-soft);
  font-family: var(--serif-display); font-weight: 500; font-size: 22px;
  letter-spacing: -0.05em; line-height: 1;
  box-shadow:
    inset 0 0 0 2px var(--oxblood),
    inset 0 0 0 3px var(--ivory-soft),
    inset 0 0 0 4px var(--oxblood);
  transform: rotate(-4deg);
}
.seal.lg { width: 72px; height: 72px; font-size: 28px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━ RIBBON ━━━━━━━━━━━━━━━━━━━━━━━ */

.ribbon {
  position: relative; width: 240px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-display); font-style: italic; font-size: 22px;
  letter-spacing: 0.04em; color: var(--brass-light);
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.ribbon svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ribbon span { position: relative; z-index: 1; }

/* ━━━━━━━━━━━━━━━━━━━━━━ NANBAN COVER ━━━━━━━━━━━━━━━━━━━━━ */

.nanban-cover {
  position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255, 220, 140, 0.28), transparent 55%),
    radial-gradient(ellipse at 75% 75%, rgba(200, 80, 70, 0.22), transparent 50%),
    linear-gradient(135deg, #C9A961 0%, #A8893F 35%, #8B6F2D 70%, #5C4A1F 100%);
}
.nanban-cover::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 80% 18% at 20% 18%, rgba(255, 240, 200, 0.5), transparent 70%),
    radial-gradient(ellipse 90% 12% at 70% 38%, rgba(255, 235, 190, 0.4), transparent 70%),
    radial-gradient(ellipse 70% 14% at 30% 65%, rgba(255, 240, 210, 0.35), transparent 70%),
    radial-gradient(ellipse 90% 16% at 80% 88%, rgba(255, 235, 200, 0.45), transparent 70%);
}
.nanban-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 220, 150, 0.06) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 4px);
}
.nanban-cover svg.motif { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.nanban-cover img.painting {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 1; display: block;
}
.nanban-cover .meta {
  position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 3;
  color: var(--ivory-soft); text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.nanban-cover .meta .t {
  font-family: var(--serif-display); font-style: italic; font-size: 18px;
  line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 4px;
}
.nanban-cover .meta .s,
.nanban-cover .meta .a {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 8px; font-weight: 500;
}
.nanban-cover .meta .s { color: var(--brass-light); margin-bottom: 4px; }
.nanban-cover .meta .a { opacity: 0.85; }
.nanban-cover .monogram {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--oxblood); color: var(--ivory-soft);
  font-family: var(--serif-display); font-size: 11px; font-weight: 500;
  box-shadow: inset 0 0 0 1.5px var(--ivory-soft);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━ LAYOUT ━━━━━━━━━━━━━━━━━━━━━━━ */

.page { width: 100%; max-width: 1280px; margin: 0 auto; }

/* utility bar */
.utility-bar {
  background: var(--navy-deep); color: var(--brass-light);
  padding: 8px 48px;
  display: flex; justify-content: space-between; align-items: center;
}
.utility-bar .est { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; }
.utility-bar .lang { display: flex; gap: 22px; }
.utility-bar .lang .l { color: var(--brass-light); font-size: 9.5px; }
.utility-bar .lang .l.active { color: var(--ivory); border-bottom: 1px solid var(--brass); padding-bottom: 1px; }

/* masthead */
.masthead {
  background: var(--navy); color: var(--ivory);
  padding: 32px 48px 28px; border-bottom: 1px solid var(--brass);
  position: relative;
}
.masthead-top { display: flex; justify-content: space-between; align-items: flex-start; }
.masthead .vol { color: var(--brass); font-family: var(--mono); font-size: 10px; margin-bottom: 8px; }
.masthead .wordmark {
  font-family: var(--serif-display); font-size: 64px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 0.9;
}
.masthead .wordmark em { font-style: italic; color: var(--brass-light); font-weight: 500; }
.masthead .tag {
  margin-top: 10px; color: var(--blush); font-size: 10.5px;
}
.masthead nav {
  display: flex; gap: 36px; margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(201, 169, 97, 0.3);
  align-items: center;
}
.masthead nav a { display: flex; flex-direction: column; gap: 3px; }
.masthead nav a .en { color: var(--ivory); font-size: 10.5px; }
.masthead nav a .pt {
  font-family: var(--serif-display); font-style: italic; font-size: 13px;
  color: var(--brass-light); opacity: 0.7; line-height: 1;
}
.masthead nav .spacer { flex: 1; }

/* hero */
.hero {
  background: var(--navy); color: var(--ivory);
  padding: 64px 48px 80px; position: relative; overflow: hidden;
}
.hero .clouds {
  position: absolute; inset: 0; opacity: 0.18; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 20% at 30% 30%, var(--brass), transparent 70%),
    radial-gradient(ellipse 70% 18% at 80% 70%, var(--brass-light), transparent 70%);
}
.hero-grid {
  position: relative; display: grid;
  grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center;
}
.hero .triple-rule { color: var(--brass); margin-bottom: 28px; max-width: 320px; }
.hero .vol-label { color: var(--blush); margin-bottom: 20px; }
.hero h1 {
  font-family: var(--serif-display); font-weight: 500;
  font-size: 82px; line-height: 1.0; margin: 0 0 32px;
  letter-spacing: -0.02em; padding-bottom: 6px;
}
.hero h1 .l1 { font-style: italic; color: var(--blush); }
.hero h1 .l2 { font-style: italic; color: var(--brass-light); }
.hero p.lead {
  font-size: 19px; line-height: 1.55; max-width: 540px;
  color: var(--ivory); opacity: 0.9; margin: 0 0 12px; font-style: italic;
}
.hero p.lead .accent { color: var(--brass-light); font-style: italic; }
.hero .cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero .cta .count {
  color: var(--brass-light); font-family: var(--mono); font-size: 10px; margin-left: 8px;
}
.hero .cta .count strong {
  color: var(--ivory); font-size: 14px;
  font-family: var(--serif-display); font-style: italic; font-weight: 400;
}
.hero-tome {
  position: relative; height: 520px;
  display: flex; justify-content: center; align-items: center;
}
.hero-tome .back {
  position: absolute; top: -10px; right: -10px;
  width: 220px; height: 320px; transform: rotate(6deg); z-index: 1; opacity: 0.55;
  background: linear-gradient(135deg, var(--oxblood), var(--oxblood-deep));
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.hero-tome .front {
  position: relative; width: 280px; height: 420px;
  transform: rotate(-3deg); z-index: 2;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201, 169, 97, 0.4);
}
.hero-tome .ribbon { position: absolute; top: 60px; left: -40px; transform: rotate(-12deg); z-index: 3; }
.hero-tome .seal { position: absolute; bottom: 28px; right: 0; transform: rotate(8deg); z-index: 3; }

/* editor's selection */
.editors {
  background: var(--ivory);
  padding: 72px 48px 60px;
}
.editors .head { text-align: center; }
.editors .head .triple-rule { max-width: 460px; margin: 0 auto 40px; color: var(--brass-deep); }
.editors .head .label { color: var(--brass-deep); }
.editors h2 {
  font-family: var(--serif-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.02;
  font-size: 56px; margin: 10px 0 8px; color: var(--navy);
}
.editors h2 .from { font-style: italic; }
.editors h2 .ttl { color: var(--oxblood); }
.editors .byline { font-family: var(--mono); color: var(--brass-deep); font-size: 11px; letter-spacing: 0.04em; }
.editors-body {
  display: grid; grid-template-columns: 1fr 2fr 1fr;
  gap: 40px; max-width: 1100px; margin: 36px auto 0; align-items: start;
}
.editors-body aside { padding-top: 12px; }
.editors-body .left { text-align: right; }
.editors-body .left .lbl { color: var(--brass-deep); margin-bottom: 8px; }
.editors-body .left .heat-row { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.editors-body .left .heat-name {
  font-family: var(--serif-display); font-style: italic; font-size: 18px;
  color: var(--oxblood); margin-bottom: 28px;
}
.editors-body .left ul {
  list-style: none; padding: 0; margin: 0;
  font-style: italic; font-size: 14px; color: var(--navy); line-height: 1.7;
}
.editors-body .center {
  font-size: 19px; line-height: 1.7; color: var(--ink);
  text-align: justify; hyphens: auto;
}
.editors-body .center .end {
  text-align: center; margin-top: 24px;
  color: var(--brass-deep); letter-spacing: 0.4em; font-size: 12px;
}
.editors-body .center .more { text-align: center; margin-top: 16px; }
.editors-body .right { padding-left: 8px; border-left: 1px solid var(--brass); }
.editors-body .right .lbl { color: var(--brass-deep); margin-bottom: 10px; }
.editors-body .right dl { margin: 0; font-size: 13px; line-height: 1.6; }
.editors-body .right dt {
  font-family: var(--mono); color: var(--brass-deep); font-size: 9px;
  letter-spacing: 0.04em; margin-top: 8px; text-transform: uppercase;
}
.editors-body .right dd { margin: 0; font-style: italic; }
.editors-body .right dd.plain { font-style: normal; font-size: 12px; }
.editors-body .right dd.epi { font-family: var(--serif-display); }

/* collections */
.collections {
  background: var(--ivory-soft);
  padding: 60px 48px 64px;
  border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass);
}
.collections .header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 32px;
}
.collections .header .lbl { color: var(--brass-deep); }
.collections .header h2 {
  font-family: var(--serif-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.02;
  font-size: 42px; color: var(--navy); margin: 6px 0 2px;
}
.collections .header h2 em { font-style: italic; }
.collections .header .all {
  color: var(--oxblood); border-bottom: 1px solid var(--oxblood); padding-bottom: 2px; font-size: 10px;
}
.collections .grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.collection-card {
  position: relative; aspect-ratio: 0.78;
  background: var(--navy); color: var(--ivory);
  padding: 32px 18px 22px; border: 1px solid var(--brass);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; cursor: pointer;
}
.collection-card .inset {
  position: absolute; inset: 8px;
  border: 1px solid rgba(201, 169, 97, 0.35); pointer-events: none;
}
.collection-card .top { text-align: center; }
.collection-card .glyph {
  font-family: var(--serif-display); font-size: 36px;
  color: var(--brass-light); margin-bottom: 6px;
}
.collection-card .num { color: var(--brass); font-size: 9px; }
.collection-card .ttl {
  font-family: var(--serif-display); font-style: italic; font-weight: 500;
  font-size: 22px; line-height: 1.05; color: var(--ivory); text-align: center;
}
.collection-card .count { color: var(--brass); text-align: center; margin-top: 10px; font-size: 9px; }
.collection-card .count-story {
  font-family: var(--serif-display); font-style: italic;
  color: var(--brass-light); text-align: center;
  margin-top: 10px; font-size: 14px; line-height: 1.25;
}

/* recent */
.recent {
  background: var(--ivory);
  padding: 60px 48px 70px;
}
.recent .header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.recent .header .lbl { color: var(--brass-deep); }
.recent .header h2 {
  font-family: var(--serif-display); font-weight: 500;
  font-size: 42px; color: var(--navy); margin: 6px 0 0;
}
.recent .header h2 em { font-style: italic; }
.recent .header .updated { color: var(--brass-deep); font-size: 10px; align-self: flex-end; }
.recent .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.book-card .cov {
  aspect-ratio: 0.66; box-shadow: 0 12px 28px rgba(15, 27, 61, 0.3);
  margin-bottom: 14px; position: relative;
}
.book-card .catnum { color: var(--brass-deep); letter-spacing: 0.18em; margin-bottom: 4px; }
.book-card .ttl {
  font-family: var(--serif-display); font-size: 22px; line-height: 1.1;
  color: var(--navy); margin-bottom: 8px;
}
.book-card .author { font-size: 13px; color: var(--ink); opacity: 0.75; margin-bottom: 8px; font-style: italic; }
.book-card .meta-row { display: flex; justify-content: space-between; align-items: center; }
.book-card .setting { color: var(--brass-deep); font-size: 10px; }

/* manifesto */
.manifesto {
  background: var(--oxblood-deep); color: var(--ivory-soft);
  padding: 56px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.manifesto .glow {
  position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--brass) 0%, transparent 65%);
}
.manifesto .inner { position: relative; max-width: 720px; margin: 0 auto; }
.manifesto .triple-rule { color: var(--brass-light); margin-bottom: 22px; }
.manifesto blockquote {
  font-family: var(--serif-display); font-weight: 500;
  font-style: italic; font-size: 30px; line-height: 1.35;
  color: var(--blush); margin: 0;
}
.manifesto blockquote em { color: var(--brass-light); font-style: italic; }
.manifesto .attrib { color: var(--brass-light); margin-top: 20px; font-size: 10px; }

/* footer */
.site-footer {
  background: var(--navy-deep); color: var(--ivory);
  padding: 44px 48px 28px; border-top: 1px solid var(--brass);
}
.site-footer .grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { font-family: var(--serif-display); font-size: 32px; margin-bottom: 8px; }
.site-footer .brand em { font-style: italic; color: var(--brass-light); }
.site-footer .byline {
  font-size: 13px; color: var(--blush); opacity: 0.7;
  line-height: 1.6; margin: 0; max-width: 360px; font-style: italic;
}
.site-footer h3 { color: var(--brass); margin: 0 0 10px; font-weight: 500; }
.site-footer ul {
  list-style: none; padding: 0; margin: 0;
  font-size: 13px; line-height: 2; font-style: italic;
}
.site-footer ul li { color: var(--ivory); opacity: 0.85; }
.site-footer .bottom {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid rgba(201, 169, 97, 0.25);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.site-footer .bottom span { font-size: 10px; color: var(--brass-light); opacity: 0.7; }

/* ━━━━━━━━━━━━━━━━━━━━━━ LIBRARY PAGE ━━━━━━━━━━━━━━━━━━━━━━ */

.library {
  background: var(--ivory);
  padding: 64px 48px 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.library .lib-head { text-align: center; margin-bottom: 44px; }
.library .lib-head h1 {
  font-family: var(--serif-display); font-weight: 500;
  font-size: 64px; color: var(--navy); margin: 6px 0 18px; letter-spacing: -0.01em; line-height: 1.0;
}
.library .lib-head h1 em { font-style: italic; color: var(--oxblood); }
.library .lib-lead {
  font-style: italic; font-size: 17px; line-height: 1.65;
  max-width: 640px; margin: 0 auto; color: var(--navy);
}
.library .lib-lead em { color: var(--oxblood); font-style: italic; }

.tomo-mark {
  display: flex; align-items: center; gap: 18px;
  color: var(--brass-deep);
  margin: 0 0 36px;
}
.tomo-mark .tomo-rule { flex: 1; height: 1px; background: var(--brass); opacity: 0.6; }
.tomo-mark .tomo-label {
  display: flex; gap: 14px; align-items: center;
  white-space: nowrap; color: var(--oxblood);
}
.tomo-mark .tomo-dot { color: var(--brass-deep); font-size: 12px; }

.lib-list {
  list-style: none; padding: 0; margin: 0;
}
.lib-row {
  display: grid; grid-template-columns: 60px 140px 1fr; gap: 28px;
  padding: 28px 0; border-top: 1px solid rgba(201, 169, 97, 0.45);
  align-items: start;
}
.lib-row:last-child { border-bottom: 1px solid rgba(201, 169, 97, 0.45); }
.lib-num {
  color: var(--brass-deep); letter-spacing: 0.18em; font-size: 12px;
  padding-top: 8px; border-right: 1px solid rgba(201, 169, 97, 0.4);
  text-align: right; padding-right: 16px;
}
.lib-cover {
  display: block; width: 140px; aspect-ratio: 0.66;
  box-shadow: 0 8px 18px rgba(15, 27, 61, 0.28);
  overflow: hidden; isolation: isolate;
  position: relative;
}
.lib-cover img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center;
}
.lib-title-row {
  display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap; margin-bottom: 6px;
}
.lib-ttl {
  font-family: var(--serif-display); font-weight: 500; font-size: 32px;
  margin: 0; line-height: 1.05; color: var(--navy);
}
.lib-ttl a { color: inherit; }
.lib-ttl a:hover { color: var(--oxblood); }
.lib-author {
  font-family: var(--serif-display); font-style: italic; color: var(--brass-deep);
  font-size: 16px;
}
.lib-hook {
  font-size: 15px; line-height: 1.6; color: var(--ink);
  max-width: 680px; margin: 0 0 16px;
}
.lib-hook em { font-style: italic; }

.lib-fiche {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 6px 18px; margin: 12px 0 14px; max-width: 720px;
  font-size: 13px;
}
.lib-fiche dt {
  font-family: var(--mono); color: var(--brass-deep);
  font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase;
  padding-top: 3px;
}
.lib-fiche dd { margin: 0; color: var(--navy); }
.lib-fiche .heat-name-inline {
  font-family: var(--serif-display); font-style: italic;
  color: var(--oxblood); font-size: 14px; margin-left: 10px;
}

.cw-list {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  margin: 0; padding: 0;
}
.cw {
  display: inline-block;
  font-family: var(--sans); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px;
  background: var(--blush-soft); color: var(--oxblood);
  border: 1px solid rgba(92, 26, 27, 0.25);
}

.lib-actions { margin: 8px 0 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━ STORY PAGE ━━━━━━━━━━━━━━━━━━━━━━ */

.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;
}

.story-head {
  background: var(--navy); color: var(--ivory);
  padding: 60px 48px 48px;
  position: relative; overflow: hidden;
}
.story-head .inner {
  max-width: 1040px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 360px 1fr; gap: 48px;
  align-items: center;
}
.story-head .cover-frame {
  position: relative; width: 360px; aspect-ratio: 0.66;
  box-shadow: 0 24px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(201, 169, 97, 0.4);
  overflow: hidden; isolation: isolate;
}
.story-head .cover-frame img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center;
}
.story-head .meta-side { color: var(--ivory); }
.story-head .triple-rule { color: var(--brass); margin: 0 0 14px; max-width: 200px; }
.story-head .catnum { color: var(--brass); letter-spacing: 0.18em; font-size: 11px; margin-bottom: 18px; }
.story-head .ficha {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 12px 22px; padding: 22px 0;
  border-top: 1px solid rgba(201, 169, 97, 0.35);
  border-bottom: 1px solid rgba(201, 169, 97, 0.35);
  margin: 0 0 18px;
}
.story-head .ficha .lbl {
  font-family: var(--mono); color: var(--brass);
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  padding-top: 4px;
}
.story-head .ficha .val {
  font-family: var(--serif-display); font-style: italic;
  font-size: 17px; color: var(--ivory);
}
.story-head .ficha .heat {
  display: inline-flex; gap: 3px; color: var(--blush); margin-right: 10px; vertical-align: middle;
}
.story-head .ficha .heat .heat-pip { background: currentColor; opacity: 0.25; }
.story-head .ficha .heat .heat-pip.lit { opacity: 1; }
.story-head .ficha .heat-name-inline {
  font-family: var(--serif-display); font-style: italic;
  color: var(--blush); font-size: 16px;
}

.story-head .cws-label {
  font-family: var(--mono); color: var(--brass);
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 8px;
}
.story-head .cws {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  margin: 0;
}
.story-head .cws .cw {
  background: rgba(232, 196, 192, 0.12);
  color: var(--blush);
  border: 1px solid rgba(232, 196, 192, 0.28);
}

.story-hook {
  background: var(--ivory-soft);
  padding: 28px 48px 28px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.4);
}
.story-hook p {
  max-width: 720px; margin: 0 auto;
  font-family: var(--serif-display); font-style: italic;
  font-size: 19px; line-height: 1.55; color: var(--navy);
  text-align: center;
}

.story-body {
  background: var(--ivory);
  padding: 64px 48px 80px;
}
.story-body article {
  max-width: 680px; margin: 0 auto;
  font-family: var(--serif-body); font-size: 19px; line-height: 1.72;
  color: var(--ink);
}
.story-body article > p:first-of-type::first-letter,
.story-body article .dropcap::first-letter {
  font-family: var(--serif-display); font-weight: 500; font-style: italic;
  float: left; font-size: 5.4em; line-height: 0.85;
  padding: 0.08em 0.12em 0 0; color: var(--oxblood);
}
.story-body p { margin: 0 0 1.05em; }
.story-body p em, .story-body em { font-style: italic; }
.story-body hr {
  border: none; height: 1px; max-width: 240px;
  margin: 32px auto;
  background: linear-gradient(90deg, transparent, var(--brass) 25%, var(--brass) 75%, transparent);
  position: relative;
}
.story-body hr::after {
  content: "❦"; position: absolute; left: 50%; top: -12px; transform: translateX(-50%);
  background: var(--ivory); padding: 0 10px;
  color: var(--brass-deep); font-size: 14px;
}
.story-body blockquote {
  margin: 1.2em 0; padding: 0 0 0 22px;
  border-left: 2px solid var(--brass);
  font-style: italic; color: var(--navy);
}
.story-body h2 {
  font-family: var(--serif-display); font-weight: 500; font-style: italic;
  font-size: 28px; color: var(--oxblood);
  text-align: center; margin: 48px 0 16px;
}

.story-foot {
  background: var(--ivory-soft);
  padding: 36px 48px 36px;
  border-top: 1px solid rgba(201, 169, 97, 0.4);
  text-align: center;
}
.story-foot .end-mark {
  color: var(--brass-deep); letter-spacing: 0.4em; font-size: 14px;
  margin-bottom: 18px;
}
.story-foot .pen {
  font-family: var(--serif-display); font-style: italic; font-size: 18px;
  color: var(--navy); margin-bottom: 6px;
}
.story-foot .year {
  font-family: var(--mono); font-size: 10px; color: var(--brass-deep);
  letter-spacing: 0.14em;
}
.story-foot .nav {
  margin-top: 28px;
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.story-foot .nav a {
  font-family: var(--serif-display); font-style: italic;
  font-size: 17px; line-height: 1.2;
  color: var(--brass-deep); border-bottom: 1px solid var(--brass-deep);
  padding-bottom: 2px;
}
.story-foot .nav a:hover { color: var(--oxblood); border-color: var(--oxblood); }

@media (max-width: 1023px) {
  .lib-row { grid-template-columns: 110px 1fr; gap: 16px; }
  .lib-num { display: none; }
  .lib-cover { width: 110px; }
  .lib-fiche { grid-template-columns: 110px 1fr; }
  .library { padding: 48px 24px 60px; }
  .story-head { padding: 40px 24px; }
  .story-head .inner { grid-template-columns: 1fr; gap: 28px; }
  .story-head .cover-frame { width: 100%; max-width: 320px; margin: 0 auto; }
  .story-head .ficha { grid-template-columns: 110px 1fr; }
  .story-body { padding: 48px 24px 64px; }
  .story-body article { font-size: 18px; }
  .library .lib-head h1 { font-size: 44px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━ STUB PAGES ━━━━━━━━━━━━━━━━━━━━━━ */

.stub {
  min-height: 60vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 48px; gap: 18px;
  background: var(--ivory); color: var(--ink);
}
.stub h1 {
  font-family: var(--serif-display); font-weight: 500;
  font-size: 56px; color: var(--navy); margin: 0;
}
.stub h1 em { font-style: italic; color: var(--oxblood); }
.stub p { font-style: italic; color: var(--navy-soft); margin: 0; max-width: 480px; text-align: center; }
.stub .back { color: var(--brass-deep); border-bottom: 1px solid var(--brass-deep); padding-bottom: 2px; }

/* ━━━━━━━━━━━━━━━━━━━━━━ RESPONSIVE ━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-tome { height: 460px; }
  .editors-body { grid-template-columns: 1fr; gap: 24px; max-width: 640px; }
  .editors-body .left { text-align: left; }
  .editors-body .left .heat-row { justify-content: flex-start; }
  .editors-body .right { border-left: none; padding-left: 0; border-top: 1px solid var(--brass); padding-top: 18px; }
  .collections .grid { grid-template-columns: repeat(3, 1fr); }
  .recent .grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .masthead nav { flex-wrap: wrap; gap: 20px 28px; }
  .hero h1 { font-size: 60px; }
  .editors h2 { font-size: 40px; }
}

@media (max-width: 640px) {
  .utility-bar, .masthead, .hero, .editors, .collections, .recent, .manifesto, .site-footer {
    padding-left: 24px; padding-right: 24px;
  }
  .masthead .wordmark { font-size: 44px; }
  .hero h1 { font-size: 44px; }
  .editors h2 { font-size: 30px; }
  .collections .grid { grid-template-columns: repeat(2, 1fr); }
  .recent .grid { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr; }
  .manifesto blockquote { font-size: 22px; }
}

/* ━━━━━━━━━━━━━━━━━━━━ Consent banner (GA) ━━━━━━━━━━━━━━━━━━━━ */
#consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--navy);
  color: var(--ivory);
  border-top: 1px solid var(--brass);
  z-index: 1000;
  box-shadow: 0 -10px 28px rgba(10, 18, 48, 0.35);
}
#consent-banner .cb-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
#consent-banner .cb-text { flex: 1; min-width: 0; }
#consent-banner .cb-ttl {
  color: var(--brass);
  margin-bottom: 6px;
}
#consent-banner .cb-ttl em {
  font-family: var(--serif-display);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--brass-light);
  font-size: 13px;
}
#consent-banner .cb-text p {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ivory);
}
#consent-banner .cb-text p em {
  font-style: italic;
  color: var(--brass-light);
}
#consent-banner .cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  #consent-banner .cb-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px;
  }
  #consent-banner .cb-actions { display: flex; }
  #consent-banner .cb-actions .btn { flex: 1; }
}

/* tiny "manage cookies" link in footer bottom bar */
.consent-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: inherit;
  cursor: pointer;
  text-transform: uppercase;
}
.consent-link:hover { color: var(--brass-light); }

