/* Silverbourne: country house and river.
   Bottle green, oxblood, cream paper and a touch of gold. */
:root {
  --green: #1d3a2c;
  --green-deep: #132a1f;
  --green-soft: #2d5240;
  --oxblood: #6e1f26;
  --oxblood-deep: #521419;
  --cream: #f6efe1;
  --paper: #fbf8f1;
  --parchment: #efe5d0;
  --gold: #b3914c;
  --gold-light: #d8bf86;
  --ink: #26221d;
  --muted: #5e564b;
  --rule: #ddd0b5;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(19, 42, 31, .12), 0 10px 28px -12px rgba(19, 42, 31, .35);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--oxblood-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--green); margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.centre { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--green); color: var(--cream); padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }
.loading { color: var(--muted); font-style: italic; }

.kicker {
  font: 600 .78rem/1.3 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 .8rem;
}
.kicker--light { color: var(--gold-light); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--green); }
.brand__mark { width: 1.6rem; height: 1.6rem; color: var(--gold); }
.brand__name { font: 700 1.7rem/1 var(--serif); letter-spacing: .02em; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .98rem; padding-block: .35rem; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--oxblood); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--green); font-weight: 600; }
@media (max-width: 640px) {
  .site-nav { width: 100%; }
  .site-nav ul { gap: .1rem 1rem; }
  .site-nav a { font-size: .93rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.9rem; padding: .65rem 1.4rem;
  font: 600 .95rem/1 var(--sans); letter-spacing: .04em;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--gold { background: var(--gold-light); color: var(--green-deep); }
.btn--gold:hover { background: #e6d1a0; color: var(--green-deep); }
.btn--ghost { border-color: rgba(246, 239, 225, .55); color: var(--cream); }
.btn--ghost:hover { background: rgba(246, 239, 225, .1); color: #fff; }
.btn--ghost-dark { border-color: var(--green); color: var(--green); }
.btn--ghost-dark:hover { background: var(--green); color: var(--cream); }
.btn--green { background: var(--green); color: var(--cream); }
.btn--green:hover { background: var(--green-deep); color: #fff; }
.btn--oxblood { background: var(--oxblood); color: var(--cream); }
.btn--oxblood:hover { background: var(--oxblood-deep); color: #fff; }
.btn--small { min-height: 2.5rem; padding: .5rem 1.05rem; font-size: .88rem; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow--light { color: var(--gold-light); }
.link-arrow--light:hover { color: #fff; }

/* Hero */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 10%, var(--green-soft) 0%, var(--green) 45%, var(--green-deep) 100%); color: var(--cream); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3.5rem 5.5rem; align-items: center; }
.hero__title { color: var(--cream); font-size: clamp(2.5rem, 7vw, 4.6rem); font-weight: 600; max-width: 14ch; margin-bottom: 1.6rem; }
.hero__title::after { content: ""; display: block; width: 4.5rem; height: 2px; background: var(--gold); margin-top: 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__covers { position: relative; height: clamp(300px, 70vw, 480px); max-width: 520px; width: 100%; margin-inline: auto; }
.hero__cover { position: absolute; top: 50%; left: 50%; width: 46%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 2px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .7); }
.hero__cover--centre { transform: translate(-50%, -50%); z-index: 2; }
.hero__cover--left { transform: translate(-104%, -46%) rotate(-7deg); opacity: .9; }
.hero__cover--right { transform: translate(4%, -46%) rotate(7deg); opacity: .9; }
.hero__river { position: absolute; bottom: -1px; left: 0; width: 100%; height: 56px; fill: var(--cream); }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr .9fr; padding-block: 5rem 7rem; }
}

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: 2.5rem 4.5rem; }
.section--paper { background: var(--paper); border-block: 1px solid var(--rule); }
.section--green { background: var(--green); color: var(--cream); }
.section-title { font-size: 1.8rem; margin-top: 2.2rem; }
.section-title:first-child { margin-top: 0; }
.intro { font: 500 clamp(1.3rem, 2.4vw, 1.6rem)/1.45 var(--serif); color: var(--ink); }

.page-head { background: var(--paper); border-bottom: 1px solid var(--rule); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { margin-bottom: .3em; }
.page-head__lede { font-size: 1.15rem; color: var(--muted); max-width: 44rem; margin: 0; }

/* Covers */
.cover { position: relative; display: block; aspect-ratio: 5 / 8; background: var(--parchment); border-radius: 2px; overflow: hidden; box-shadow: var(--shadow); }
.cover img { width: 100%; height: 100%; object-fit: contain; }
.cover--blank { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .6rem; padding: 12%; text-align: center; background: linear-gradient(160deg, var(--green-soft), var(--green-deep)); color: var(--cream); }
.cover--blank::before { content: ""; position: absolute; inset: 7%; border: 1px solid var(--gold); pointer-events: none; }
.cover__title { font: 600 clamp(1.05rem, 2.6vw, 1.6rem)/1.15 var(--serif); }
.cover__author { font: 600 .68rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.badge-18 { position: absolute; top: .5rem; right: .5rem; z-index: 2; background: var(--oxblood); color: #fff; font: 700 .72rem/1 var(--sans); letter-spacing: .05em; padding: .32rem .45rem; border-radius: 3px; }
.badge-inline { position: static; display: inline-block; vertical-align: .2em; margin-left: .35rem; }

/* Feature (featured book on the home page) */
.feature { display: grid; gap: 2rem; align-items: center; }
.feature .cover { max-width: 320px; width: 70%; margin-inline: auto; }
.feature__title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .2em; }
.feature__subtitle { font: italic 500 1.35rem/1.35 var(--serif); color: var(--muted); margin-bottom: .9rem; }
.feature__date { color: var(--muted); font-size: .95rem; }
.feature__summary { font-size: 1.15rem; max-width: 40rem; }
@media (min-width: 760px) {
  .feature { grid-template-columns: minmax(220px, 340px) 1fr; gap: 3.5rem; }
  .feature .cover { width: 100%; }
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }

/* Format list */
.formats { list-style: none; margin: 0 0 1.2rem; padding: 0; border-top: 1px solid var(--rule); }
.formats li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .8rem; padding: .45rem 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.formats__name { font-weight: 600; }
.formats__price { font-weight: 600; color: var(--oxblood); white-space: nowrap; }
.formats__isbn { flex-basis: 100%; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }

/* Cover strip */
.cover-strip { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cover-strip a { display: block; text-decoration: none; color: var(--ink); transition: transform .2s; }
.cover-strip a:hover { transform: translateY(-4px); }
.cover-strip__no { display: block; margin-top: .55rem; font: 600 .75rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cover-strip__title { display: block; font: 600 1.05rem/1.2 var(--serif); color: var(--green); }
@media (min-width: 760px) { .cover-strip { grid-template-columns: repeat(6, 1fr); gap: 1.4rem; } }

/* Start here */
.start-card { display: grid; gap: 1.8rem; padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--oxblood); border-radius: var(--radius); box-shadow: var(--shadow); align-items: center; }
.start-card .cover { max-width: 240px; width: 60%; margin-inline: auto; }
.start-card h2 { margin-bottom: .2em; }
.start-card__title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--oxblood); margin-bottom: .3em; }
.start-card__register { font-style: italic; color: var(--muted); }
@media (min-width: 760px) {
  .start-card { grid-template-columns: 240px 1fr; gap: 3rem; }
  .start-card .cover { width: 100%; }
  .start-card > h2 { grid-column: 1 / -1; }
}

/* Press strip */
.press-strip__list { list-style: none; margin: 1rem 0 2rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 2.2rem; }
.press-strip__list li { font: 600 1.3rem/1.2 var(--serif); font-variant: small-caps; letter-spacing: .06em; color: var(--cream); }

/* Filters & grid */
.filters { display: grid; gap: 1.2rem; margin-bottom: 1.4rem; }
.filter__label { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .55rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { font: 400 .92rem/1 var(--sans); padding: .55rem .9rem; min-height: 2.4rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 99px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.chip__count { opacity: .7; margin-left: .3rem; font-size: .82rem; }
.result-count { color: var(--muted); font-size: .95rem; border-bottom: 1px solid var(--rule); padding-bottom: .9rem; margin-bottom: 2rem; }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 2.4rem 1.8rem; }
.book-card { display: flex; flex-direction: column; cursor: pointer; }
.book-card .cover { margin-bottom: 1rem; transition: transform .2s, box-shadow .2s; }
.book-card:hover .cover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(19, 42, 31, .12), 0 18px 34px -14px rgba(19, 42, 31, .5); }
.book-card__meta { font: 600 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.book-card h3 { font-size: 1.4rem; margin-bottom: .15rem; }
.book-card h3 a { color: var(--green); text-decoration: none; }
.book-card h3 a:hover { color: var(--oxblood); }
.book-card__subtitle { font: italic 500 1.05rem/1.3 var(--serif); color: var(--muted); margin-bottom: .35rem; }
.book-card__author { font-size: .9rem; margin-bottom: .8rem; }
.book-card .actions { margin-top: auto; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 3rem 0; }

/* Dialog */
.book-dialog { overflow: auto; overscroll-behavior: contain; width: min(100% - 1.5rem, 980px); max-height: calc(100dvh - 1.5rem); padding: 0; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); }
.book-dialog::backdrop { background: rgba(19, 42, 31, .72); }
.book-dialog__inner { position: relative; padding: clamp(1.25rem, 4vw, 2.75rem); }
.book-dialog__close { position: sticky; top: 0; float: right; width: 2.75rem; height: 2.75rem; margin: -.5rem -.5rem 0 0; border: 1px solid var(--rule); border-radius: 50%; background: var(--paper); color: var(--green); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 3; }
.book-dialog__close:hover { background: var(--green); color: var(--cream); }
.detail { display: grid; gap: 2rem; }
.detail .cover { max-width: 300px; width: 70%; margin-inline: auto; }
.detail__title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: .15em; padding-right: 2.5rem; }
.detail__subtitle { font: italic 500 1.3rem/1.35 var(--serif); color: var(--muted); }
.detail__facts { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; }
.detail__facts span + span::before { content: "\00b7"; margin-right: 1.2rem; color: var(--gold); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1.5rem 0 0; }
.tags li { font-size: .8rem; padding: .25rem .65rem; border: 1px solid var(--rule); border-radius: 99px; color: var(--muted); }
@media (min-width: 760px) {
  .detail { grid-template-columns: 280px 1fr; gap: 2.75rem; align-items: start; }
  .detail .cover { width: 100%; position: sticky; top: 0; }
}

/* Long-form prose (descriptions, bio) */
.prose { max-width: 44rem; }
.prose p, .prose li { font-size: 1.05rem; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; font-size: 1.45rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose blockquote { margin: 1.4rem 0; padding-left: 1.2rem; border-left: 2px solid var(--gold); font: italic 500 1.25rem/1.45 var(--serif); }
.prose img { margin-block: 1rem; }
.prose > p:first-child { font: 500 1.35rem/1.45 var(--serif); color: var(--green); }

/* Reading order */
.order-layout { display: grid; gap: 3rem; }
@media (min-width: 980px) { .order-layout { grid-template-columns: 1fr 360px; align-items: start; } .branches { position: sticky; top: 1.5rem; } }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 1.35rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(var(--gold), var(--green-soft)); }
.timeline__item { position: relative; display: grid; grid-template-columns: 2.7rem 72px 1fr; gap: 1rem; padding-bottom: 2rem; align-items: start; }
.timeline__no { position: relative; z-index: 1; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--green); color: var(--cream); display: grid; place-items: center; font: 700 1.15rem/1 var(--serif); border: 3px solid var(--cream); }
.timeline__item--start .timeline__no { background: var(--oxblood); }
.timeline__item .cover { width: 72px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.timeline__item .cover--blank { padding: 6%; }
.timeline__item .cover--blank .cover__title { font-size: .62rem; }
.timeline__item .cover--blank .cover__author { display: none; }
.timeline h3 { font-size: 1.4rem; margin-bottom: .15rem; }
.timeline h3 a { color: var(--green); text-decoration: none; }
.timeline h3 a:hover { color: var(--oxblood); text-decoration: underline; }
.timeline__meta { font-size: .9rem; color: var(--muted); margin-bottom: .2rem; }
.timeline__register { font-style: italic; margin-bottom: .3rem; }
.pill { display: inline-block; font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .32rem .55rem; border-radius: 99px; background: var(--parchment); color: var(--green); text-decoration: none; margin-right: .3rem; }
.pill--oxblood { background: var(--oxblood); color: #fff; }
a.pill:hover { background: var(--green); color: var(--cream); }
@media (max-width: 480px) { .timeline__item { grid-template-columns: 2.7rem 1fr; } .timeline__item .cover { display: none; } }

.branch { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.5rem; }
.branch--oxblood { border-left-color: var(--oxblood); }
.branch h2 { font-size: 1.7rem; }
.branch p { font-size: .98rem; }
.branch__list { list-style: none; margin: 0 0 1rem; padding: 0; }
.branch__list li { display: grid; grid-template-columns: 48px 1fr; gap: .8rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--rule); }
.branch__list .cover { width: 48px; box-shadow: none; }
.branch__list .cover--blank .cover__title, .branch__list .cover--blank .cover__author { display: none; }
.branch__list a { font: 600 1.1rem/1.2 var(--serif); color: var(--green); text-decoration: none; }
.branch__list a:hover { color: var(--oxblood); text-decoration: underline; }
.branch__list small { display: block; color: var(--muted); font-size: .82rem; }
.branch__sub { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 .4rem; }

/* Translations */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.jump a { text-decoration: none; }
.lang-group { margin-bottom: 3.5rem; scroll-margin-top: 1.5rem; }
.lang-group h2 { display: flex; align-items: baseline; gap: .8rem; border-bottom: 1px solid var(--rule); padding-bottom: .5rem; margin-bottom: 1.8rem; }
.lang-group h2 small { font: 400 .95rem/1 var(--sans); color: var(--muted); }
.edition-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 2rem; }
.edition { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; align-items: start; }
.edition h3 { font-size: 1.35rem; margin-bottom: .1rem; }
.edition h3 a { color: var(--green); text-decoration: none; }
.edition h3 a:hover { color: var(--oxblood); text-decoration: underline; }
.edition__original { font-size: .92rem; background: var(--paper); border-left: 2px solid var(--gold); padding: .4rem .7rem; margin: .6rem 0 .8rem; }

/* Author */
.author-layout { display: grid; gap: 2.5rem; }
.author-photo { margin: 0; max-width: 360px; }
.author-photo img { border-radius: 2px; box-shadow: var(--shadow); }
@media (min-width: 860px) { .author-layout { grid-template-columns: 320px 1fr; gap: 4rem; align-items: start; } .author-photo { position: sticky; top: 1.5rem; } }
.statement { margin: 0 0 1.5rem; padding: 1.3rem 1.5rem; background: var(--paper); border-left: 3px solid var(--gold); font: italic 500 1.3rem/1.5 var(--serif); color: var(--green); }
.badges { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .8rem; }
.badge { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .9rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--ink); }
a.badge:hover { border-color: var(--green); color: var(--ink); }
.badge__name { font: 700 1.1rem/1.2 var(--serif); color: var(--green); }
.badge__name::before { content: "\2713"; color: var(--gold); margin-right: .4rem; font-family: var(--sans); }
.badge__detail { font-size: .85rem; color: var(--muted); word-break: break-word; }
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.facts div { display: grid; gap: .1rem 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 600 .75rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
@media (min-width: 600px) { .facts div { grid-template-columns: 11rem 1fr; } }
.link-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 2rem; margin-top: 2rem; }
.link-cols h3 { font-size: 1.5rem; border-bottom: 2px solid var(--gold); padding-bottom: .35rem; }
.link-cols ul { list-style: none; margin: 0; padding: 0; }
.link-cols li { padding: .4rem 0; border-bottom: 1px solid var(--rule); }
.link-cols a { text-decoration: none; font-weight: 600; }
.link-cols a:hover { text-decoration: underline; }

/* Press */
.quotes { list-style: none; padding: 0; margin: 0 0 3.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.quotes li { margin: 0; padding: 1.4rem 1.5rem; background: var(--green); color: var(--cream); border-radius: var(--radius); }
.quotes blockquote { margin: 0 0 .8rem; font: italic 500 1.3rem/1.4 var(--serif); }
.quotes cite { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--gold-light); }
.region { margin-bottom: 3rem; }
.region h2 { border-bottom: 1px solid var(--rule); padding-bottom: .5rem; }
.press-list { list-style: none; margin: 0; padding: 0; }
.press-item { display: grid; gap: .2rem 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.press-item__outlet { font: 600 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); margin: 0; }
.press-item__date { color: var(--muted); font-size: .9rem; margin: 0; }
.press-item h3 { font-size: 1.4rem; margin: .1rem 0 .3rem; }
.press-item h3 a { color: var(--green); }
.press-item h3 a:hover { color: var(--oxblood); }
.press-item p:last-child { margin: 0; }
@media (min-width: 760px) { .press-item { grid-template-columns: 12rem 1fr; } .press-item__side { grid-row: span 3; } }

/* Contact */
.contact-layout { display: grid; gap: 2rem; }
@media (min-width: 860px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
.contact-card, .newsletter { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.newsletter { border-top: 4px solid var(--green); }
.contact-email { font: 600 clamp(1.25rem, 3vw, 1.6rem)/1.3 var(--serif); word-break: break-word; }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input { font: inherit; padding: .75rem .9rem; border: 1px solid #b9ab8e; border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 2.9rem; }
.field input:focus { border-color: var(--green); outline: 2px solid var(--gold); outline-offset: 1px; }

/* Wholesale */
.trade-routes { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .trade-routes { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.trade-card { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--green); border-radius: var(--radius); box-shadow: var(--shadow); }
.trade-card--direct { border-top-color: var(--oxblood); }
.trade-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.trade-details { display: grid; gap: 0 3rem; margin-top: 1rem; }
@media (min-width: 760px) { .trade-details { grid-template-columns: 1fr 1fr; } }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { position: relative; padding: .5rem 0 .5rem 1.6rem; border-bottom: 1px solid var(--rule); }
.tick-list li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); }
#isbns { scroll-margin-top: 1rem; }
.isbn-group { margin-top: 2.2rem; }
.isbn-group h3 { border-bottom: 2px solid var(--gold); padding-bottom: .35rem; }
.isbn-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.isbn-table thead th { font: 600 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: left; padding: .5rem .8rem .5rem 0; }
.isbn-table td, .isbn-table tbody th { padding: .45rem .8rem .45rem 0; text-align: left; vertical-align: top; }
.isbn-table tbody th { font-weight: 600; width: 50%; }
.isbn-table tbody th a { color: var(--green); text-decoration: none; }
.isbn-table tbody th a:hover { color: var(--oxblood); text-decoration: underline; }
.isbn-table__first { border-top: 1px solid var(--rule); }
.isbn-table__lang { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.isbn-table__isbn { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) {
  .isbn-table thead { display: none; }
  .isbn-table, .isbn-table tbody, .isbn-table tr { display: block; }
  .isbn-table tr { display: flex; flex-wrap: wrap; gap: 0 .8rem; }
  .isbn-table tbody th { display: block; width: 100%; padding-top: .7rem; }
  .isbn-table td { display: block; padding-block: .1rem; }
}

/* Art */
.originals__inner { display: grid; gap: 2rem; }
.originals h2 { color: var(--cream); }
.originals__prints { padding: 1.4rem 1.5rem; border: 1px solid rgba(216, 191, 134, .4); border-radius: var(--radius); }
@media (min-width: 860px) { .originals__inner { grid-template-columns: 1.6fr 1fr; gap: 4rem; align-items: center; } }
.art-group { margin-bottom: 3.5rem; scroll-margin-top: 1.5rem; }
.art-group h2 { border-bottom: 1px solid var(--rule); padding-bottom: .5rem; margin-bottom: .6rem; }
.art-group__intro { color: var(--muted); max-width: 44rem; margin-bottom: 1.8rem; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 2.4rem 1.8rem; }
.art-card { display: flex; flex-direction: column; align-items: flex-start; }
.art-card__img { display: block; width: 100%; aspect-ratio: 1; background: #fff; border-radius: 2px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 1rem; }
.art-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.art-card__img:hover img { transform: scale(1.03); }
.art-card h3 { font-size: 1.35rem; margin-bottom: .15rem; }
.art-card h3 a { color: var(--green); text-decoration: none; }
.art-card h3 a:hover { color: var(--oxblood); text-decoration: underline; }
.art-card__subtitle { font: italic 500 1.05rem/1.3 var(--serif); color: var(--muted); margin-bottom: .5rem; }
.art-card__summary { font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.art-card .btn { margin-top: auto; }

/* Footer */
.site-footer { background: var(--green-deep); color: #d9d2c1; padding-block: 3rem; font-size: .95rem; }
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: #fff; }
.site-footer__inner { display: grid; gap: 2rem; }
.site-footer__brand { font: 700 1.6rem/1 var(--serif); color: var(--cream); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.site-footer nav a { color: #e8e1d0; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; color: #fff; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.3fr 1fr; } }
.detail__description { margin-top: 2rem; }

/* ---------- The Silverbourne Compendium ---------- */
.pill--ghost { background: transparent; border: 1px solid var(--rule); color: var(--oxblood); }
.pill--ghost:hover { border-color: var(--oxblood); }
.compendium__counts { margin: .8rem 0 0; font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.compendium { display: grid; gap: 0 3rem; padding-block: 2rem 5rem; }
.compendium__toc { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); padding: .2rem 1rem; margin-bottom: 2rem; align-self: start; }
.compendium__toc summary { cursor: pointer; padding: .7rem 0; font: 600 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.compendium__toc nav { padding-bottom: 1rem; columns: 2 11rem; column-gap: 1.5rem; }
.compendium__toc .toc__group { break-after: avoid; margin: 1rem 0 .3rem; font: 600 .7rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--oxblood); }
.compendium__toc a { display: block; padding: .18rem 0 .18rem .7rem; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .93rem; line-height: 1.35; break-inside: avoid; }
.compendium__toc a:hover { color: var(--oxblood); }
.compendium__toc a[aria-current] { color: var(--green); border-left-color: var(--gold); font-weight: 600; }
@media (min-width: 960px) {
  .compendium { grid-template-columns: 250px minmax(0, 1fr); }
  .compendium__toc { position: sticky; top: 1rem; max-height: calc(100dvh - 2rem); overflow-y: auto; border: 0; background: none; padding: 0; margin: 0; }
  .compendium__toc summary { display: none; }
  .compendium__toc nav { columns: auto; }
}

/* Long-form wiki text, shared by the Compendium page and book detail panels */
.compendium-prose, .compendium__body { max-width: 50rem; }
.compendium__body > section { margin: 0 0 3.5rem; scroll-margin-top: 1.5rem; }
.compendium__body h2.sec { font-size: clamp(1.8rem, 3.4vw, 2.3rem); border-bottom: 1px solid var(--rule); padding-bottom: .3rem; margin: 0 0 1.1rem; }
.compendium__body h3, .compendium-prose h3 { font-size: 1.5rem; margin: 2rem 0 .35rem; scroll-margin-top: 1.5rem; }
.compendium__body h4, .compendium-prose h4 { font: 600 .74rem/1.3 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--oxblood); margin: 1.6rem 0 .5rem; }
.compendium__body .meta, .compendium-prose .meta { font: italic 500 1.12rem/1.45 var(--serif); color: var(--muted); margin: .1rem 0 .8rem; }
.compendium__body ul, .compendium-prose ul { padding-left: 1.2rem; }
.compendium__body li, .compendium-prose li { margin-bottom: .4rem; }
.compendium__body .aside-note, .compendium-prose .aside-note { font-size: .93rem; color: var(--muted); }
.compendium__body .flush, .compendium-prose .flush { margin: 0; }
.compendium__body .note, .compendium-prose .note { font: italic 500 1.08rem/1.5 var(--serif); color: var(--muted); border-block: 1px solid var(--rule); padding: .7rem 0; margin: 1.4rem 0; }
.compendium__body .panel, .compendium-prose .panel { border: 1px solid var(--rule); border-top: 3px solid var(--oxblood); background: var(--paper); padding: 1rem 1.3rem; margin: 1.4rem 0; }
.compendium__body .panel h4, .compendium-prose .panel h4 { margin-top: .2rem; }
.compendium__body .cols, .compendium-prose .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.6rem; }
.compendium__body .cols p, .compendium-prose .cols p { font-size: .97rem; }
.compendium__body .chain, .compendium-prose .chain { list-style: none; padding: 0; }
.compendium__body .chain li, .compendium-prose .chain li { position: relative; padding-left: 1.4rem; }
.compendium__body .chain li::before, .compendium-prose .chain li::before { content: "\2192"; position: absolute; left: 0; color: var(--gold); }
.compendium__body .scroller, .compendium-prose .scroller { overflow-x: auto; margin: 1rem 0 1.4rem; }
.compendium__body table, .compendium-prose table { border-collapse: collapse; width: 100%; font-size: .93rem; background: var(--paper); }
.compendium__body th, .compendium-prose th { background: var(--green); color: var(--cream); font: 600 .7rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: .55rem .65rem; }
.compendium__body td, .compendium-prose td { border: 1px solid var(--rule); padding: .5rem .65rem; vertical-align: top; }
.compendium__body tr:nth-child(even) td, .compendium-prose tr:nth-child(even) td { background: rgba(179, 145, 76, .07); }
.compendium__body .nil { color: var(--muted); }
.compendium__body figcaption { font-size: .88rem; color: var(--muted); margin-top: .4rem; }
.compendium__colophon { border-top: 1px solid var(--rule); padding-top: 1.5rem; color: var(--muted); font-size: .9rem; }

/* Infobox: the shop card beside each book entry */
.infobox { margin: 0 0 1.4rem; padding: 1rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); display: grid; gap: 1rem; }
.infobox__book { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; align-items: start; }
.infobox .cover { width: 84px; }
.infobox__title { font: 600 1.25rem/1.2 var(--serif); margin: 0 0 .25rem; }
.infobox__title a { color: var(--green); text-decoration: none; }
.infobox__meta { font-size: .88rem; color: var(--muted); margin: 0 0 .3rem; }
.infobox .actions { margin-top: .5rem; }
@media (min-width: 720px) {
  .infobox { float: right; width: 17.5rem; margin: .3rem 0 1.2rem 1.8rem; }
  .compendium__body > section::after { content: ""; display: table; clear: both; }
}

/* Panel inside a book's detail view */
.detail__compendium:empty { display: none; }
.compendium-panel { margin-top: 2.2rem; border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: var(--radius); background: var(--cream); padding: 0 1.2rem; }
.compendium-panel > summary { cursor: pointer; list-style: none; padding: 1rem 0; display: grid; gap: .15rem; }
.compendium-panel > summary::-webkit-details-marker { display: none; }
.compendium-panel > summary::after { content: "Open the entry \25BE"; font: 600 .78rem/1 var(--sans); color: var(--oxblood); margin-top: .4rem; }
.compendium-panel[open] > summary::after { content: "Close the entry \25B4"; }
.compendium-panel__kicker { font: 600 .72rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--oxblood); }
.compendium-panel__title { font: 600 1.5rem/1.2 var(--serif); color: var(--green); }
.compendium-panel__warn { font-size: .85rem; color: var(--muted); font-style: italic; }
.compendium-panel__body { border-top: 1px solid var(--rule); padding-top: 1rem; }
.compendium-panel__see { font-size: .92rem; padding-bottom: 1rem; margin: 0; }
.compendium-panel__see span { color: var(--muted); }
.compendium-panel__see a + a::before { content: "\00b7"; margin: 0 .5rem; color: var(--gold); display: inline-block; }
.compendium-panel--links { padding-block: 1rem 0; }

/* Home: explore the world */
.world-head { max-width: 46rem; margin: 0 auto 2rem; text-align: center; }
.world-grid { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.world-grid a { display: block; height: 100%; padding: 1.2rem 1.3rem; background: var(--cream); border: 1px solid var(--rule); border-top: 3px solid var(--green); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.world-grid a:hover { border-top-color: var(--oxblood); transform: translateY(-2px); }
.world-grid__title { display: block; font: 600 1.45rem/1.2 var(--serif); color: var(--green); margin-bottom: .3rem; }
.world-grid__text { display: block; font-size: .95rem; color: var(--muted); }
