/* ==========================================================
   Ranting Cassandra — one stylesheet for every page
   Ink, parchment and rust. Built from the original page styles.
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1714;
  --parchment: #f0ebe0;
  --parchment-mid: #e2d9c8;
  --parchment-dark: #cfc4ad;
  --rust: #8b3a1e;
  --rust-light: #b04e28;
  --rust-pale: #d4a088;
  --ash: #3d3830;
  --ash-light: #5c5448;
  --muted: #7a6f62;
  --gold: #9a7c3c;
  --gold-light: #c4a05a;
  --serif: 'IM Fell English', Georgia, serif;
  --garamond: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Josefin Sans', sans-serif;
}

html { font-size: 18px; }

body {
  background-color: var(--ink);
  color: var(--parchment);
  font-family: var(--garamond);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(139,58,30,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(154,124,60,0.08) 0%, transparent 50%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

[hidden] { display: none !important; }

/* ---------- header ---------- */

header {
  position: relative;
  border-bottom: 1px solid rgba(224,215,198,0.15);
  padding: 2.5rem 2rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.site-eyebrow {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rust-pale);
  margin-bottom: 0.6rem;
  opacity: 0.85;
}

.site-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: normal;
  font-style: italic;
  line-height: 1.05;
  color: var(--parchment);
  letter-spacing: -0.01em;
}
.site-title a { color: inherit; text-decoration: none; }
.site-title span { color: var(--rust-light); }

.site-tagline {
  font-family: var(--garamond);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.7rem;
  letter-spacing: 0.02em;
  padding-bottom: 2rem;
}

nav { display: flex; gap: 0; margin-top: 1.2rem; }

nav a {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--parchment-dark);
  text-decoration: none;
  padding: 0.6rem 1.1rem 0.7rem;
  border-top: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav a:first-child { padding-left: 0; }
nav a:hover { color: var(--parchment); border-top-color: var(--rust-light); }
nav a.active { color: var(--parchment); border-top-color: var(--rust); }

/* ---------- main ---------- */

main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.label {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust-pale);
  opacity: 0.7;
  margin-bottom: 1rem;
  display: block;
}

.page-intro {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(224,215,198,0.1);
  max-width: 660px;
}

.page-intro h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: normal;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
  color: var(--parchment);
  margin-bottom: 1.4rem;
}
.page-intro h2 span { color: var(--rust-light); }

.page-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--parchment-mid);
  font-weight: 300;
}
.page-intro p + p { margin-top: 1rem; }

.definition {
  margin-top: 2rem;
  padding-left: 1.2rem;
  border-left: 1px solid rgba(139,58,30,0.5);
}
.definition .term { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--parchment); }
.definition .pos {
  font-family: var(--sans); font-size: 0.55rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-left: 0.5rem;
}
.definition .meaning { font-size: 0.95rem; font-style: italic; line-height: 1.6; color: var(--muted); margin-top: 0.3rem; }

.toast { margin-top: 1.8rem; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-light) !important; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 3.5rem 0 1rem;
}
.section-header h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: normal;
  color: var(--parchment);
}
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(139,58,30,0.4), transparent);
  order: 2;
}
.section-header .count {
  order: 3;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.section-header a { color: inherit; text-decoration: none; transition: color 0.2s; }
.section-header a:hover { color: var(--rust-pale); }

/* ---------- filter bar (new) ---------- */

.filters {
  margin-top: 2.5rem;
  padding: 1.2rem 1.3rem 1.3rem;
  border: 1px solid rgba(224,215,198,0.1);
  background: rgba(26,23,20,0.6);
  display: grid;
  gap: 1rem;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: center; }
.filter-label {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 4.2rem;
}

.search-input, .select-input {
  font-family: var(--garamond);
  font-size: 1rem;
  color: var(--parchment);
  background: var(--ink);
  border: 1px solid rgba(224,215,198,0.2);
  padding: 0.45rem 0.7rem;
  border-radius: 0;
}
.search-input { flex: 1 1 14rem; min-width: 0; }
.search-input::placeholder { color: var(--muted); font-style: italic; }
.search-input:focus, .select-input:focus { outline: none; border-color: var(--rust-light); }
.select-input { cursor: pointer; }
.select-input option { background: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: 1 1 0; }
.chip {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--parchment-dark);
  background: transparent;
  border: 1px solid rgba(224,215,198,0.18);
  padding: 0.12rem 0.65rem 0.18rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: rgba(176,78,40,0.6); color: var(--parchment); }
.chip[aria-pressed="true"] { background: rgba(139,58,30,0.45); border-color: var(--rust-light); color: var(--parchment); }
.chip:focus-visible { outline: 1px solid var(--rust-pale); outline-offset: 2px; }
.chip .n { font-family: var(--sans); font-style: normal; font-size: 0.55rem; letter-spacing: 0.1em; opacity: 0.6; margin-left: 0.35em; }

.clear-filters {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--rust-pale);
  cursor: pointer;
  border-bottom: 1px solid rgba(212,160,136,0.35);
  padding: 0 0 0.1rem;
  margin-left: auto;
}
.clear-filters:hover { color: var(--parchment); }

.no-results { padding: 2.5rem 0; font-style: italic; color: var(--muted); font-size: 1.05rem; }

/* ---------- book & movie list ---------- */

.book-list { display: flex; flex-direction: column; }

.book {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0 1.8rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(224,215,198,0.07);
}

.cover {
  position: relative;
  width: 92px;
  aspect-ratio: 2 / 3;
  align-self: start;
  background: linear-gradient(160deg, #2a241f, #1f1b17);
  border: 1px solid rgba(224,215,198,0.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cover .stand-in {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  text-align: center;
  border: 1px solid rgba(139,58,30,0.35);
  margin: 5px;
}
.cover.nocover .stand-in { display: flex; }
.stand-in .st-title { font-family: var(--serif); font-style: italic; font-size: 0.62rem; line-height: 1.25; color: var(--parchment-mid); }
.stand-in .st-rule { width: 18px; height: 1px; background: var(--rust); margin: 0.4rem 0; }
.stand-in .st-author { font-family: var(--sans); font-size: 0.38rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }

.book-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: normal;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--parchment);
}
.book-sub { font-family: var(--garamond); font-style: italic; font-size: 0.92rem; color: var(--muted); margin-top: 0.15rem; }

.book-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  margin: 0.55rem 0 0.9rem;
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.book-meta .dot { color: var(--ash-light); }
.book-meta .genre { color: var(--muted); }

.verdict {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--rust-pale);
  border: 1px solid rgba(176,78,40,0.45);
  padding: 0.1rem 0.55rem 0.15rem;
}
.verdict.gah {
  color: var(--parchment-dark);
  border-color: rgba(224,215,198,0.25);
  background: rgba(139,58,30,0.25);
}

.book-body p { font-size: 0.98rem; line-height: 1.75; color: var(--parchment-mid); font-weight: 300; }
.book-body p + p, .book-body * + p { margin-top: 0.8rem; }
.book-body blockquote {
  margin: 0.9rem 0;
  padding-left: 1rem;
  border-left: 1px solid rgba(154,124,60,0.5);
  font-style: italic;
  color: var(--parchment-dark);
  font-size: 0.98rem;
  line-height: 1.7;
}
.book-body ul { list-style: none; margin: 0.7rem 0 0.2rem; columns: 2; column-gap: 1.5rem; }
.book-body li { font-size: 0.95rem; line-height: 1.7; color: var(--parchment-mid); font-style: italic; break-inside: avoid; }
.book-body li::before { content: '§ '; color: var(--rust); font-style: normal; opacity: 0.7; }

.take { margin-top: 0.9rem; padding-left: 1rem; border-left: 1px solid rgba(139,58,30,0.6); }
.take p { font-style: italic; color: var(--parchment-dark); }

.ext-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-pale);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,160,136,0.35);
}
.ext-link:hover { color: var(--parchment); border-color: var(--parchment); }

/* ---------- story list ---------- */

.story-list { display: flex; flex-direction: column; }

.story-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(224,215,198,0.07);
  text-decoration: none;
  color: inherit;
}
a.story-item:hover .story-title { color: var(--rust-pale); }

.story-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--rust);
  opacity: 0.6;
  line-height: 1;
  text-align: right;
  padding-top: 0.1rem;
}
.story-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--parchment);
  line-height: 1.3;
  margin-bottom: 0.35rem;
  transition: color 0.2s;
}
.story-meta {
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 0.6rem;
}
.story-excerpt { font-size: 0.88rem; line-height: 1.65; color: var(--muted); font-weight: 300; }
.story-item.pending .story-title { color: var(--ash-light); }

.story-score { text-align: right; padding-top: 0.15rem; white-space: nowrap; }

/* illustrations on the list */
.story-item.has-art { grid-template-columns: 3rem 132px 1fr auto; }
.story-thumb { padding-top: 0.2rem; }
.story-thumb img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid rgba(224,215,198,0.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  opacity: 0.9; transition: opacity 0.25s, transform 0.25s;
}
a.story-item:hover .story-thumb img { opacity: 1; transform: translateY(-2px); }

/* stars */
.stars { color: var(--gold-light); font-size: 0.95rem; letter-spacing: 0.06em; }
.stars .off { color: var(--ash); }
.vote-count {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.unrated { font-family: var(--garamond); font-style: italic; font-size: 0.85rem; color: var(--ash-light); }

/* ---------- single story ---------- */

article.story { max-width: 640px; margin: 0 auto; }

.story-head { padding: 4rem 0 2.5rem; text-align: center; }
/* the painting at the top of a story, like a plate in a book */
.story-art { margin: 3.5rem 0 0; }
.story-art img {
  display: block; width: 100%; height: auto;
  border: 1px solid rgba(224,215,198,0.14);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
}
article.story.has-art .story-head { padding-top: 2.6rem; }
/* paintings with a transparent background: no frame, the paint sits on the page */
.story-art.cutout img { border: none; box-shadow: none; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.35)); }
.story-thumb.cutout img { border: none; box-shadow: none; object-fit: contain; }

.story-head .back {
  font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--rust-pale); opacity: 0.75; text-decoration: none; transition: opacity 0.2s;
}
.story-head .back:hover { opacity: 1; }
.story-head h2 {
  font-family: var(--serif); font-style: italic; font-weight: normal;
  font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.1; color: var(--parchment); margin: 1.1rem 0 0.9rem;
}
.story-head .story-meta { margin-bottom: 0; }
.story-head .stars { display: inline-block; margin-top: 0.9rem; }
.story-head::after {
  content: ''; display: block; width: 60px; height: 1px; margin: 2.2rem auto 0;
  background: linear-gradient(to right, transparent, var(--rust), transparent);
}

.story-body p { font-size: 1.12rem; line-height: 1.85; color: var(--parchment-mid); font-weight: 400; text-indent: 1.6em; }
.story-body p:first-child, .story-body .scene-break + p { text-indent: 0; }
.story-body p:first-child::first-letter {
  font-family: var(--serif); float: left; font-size: 3.6rem; line-height: 0.85;
  padding: 0.35rem 0.55rem 0 0; color: var(--rust-light);
}
.story-body .scene-break { text-align: center; text-indent: 0; color: var(--rust); opacity: 0.7; margin: 1.6rem 0; }
.story-body blockquote { margin: 1rem 0 1rem 1.6em; font-style: italic; color: var(--parchment-dark); }

.end-mark { text-align: center; font-size: 1.4rem; color: var(--rust); opacity: 0.6; margin: 2.5rem 0 0; }

.story-notes {
  margin: 2.5rem 0 0; padding-left: 1.2rem; border-left: 1px solid rgba(154,124,60,0.5);
  font-style: italic; color: var(--muted); font-size: 0.98rem; line-height: 1.7;
}
.story-notes p + p { margin-top: 0.7rem; }

/* rating box */
.rate-box {
  margin: 3rem 0 0;
  padding: 1.8rem 1.5rem 1.6rem;
  text-align: center;
  border: 1px solid rgba(224,215,198,0.1);
  background: rgba(26,23,20,0.6);
}
.rate-box .label { margin-bottom: 0.6rem; }
.rate-box h3 { font-family: var(--serif); font-style: italic; font-weight: normal; font-size: 1.3rem; color: var(--parchment); }
.star-input { display: inline-flex; gap: 0.15rem; margin-top: 0.9rem; }
.star-input button {
  background: none; border: none; cursor: pointer; padding: 0.1rem 0.2rem;
  font-size: 2rem; line-height: 1; color: var(--ash);
  transition: color 0.12s, transform 0.12s;
}
.star-input button.lit { color: var(--gold-light); }
.star-input button:hover { transform: translateY(-2px); }
.star-input button:focus-visible { outline: 1px solid var(--rust-pale); outline-offset: 2px; }
.star-input[aria-busy="true"] { opacity: 0.5; pointer-events: none; }
.rate-status { margin-top: 0.7rem; min-height: 1.5em; font-style: italic; color: var(--muted); font-size: 0.95rem; }
.rate-summary { margin-top: 0.3rem; }

.story-nav {
  max-width: 640px; margin: 3.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(224,215,198,0.1);
  display: flex; justify-content: space-between; gap: 1rem;
}
.story-nav a {
  font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.story-nav a:hover { color: var(--rust-pale); }

/* ---------- suggestion box (new) ---------- */

.suggest {
  margin-top: 4.5rem;
  padding: 2rem 1.6rem 1.8rem;
  border: 1px solid rgba(224,215,198,0.1);
  background: rgba(26,23,20,0.6);
}
.suggest h2 { font-family: var(--serif); font-style: italic; font-weight: normal; font-size: 1.6rem; color: var(--parchment); }
.suggest > p { font-size: 1rem; font-weight: 300; line-height: 1.7; color: var(--parchment-mid); margin: 0.5rem 0 1.4rem; max-width: 36em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; font-family: var(--sans); font-size: 0.55rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem;
}
.field label .opt { color: var(--muted); letter-spacing: 0.15em; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--garamond); font-size: 1.02rem; color: var(--parchment);
  background: var(--ink); border: 1px solid rgba(224,215,198,0.2); padding: 0.5rem 0.7rem; border-radius: 0;
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rust-light); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.btn {
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--parchment); background: var(--rust); border: 1px solid var(--rust);
  padding: 0.8rem 1.4rem 0.7rem; cursor: pointer; transition: background 0.2s; text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--rust-light); }
.btn:disabled { opacity: 0.5; cursor: default; }
.form-actions { margin-top: 1.1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { font-style: italic; color: var(--parchment-dark); }
.form-status.err { color: var(--rust-pale); }

/* ---------- home ---------- */

.portrait { position: relative; margin: 2.5rem 0 0; }
.portrait-frame { position: relative; overflow: hidden; }
.portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 868 / 542; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 42%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 82% at 50% 42%, #000 55%, transparent 100%);
}
.portrait-frame::before {
  content: ''; position: absolute; inset: 10% 15%;
  background: radial-gradient(ellipse at center, rgba(139,58,30,0.25), transparent 70%);
  filter: blur(30px); z-index: -1;
}
.portrait figcaption {
  text-align: center; margin-top: -0.5rem;
  font-family: var(--sans); font-size: 0.55rem; font-weight: 300; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--rust-pale);
}
.portrait figcaption em {
  display: block; margin-top: 0.4rem; font-family: var(--garamond); font-size: 0.95rem;
  letter-spacing: 0.02em; text-transform: none; color: var(--muted);
}

.hero {
  padding: 3rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  gap: 0 2.5rem;
  align-items: start;
  border-bottom: 1px solid rgba(224,215,198,0.1);
}
.hero-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(139,58,30,0.6) 30%, rgba(154,124,60,0.4) 70%, transparent);
  align-self: stretch;
  margin: 1rem 0;
}
.hero-myth { padding-right: 1rem; }
.hero-myth blockquote { font-family: var(--garamond); font-style: italic; font-size: 1.15rem; font-weight: 300; line-height: 1.75; color: var(--parchment-mid); }
.hero-myth cite {
  display: block; margin-top: 1rem; font-style: normal; font-family: var(--sans);
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); opacity: 0.8;
}
.hero-voice { padding-left: 1rem; }
.hero-voice p { font-size: 1.05rem; line-height: 1.8; color: var(--parchment-mid); font-weight: 300; }
.hero-voice p + p { margin-top: 1rem; }

.sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(224,215,198,0.08);
  border: 1px solid rgba(224,215,198,0.08);
}
.section-card {
  background: rgba(26,23,20,0.6);
  padding: 1.8rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s;
  display: block;
}
.section-card:hover { background: rgba(139,58,30,0.12); }
.section-card:hover .card-title { color: var(--rust-pale); }
.card-glyph { font-family: var(--serif); font-size: 1.8rem; color: var(--rust); opacity: 0.6; margin-bottom: 0.8rem; line-height: 1; }
.card-title { font-family: var(--serif); font-style: italic; font-size: 1.05rem; font-weight: normal; color: var(--parchment); margin-bottom: 0.5rem; transition: color 0.2s; }
.card-desc { font-size: 0.78rem; line-height: 1.6; color: var(--muted); font-weight: 300; }

/* ---------- footer (brighter version) ---------- */

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(224,215,198,0.18);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment-dark);
}
.footer-motto { font-family: var(--garamond); font-style: italic; font-size: 1.15rem; color: var(--rust-pale); }

/* ---------- motion ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes emerge {
  from { opacity: 0; filter: brightness(0.4); }
  to { opacity: 1; filter: brightness(1); }
}
header { animation: fadeUp 0.7s ease both; }
.page-intro, article.story { animation: fadeUp 0.7s 0.15s ease both; }
.filters { animation: fadeUp 0.7s 0.2s ease both; }
.book-list, .story-list { animation: fadeUp 0.7s 0.25s ease both; }
.portrait { animation: emerge 1.4s 0.1s ease both; }
.hero { animation: fadeUp 0.7s 0.3s ease both; }
.sections-grid { animation: fadeUp 0.7s 0.5s ease both; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* ---------- small screens ---------- */

@media (max-width: 680px) {
  header { padding: 2rem 1rem 0; }
  nav { flex-wrap: wrap; }
  main { padding: 0 1rem 4rem; }
  .page-intro { padding: 3rem 0 2.5rem; }
  .filters { padding: 1rem; }
  .filter-label { min-width: 100%; }
  .clear-filters { margin-left: 0; }
  .book { grid-template-columns: 64px 1fr; gap: 0 1.1rem; }
  .cover { width: 64px; }
  .book-title { font-size: 1.15rem; }
  .book-body ul { columns: 1; }
  .story-item { grid-template-columns: 2rem 1fr; gap: 0 1rem; }
  .story-score { grid-column: 2; text-align: left; margin-top: 0.6rem; }
  .story-item.has-art { grid-template-columns: 2rem 1fr; }
  .story-thumb { grid-column: 2; padding: 0 0 0.9rem; }
  .story-thumb img { aspect-ratio: 3 / 2; max-width: 420px; }
  .story-item.has-art .story-num { grid-row: 1; }
  .story-item.has-art .story-text { grid-column: 2; }
  .story-art { margin-top: 2rem; }
  article.story.has-art .story-head { padding-top: 2rem; }

  .story-score .vote-count { display: inline; margin-left: 0.5rem; }
  .story-head { padding: 3rem 0 2rem; }
  .story-body p { font-size: 1.05rem; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 2rem 0; }
  .hero-divider { display: none; }
  .hero-voice { padding-left: 0; }
  .hero-myth { padding-right: 0; }
  .sections-grid { grid-template-columns: 1fr; }
  .portrait { margin-top: 1.5rem; }
  .portrait img {
    -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 42%, #000 60%, transparent 100%);
            mask-image: radial-gradient(ellipse 90% 85% at 50% 42%, #000 60%, transparent 100%);
  }
  footer { flex-direction: column; gap: 0.6rem; text-align: center; }
}
