:root {
  color-scheme: dark;
  --night: #0a1011;
  --night-2: #11191a;
  --night-3: #192222;
  --cream: #f0e7d5;
  --cream-2: #d4c7ae;
  --gold: #c5a76a;
  --gold-light: #e4cb91;
  --line: rgba(225, 206, 165, .18);
  --line-bright: rgba(229, 207, 159, .4);
  --paper: #e9e0cd;
  --paper-2: #f2ead9;
  --paper-ink: #252a27;
  --paper-soft: #536059;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --width: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 0;
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 83% 12%, rgba(137, 114, 75, .09), transparent 35rem),
    linear-gradient(180deg, #0b1112, #111819 34%, #0b1112);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
::selection { color: #131a18; background: #d6bc83; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.page-shell { overflow: clip; }
.container { width: min(var(--width), calc(100% - 80px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  padding: 11px 17px;
  color: #111818;
  background: var(--gold-light);
  font-weight: 700;
}
.skip-link:focus { top: 14px; }
.initial-loading { min-height: 55vh; display: grid; place-items: center; color: var(--cream-2); }

/* Frame and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 70px;
  padding-inline: max(40px, calc((100vw - var(--width)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(8, 14, 15, .93);
  backdrop-filter: blur(16px);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.wordmark-sigil { color: var(--gold-light); font-size: 21px; line-height: 1; }
.wordmark-name { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: .11em; }
.wordmark-rule { width: 1px; height: 21px; margin-inline: 5px; background: var(--line-bright); }
.wordmark-sub { color: #a48c61; font-family: Georgia, serif; font-size: 10px; letter-spacing: .16em; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 38px); }
.site-nav a {
  position: relative;
  padding-block: 25px;
  color: #c0bdaa;
  font-size: 13px;
  white-space: nowrap;
  transition: color .2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 2px;
  background: var(--gold-light);
  transition: left .2s ease, right .2s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #f6e7c1; }
.site-nav a[aria-current="page"]::after { left: 0; right: 0; }

/* Shared editorial elements */
.eyebrow, .hero-eyebrow {
  color: var(--gold);
  font-family: Georgia, var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow-rule::before, .hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 11px;
  vertical-align: middle;
  background: currentColor;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 11px 21px;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  color: var(--cream);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--gold-light); background: rgba(216, 186, 121, .1); }
.button-primary { color: #171c19; border-color: var(--gold-light); background: var(--gold-light); }
.button-primary:hover { color: #101715; background: #f1d9a6; }
.button-arrow { font-family: Georgia, serif; font-size: 18px; line-height: 1; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-bright);
  color: var(--gold-light);
  font-size: 13px;
  white-space: nowrap;
}
.text-link:hover { border-color: var(--gold-light); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-size: 13px; }
.back-link:hover { color: #fff0c9; }
.section { padding-block: 78px 92px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 31px; }
.section-head h2, .page-heading h1 {
  margin: 11px 0 0;
  font-family: var(--serif);
  font-size: clamp(31px, 3.3vw, 48px);
  font-weight: 600;
  letter-spacing: .015em;
  line-height: 1.3;
}
.section-head p { max-width: 400px; margin: 0; color: #bbb9a8; font-size: 14px; line-height: 1.8; }

/* Cinematic opening */
.hero {
  position: relative;
  min-height: 535px;
  isolation: isolate;
  background: #0a1112;
}
.hero-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("./assets/landscape.svg") center 45% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 13, .45) 0%, rgba(7, 12, 13, .16) 45%, transparent 80%),
    linear-gradient(0deg, #0b1112 0%, transparent 32%);
}
.hero-inner {
  position: relative;
  width: min(var(--width), calc(100% - 80px));
  margin-inline: auto;
  padding-top: clamp(50px, 5.6vw, 78px);
  padding-bottom: 70px;
}
.hero-title {
  max-width: 600px;
  margin: 19px 0 7px;
  font-family: var(--serif);
  font-size: clamp(56px, 5.1vw, 74px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .035em;
  text-shadow: 0 5px 30px rgba(0, 0, 0, .54);
}
.hero-subtitle { margin: 0; color: var(--gold-light); font-family: Georgia, serif; font-size: 12px; letter-spacing: .29em; }
.hero-lede {
  max-width: 480px;
  margin: 19px 0 0;
  color: #e2dcc9;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.77;
  text-shadow: 0 3px 14px #071011;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.hero-search {
  display: block;
  width: min(100%, 510px);
  margin-top: 16px;
}
.hero-search label { display: block; margin-bottom: 5px; color: #d7c99f; font-size: 12px; }
.hero-search-control {
  display: flex;
  min-height: 50px;
  border: 1px solid rgba(235, 220, 180, .55);
  background: rgba(9, 15, 15, .78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
  backdrop-filter: blur(8px);
}
.hero-search input {
  min-width: 0;
  flex: 1;
  padding: 0 17px;
  border: 0;
  outline: 0;
  color: #fff5df;
  background: transparent;
  font-size: 15px;
}
.hero-search input::placeholder { color: #bbb8a8; }
.hero-search-control:focus-within { border-color: var(--gold-light); }
.hero-search button {
  flex: 0 0 auto;
  min-width: 120px;
  padding: 0 18px;
  border: 0;
  color: #17201b;
  background: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
}
.hero-search button:hover { background: #f4dcaa; }
.hero-picks {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding-bottom: 26px;
}
.hero-picks-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 28px;
  margin-bottom: 12px;
  color: #d7cbb0;
  font-size: 12px;
}
.hero-picks-heading span { display: block; color: #a9a78f; font-size: 10px; }
.hero-picks-heading strong { display: block; margin-top: 3px; color: #eee5d1; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.hero-picks-heading a { color: var(--gold-light); font-size: 12px; }
.hero-picks-heading a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-picks-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.hero-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 190px;
  padding: 17px 18px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(235, 220, 178, .2);
  background:
    radial-gradient(circle at 76% 20%, var(--glow, rgba(188, 163, 104, .3)), transparent 46%),
    linear-gradient(145deg, var(--tone-deep, #232b27), #0d1516 80%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.hero-pick::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 17px;
  right: 15px;
  width: 81px;
  height: 81px;
  border: 1px solid var(--tone, #bfa66d);
  border-radius: 50%;
  opacity: .35;
  box-shadow: 0 0 0 16px rgba(229, 215, 178, .025), 0 0 0 40px rgba(229, 215, 178, .022);
}
.hero-pick::after {
  content: var(--mark, "✦");
  position: absolute;
  z-index: -1;
  top: 23px;
  right: 39px;
  color: var(--tone, #c3aa78);
  font-family: Georgia, var(--serif);
  font-size: 44px;
  line-height: 1;
  opacity: .52;
}
.hero-pick:hover { transform: translateY(-6px); border-color: var(--tone, var(--gold-light)); box-shadow: 0 17px 34px rgba(0, 0, 0, .27); }
.hero-pick-index { color: var(--tone, var(--gold-light)); font-family: Georgia, serif; font-size: 11px; letter-spacing: .1em; }
.hero-pick-name { display: block; margin-top: auto; font-family: var(--serif); font-size: clamp(18px, 1.55vw, 23px); font-weight: 700; line-height: 1.33; }
.hero-pick-note { display: block; margin-top: 7px; color: #c9c6b5; font-size: 11px; line-height: 1.5; }
.hero-pick-arrow { position: absolute; right: 17px; bottom: 16px; color: var(--tone, var(--gold-light)); font-family: Georgia, serif; font-size: 21px; }
.hero-pick-note { display: -webkit-box; max-height: 2.9em; padding-right: 12px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hero-actions a { color: #e1d4b7; border-bottom: 1px solid rgba(216, 197, 152, .5); padding-bottom: 4px; font-size: 12px; }
.hero-actions a:hover { color: #fff0c5; border-color: var(--gold-light); }

/* Character-specific colours are a visual index, not lore claims. */
[data-visual="sun"] { --tone: #e3c47e; --tone-deep: #343025; --glow: rgba(218, 173, 79, .34); --mark: "✺"; }
[data-visual="moon"] { --tone: #b9c6e1; --tone-deep: #252d3b; --glow: rgba(137, 165, 217, .32); --mark: "☾"; }
[data-visual="gold"] { --tone: #dac690; --tone-deep: #332e26; --glow: rgba(214, 186, 108, .32); --mark: "✦"; }
[data-visual="rot"] { --tone: #d39893; --tone-deep: #3d2b30; --glow: rgba(184, 92, 84, .31); --mark: "✿"; }
[data-visual="fire"] { --tone: #e3a476; --tone-deep: #402b24; --glow: rgba(219, 111, 56, .32); --mark: "✧"; }
[data-visual="stars"] { --tone: #a5bfd2; --tone-deep: #25343c; --glow: rgba(112, 159, 186, .3); --mark: "✶"; }
[data-visual="night"] { --tone: #b0a7d5; --tone-deep: #29283a; --glow: rgba(137, 123, 185, .3); --mark: "◇"; }
[data-visual="stone"] { --tone: #c6bca3; --tone-deep: #34342f; --glow: rgba(158, 150, 119, .28); --mark: "◆"; }
[data-visual="mist"] { --tone: #abc5ba; --tone-deep: #283833; --glow: rgba(116, 157, 142, .28); --mark: "✧"; }
[data-visual="ash"] { --tone: #c2b8ac; --tone-deep: #333234; --glow: rgba(163, 152, 144, .28); --mark: "✳"; }

/* A visible passage before the index */
.home-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(235px, .8fr) minmax(0, 1.5fr);
  gap: clamp(35px, 6vw, 100px);
  margin-top: 22px;
  margin-bottom: 57px;
  padding: clamp(36px, 5vw, 70px);
  color: var(--paper-ink);
  background:
    radial-gradient(circle at 90% 8%, rgba(197, 156, 85, .13), transparent 38%),
    var(--paper);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .2);
}
.home-story::before { content: ""; position: absolute; top: 0; left: 0; width: 75px; height: 3px; background: #a57f45; }
.home-story-heading .eyebrow { color: #8a6a3d; }
.home-story-heading h2 { max-width: 310px; margin: 15px 0 18px; font-family: var(--serif); font-size: clamp(30px, 3vw, 45px); font-weight: 700; line-height: 1.35; }
.home-story-heading p { max-width: 350px; color: #677168; font-size: 13px; line-height: 1.8; }
.home-story-content { align-self: center; padding-left: clamp(0px, 4vw, 55px); border-left: 1px solid rgba(96, 84, 62, .26); }
.home-story-content h3 { margin: 0 0 15px; color: #77613e; font-family: var(--serif); font-size: 16px; }
.home-story-content p { margin: 0 0 16px; color: var(--paper-ink); font-family: var(--serif); font-size: 17px; line-height: 1.95; }
.home-story-content .text-link, .home-story-content a { color: #795a2e; border-color: #ab8b59; }
.home-story-content a:hover { color: #4c371f; }

/* Index cards and chapter entrances */
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(215, 197, 158, .2);
  background: #182020;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.entry-card:hover { transform: translateY(-5px); border-color: var(--tone, #c7ac74); box-shadow: 0 18px 34px rgba(0, 0, 0, .2); }
.entry-card-art {
  position: relative;
  flex: 0 0 115px;
  overflow: hidden;
  background:
    radial-gradient(circle at 66% 27%, var(--glow, rgba(188, 163, 104, .3)), transparent 42%),
    linear-gradient(120deg, var(--tone-deep, #28302c), #10191a 85%);
}
.entry-card-art::before {
  content: "";
  position: absolute;
  top: -55px;
  right: 31px;
  width: 210px;
  height: 210px;
  border: 1px solid var(--tone, #c5ae7e);
  border-radius: 50%;
  opacity: .36;
  box-shadow: 0 0 0 35px rgba(222, 203, 160, .025), 0 0 0 70px rgba(222, 203, 160, .018);
}
.entry-card-art::after {
  content: var(--mark, "✦");
  position: absolute;
  right: 97px;
  bottom: 11px;
  color: var(--tone, #c5ae7e);
  font-family: Georgia, var(--serif);
  font-size: 75px;
  line-height: 1;
  opacity: .42;
}
.entry-card-has-image { background: #10191a; }
.entry-card-has-image::before, .entry-card-has-image::after { display: none; }
.entry-card-has-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(.88) brightness(.88);
}
.entry-card-body { display: flex; flex: 1; flex-direction: column; padding: 21px 24px 20px; }
.entry-card-top { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.entry-card .tag { color: var(--tone, var(--gold-light)); font-size: 11px; line-height: 1.5; }
.entry-card .region { max-width: 46%; color: #aeb8ab; font-size: 11px; line-height: 1.5; text-align: right; }
.entry-card h3 { margin: 20px 0 5px; font-family: var(--serif); font-size: clamp(21px, 1.8vw, 27px); font-weight: 600; line-height: 1.4; }
.entry-card .english { margin: 0 0 13px; color: #a3a391; font-family: Georgia, serif; font-size: 11px; line-height: 1.4; }
.entry-card .summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #d0d1c1;
  font-size: 13px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.entry-card .entry-more { align-self: end; margin-top: auto; padding-top: 10px; color: var(--tone, var(--gold-light)); font-size: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.related-grid .entry-card-art { flex-basis: 82px; }
.related-grid .entry-card .summary { -webkit-line-clamp: 2; }

.chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.chapter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 25px 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0, rgba(167, 137, 77, .14), transparent 50%),
    linear-gradient(145deg, #1c2524, #11191a);
  transition: transform .22s ease, border-color .22s ease;
}
.chapter-card::before { content: ""; position: absolute; top: 0; left: 0; width: 72px; height: 2px; background: var(--gold); }
.chapter-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.chapter-top { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.chapter-number { color: var(--gold-light); font-family: Georgia, serif; font-size: 29px; line-height: 1; }
.chapter-era { color: #b7bba9; font-size: 11px; text-align: right; }
.chapter-card h3 { margin: 28px 0 11px; font-family: var(--serif); font-size: 25px; font-weight: 600; }
.chapter-card p { margin: 0; color: #bfc3b4; font-size: 13px; line-height: 1.8; }
.chapter-card .card-bottom { margin-top: auto; padding-top: 19px; color: var(--gold-light); font-size: 12px; }
.chapter-card .card-bottom span { margin-left: 8px; font-family: Georgia, serif; font-size: 17px; }
.quote-band {
  position: relative;
  padding: 82px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, rgba(174, 143, 78, .11), transparent 48%), #0d1516;
  text-align: center;
}
.quote-band::before { content: "✦"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: rgba(207, 180, 112, .045); font-size: 320px; line-height: 1; }
.quote-band .container { position: relative; }
.quote-band blockquote { max-width: 760px; margin: 21px auto; font-family: var(--serif); font-size: clamp(21px, 2.5vw, 33px); line-height: 1.75; }
.quote-band .quote-note { color: #b6b9aa; font-size: 12px; }

/* Directory and timeline */
.page-heading {
  padding: 58px 0 42px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(12, 19, 19, .93), rgba(12, 19, 19, .62)),
    url("./assets/landscape.svg") center 57% / cover no-repeat;
}
.page-heading .intro { max-width: 740px; margin: 16px 0 0; color: #d3d1c0; font-family: var(--serif); font-size: 15px; line-height: 1.8; }
.page-heading .small-note { display: block; max-width: 880px; margin-top: 13px; color: #b8b7a7; font-size: 12px; line-height: 1.7; }
.page-heading .back-link { margin-bottom: 28px; }
.archive-heading { padding-block: 42px 32px; }
.archive-heading h1 { margin-top: 6px; }
.archive-heading .intro { margin-top: 10px; }
.archive-layout { padding-block: 31px 105px; }
.archive-tools { display: grid; gap: 22px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.search-field { position: relative; display: block; width: min(100%, 740px); }
.search-field span { display: block; margin-bottom: 10px; color: var(--gold-light); font-size: 12px; }
.search-field input {
  display: block;
  width: 100%;
  height: 58px;
  padding: 0 55px 0 18px;
  border: 1px solid #c4ab7c;
  border-radius: 0;
  outline: 0;
  color: #222a25;
  background: #eee5d3;
  font-size: 16px;
}
.search-field input::placeholder { color: #687068; }
.search-field input:focus { border-color: #f4dba5; box-shadow: 0 0 0 2px rgba(228, 203, 145, .18); }
.search-field::after { content: "⌕"; position: absolute; right: 15px; bottom: 4px; color: #6f603d; font-size: 35px; line-height: 1; pointer-events: none; }
.archive-filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px 26px; }
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filter-button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: #c5c4b5;
  background: transparent;
  font-size: 12px;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.filter-button:hover { color: #f7e8c6; border-color: var(--line-bright); }
.filter-button[aria-pressed="true"] { color: #131a17; border-color: var(--gold-light); background: var(--gold-light); font-weight: 700; }
.archive-more-filters { color: #c6c3b1; font-size: 12px; }
.archive-more-filters summary { width: max-content; cursor: pointer; color: var(--gold-light); }
.archive-more-filters .filter-group { margin-top: 15px; }
.archive-reset { width: max-content; padding: 0; border: 0; color: #cdb88e; background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.archive-reset:hover { color: #f4dba5; }
.archive-count { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; color: #b9bdb0; font-size: 12px; }
.archive-count strong { color: var(--gold-light); font-size: 14px; }
.load-more-wrap { display: flex; justify-content: center; padding-top: 38px; }
.empty-result { grid-column: 1 / -1; padding: 58px 20px; border: 1px solid var(--line); color: #c5c5b4; text-align: center; line-height: 1.9; }
.chronicle-list { display: grid; gap: 12px; padding-block: 48px 100px; }
.chronicle-row {
  display: grid;
  grid-template-columns: 80px 1fr 180px;
  align-items: center;
  gap: 20px;
  min-height: 144px;
  padding: 26px 32px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, #1b2423, #11191a);
  transition: transform .2s ease, border-color .2s ease;
}
.chronicle-row:hover { transform: translateX(4px); border-color: var(--gold); }
.chronicle-row .row-number { color: var(--gold-light); font-family: Georgia, serif; font-size: 37px; }
.chronicle-row h2 { margin: 0 0 7px; font-family: var(--serif); font-size: 25px; font-weight: 600; }
.chronicle-row p { margin: 0; color: #bfc3b5; font-size: 13px; line-height: 1.7; }
.chronicle-row .row-era { justify-self: end; color: #b8a277; font-size: 12px; text-align: right; }

/* Individual encyclopedia pages */
.detail-cover {
  position: relative;
  overflow: hidden;
  padding: 26px 0 69px;
  background:
    radial-gradient(circle at 79% 42%, var(--glow, rgba(187, 155, 83, .23)), transparent 31%),
    linear-gradient(110deg, #111a1b, var(--tone-deep, #1e2523) 86%);
}
.detail-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .36;
  background: url("./assets/landscape.svg") center 60% / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent 5%, black 75%);
  pointer-events: none;
}
.detail-cover-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: 30px; }
.detail-main { min-width: 0; }
.detail-cover .detail-eyebrow { margin-top: 24px; color: var(--tone, var(--gold-light)); font-size: 12px; }
.detail-cover h1 { max-width: 1000px; margin: 12px 0 6px; font-family: var(--serif); font-size: clamp(40px, 5vw, 69px); font-weight: 700; line-height: 1.22; letter-spacing: .02em; }
.detail-cover .detail-english { color: #b8b8a7; font-family: Georgia, serif; font-size: 13px; line-height: 1.5; }
.detail-cover .detail-summary { max-width: 800px; margin: 20px 0 0; color: #e4e1d2; font-family: var(--serif); font-size: 16px; line-height: 1.85; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 29px; max-width: 840px; margin-top: 20px; }
.detail-meta span { color: #d4d1be; font-size: 12px; line-height: 1.6; }
.detail-meta b { margin-right: 8px; color: var(--tone, var(--gold-light)); font-size: 11px; font-weight: 500; }
.detail-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.detail-links span { align-self: center; color: #c5c3ad; font-size: 11px; }
.detail-links div { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-links a { padding: 7px 10px; border: 1px solid rgba(237, 219, 173, .32); color: #ecd9ac; font-size: 12px; }
.detail-links a:hover { border-color: var(--gold-light); background: rgba(221, 192, 132, .1); }
.detail-emblem {
  position: relative;
  width: 240px;
  height: 240px;
  justify-self: end;
  border: 1px solid var(--tone, #c5ae7e);
  border-radius: 50%;
  opacity: .58;
  box-shadow: 0 0 0 32px rgba(221, 204, 165, .03), 0 0 0 72px rgba(221, 204, 165, .025);
}
.detail-emblem::before { content: var(--mark, "✦"); position: absolute; inset: 0; display: grid; place-items: center; color: var(--tone, #c5ae7e); font-family: Georgia, var(--serif); font-size: 128px; line-height: 1; }
.detail-emblem::after { content: ""; position: absolute; inset: 20px; border: 1px solid var(--tone, #c5ae7e); border-radius: 50%; opacity: .38; }
.reading-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 790px) minmax(185px, 230px);
  justify-content: space-between;
  gap: clamp(45px, 7vw, 110px);
  margin-top: -26px;
  margin-bottom: 70px;
  padding: 50px clamp(42px, 5.5vw, 80px) 75px;
  border-top: 3px solid #b9995b;
  color: var(--paper-ink);
  background: var(--paper);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .24);
}
.reading-main { min-width: 0; grid-column: 1; grid-row: 1; }
.reading-lead { margin: 0 0 36px; color: #4b524a; font-family: var(--serif); font-size: 18px; line-height: 1.95; }
.reading-rail { position: sticky; top: 100px; align-self: start; grid-column: 2; grid-row: 1; padding-top: 3px; }
.rail-label { color: #856940; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.rail-list { display: grid; gap: 3px; margin-top: 16px; }
.rail-list button { width: 100%; padding: 8px 10px 8px 0; border: 0; color: #5d665d; background: transparent; text-align: left; font-family: var(--serif); font-size: 13px; line-height: 1.5; }
.rail-list button:hover { color: #855f2c; }
.rail-divider { height: 1px; margin-block: 24px; background: rgba(73, 65, 51, .23); }
.rail-related { display: grid; gap: 12px; margin-top: 16px; }
.rail-related a { color: #46534a; font-family: var(--serif); font-size: 13px; line-height: 1.5; }
.rail-related a:hover { color: #8a6534; }
.prose-section { margin-bottom: 39px; padding-bottom: 35px; border-bottom: 1px solid rgba(72, 66, 53, .24); scroll-margin-top: 100px; }
.prose-section:last-of-type { border-bottom: 0; }
.prose-section .section-index { display: block; margin-bottom: 11px; color: #9b7c47; font-family: Georgia, serif; font-size: 12px; letter-spacing: .1em; }
.prose-section h2 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(25px, 2.4vw, 32px); font-weight: 700; line-height: 1.4; }
.prose-section p { margin: 0 0 19px; color: #303a34; font-family: var(--serif); font-size: 17px; line-height: 2.03; letter-spacing: .012em; }
.prose-section p:last-child { margin-bottom: 0; }
.chronicle-inline-figure {
  margin: 25px 0 36px;
  border: 1px solid rgba(81, 69, 51, .22);
  border-top: 2px solid #aa8550;
  background: #142020;
}
.chronicle-figure-image { display: block; }
.chronicle-figure-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}
.chronicle-inline-figure figcaption {
  display: grid;
  gap: 5px;
  padding: 13px 16px 15px;
  color: #4d584f;
  background: #e7decd;
  font-size: 13px;
  line-height: 1.65;
}
.chronicle-figure-stage {
  color: #825d2f;
  font-size: 11px;
  letter-spacing: .08em;
}
.chronicle-figure-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 18px;
  margin-top: 2px;
  font-size: 12px;
}
.chronicle-figure-links a { color: #765832; text-decoration: underline; text-underline-offset: .18em; }
.chronicle-figure-links a:hover { color: #4f371b; }
@media (max-width: 740px) {
  .chronicle-inline-figure { margin: 22px 0 31px; }
  .chronicle-figure-image img { max-height: 400px; }
  .chronicle-inline-figure figcaption { padding: 11px 13px 13px; font-size: 12px; }
  .chronicle-figure-links { display: grid; font-size: 11px; }
}
.prose-section .character-link, .reading-lead .character-link, .profile-documentary-lead .character-link, .profile-documentary-coda .character-link {
  color: #76511f;
  text-decoration: underline;
  text-decoration-color: #a67937;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-skip-ink: auto;
}
.prose-section .character-link:hover, .reading-lead .character-link:hover, .profile-documentary-lead .character-link:hover, .profile-documentary-coda .character-link:hover {
  color: #4c3317;
  text-decoration-color: currentColor;
  background: rgba(166, 121, 55, .12);
}
.source-block { margin-top: 50px; padding-top: 27px; border-top: 1px solid rgba(72, 66, 53, .3); }
.source-block h2 { margin: 0 0 9px; color: #775b34; font-size: 14px; font-weight: 700; }
.source-block p { color: #5a645b; font-size: 12px; line-height: 1.8; }
.source-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.source-list a { display: inline-flex; max-width: 100%; padding: 8px 10px; overflow-wrap: anywhere; border: 1px solid rgba(104, 82, 48, .32); color: #5e4d34; font-size: 12px; line-height: 1.5; }
.source-list a:hover { border-color: #846230; color: #493318; }
.related-section { padding-bottom: 90px; }
.related-section .section-head { margin-bottom: 24px; }

/* Notes and footer */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 790px) minmax(210px, 310px);
  gap: clamp(45px, 7vw, 100px);
  padding-block: 62px 100px;
}
.about-layout h2 { margin: 0 0 18px; font-family: var(--serif); font-size: 30px; font-weight: 700; }
.about-layout h3 { margin: 37px 0 12px; color: var(--gold-light); font-family: var(--serif); font-size: 20px; }
.about-layout p, .about-layout li { color: #d1d1c1; font-family: var(--serif); font-size: 15px; line-height: 1.95; }
.about-layout ol, .about-layout ul { padding-left: 24px; }
.about-layout li { margin-bottom: 12px; }
.about-layout li a { margin-inline: 3px; }
.about-panel { align-self: start; padding: 28px; border: 1px solid var(--line); background: #1b2423; }
.about-panel .panel-number { color: var(--gold-light); font-family: Georgia, serif; font-size: 42px; }
.about-panel .panel-caption { display: block; margin: 5px 0 25px; color: #bec1b0; font-size: 12px; line-height: 1.6; }
.about-panel .panel-line { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.about-panel a { color: var(--gold-light); font-size: 12px; line-height: 1.7; }
.about-panel a:hover { text-decoration: underline; }
.about-links { display: grid; gap: 10px; margin-top: 15px; }
.site-footer { border-top: 1px solid var(--line); background: #080d0e; }
.footer-inner { display: flex; justify-content: space-between; gap: 45px; width: min(var(--width), calc(100% - 80px)); margin-inline: auto; padding: 45px 0 35px; }
.footer-title { color: var(--gold-light); font-family: var(--serif); font-size: 19px; }
.footer-inner p { margin: 12px 0 0; color: #aeb4a8; font-size: 12px; line-height: 1.7; }
.footer-links { display: flex; align-self: center; gap: 28px; color: #c8c8b8; font-size: 12px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-note { width: min(var(--width), calc(100% - 80px)); margin-inline: auto; padding: 20px 0 26px; border-top: 1px solid var(--line); color: #929b8f; font-size: 11px; line-height: 1.7; }

@media (max-width: 1100px) {
  .wordmark-rule, .wordmark-sub { display: none; }
  .hero-picks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-pick { min-height: 160px; }
  .entry-grid, .related-grid, .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-cover-inner { grid-template-columns: minmax(0, 1fr) 170px; }
  .detail-emblem { width: 165px; height: 165px; }
  .detail-emblem::before { font-size: 95px; }
}

@media (max-width: 740px) {
  .container, .hero-inner, .footer-inner, .footer-note { width: min(var(--width), calc(100% - 36px)); }
  .site-header { display: block; min-height: 0; padding: 12px 18px 0; }
  .wordmark { height: 27px; }
  .wordmark-name { font-size: 16px; }
  .site-nav { gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding-block: 11px 12px; font-size: 12px; }
  .hero { min-height: 400px; }
  .hero-art { background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgba(6, 11, 12, .7), rgba(6, 11, 12, .26)), linear-gradient(0deg, #0b1112, transparent 43%); }
  .hero-inner { padding-top: 52px; padding-bottom: 96px; }
  .hero-title { margin-top: 13px; font-size: clamp(47px, 9vw, 68px); }
  .hero-subtitle { font-size: 10px; letter-spacing: .2em; }
  .hero-lede { max-width: 360px; margin-top: 17px; font-size: 14px; line-height: 1.75; }
  .hero-search { min-height: 51px; margin-top: 20px; }
  .hero-search input { font-size: 14px; }
  .hero-search button { min-width: 94px; padding-inline: 12px; font-size: 12px; }
  .hero-picks { margin-top: -54px; padding-bottom: 10px; }
  .hero-picks-heading { align-items: start; }
  .hero-picks-heading p { display: none; }
  .hero-picks-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(175px, 53vw); grid-template-columns: none; gap: 9px; margin-right: -18px; padding: 0 18px 15px 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .hero-picks-grid { scrollbar-width: none; }
  .hero-picks-grid::-webkit-scrollbar { display: none; }
  .hero-pick { min-height: 167px; scroll-snap-align: start; }
  .hero-pick-name { font-size: 21px; }
  .home-story { display: block; margin-top: 25px; margin-bottom: 28px; padding: 29px 26px; }
  .home-story-heading h2 { font-size: 29px; }
  .home-story-content { margin-top: 21px; padding: 20px 0 0; border-top: 1px solid rgba(96, 84, 62, .26); border-left: 0; }
  .home-story-content p { font-size: 15px; line-height: 1.85; }
  .section { padding-block: 62px; }
  .section-head { display: block; }
  .section-head p, .section-head .text-link { margin-top: 16px; }
  .entry-grid, .related-grid, .chapter-grid { grid-template-columns: 1fr; }
  .entry-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 200px; }
  .entry-card-art { min-height: 100%; flex-basis: auto; }
  .entry-card-art::before { top: 18px; right: -51px; width: 145px; height: 145px; }
  .entry-card-art::after { right: 6px; bottom: 37px; font-size: 62px; }
  .entry-card-body { padding: 16px 16px 14px; }
  .entry-card h3 { margin-top: 12px; font-size: 21px; }
  .entry-card .english { margin-bottom: 8px; }
  .entry-card .summary { font-size: 12px; -webkit-line-clamp: 2; }
  .entry-card .region { display: none; }
  .entry-card .entry-more { padding-top: 3px; }
  .chapter-card { min-height: 225px; }
  .page-heading { padding: 43px 0 36px; }
  .archive-heading { padding: 31px 0 26px; }
  .page-heading .intro { font-size: 14px; }
  .page-heading .small-note { font-size: 11px; }
  .archive-layout { padding-top: 23px; }
  .search-field input { height: 53px; }
  .archive-filter-row { display: block; }
  .archive-filter-row .filter-group + .filter-group { margin-top: 10px; }
  .archive-count span:last-child { display: none; }
  .chronicle-row { grid-template-columns: 46px 1fr; gap: 14px; min-height: 125px; padding: 19px 18px; }
  .chronicle-row .row-number { font-size: 28px; }
  .chronicle-row h2 { font-size: 21px; }
  .chronicle-row .row-era { display: none; }
  .detail-cover { padding: 22px 0 53px; }
  .detail-cover-inner { display: block; }
  .detail-cover .detail-eyebrow { margin-top: 19px; }
  .detail-cover h1 { font-size: clamp(35px, 7.3vw, 50px); }
  .detail-cover .detail-summary { margin-top: 16px; font-size: 15px; line-height: 1.78; }
  .detail-emblem { display: none; }
  .detail-meta { gap: 7px 16px; margin-top: 16px; }
  .detail-meta span { font-size: 11px; }
  .detail-links { display: block; margin-top: 12px; }
  .detail-links > span { display: none; }
  .detail-links > div { flex-wrap: nowrap; gap: 7px; margin-right: -18px; padding-right: 18px; overflow-x: auto; scrollbar-width: none; }
  .detail-links > div::-webkit-scrollbar { display: none; }
  .detail-links a { flex: 0 0 auto; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .reading-layout { display: flex; flex-direction: column; gap: 17px; width: min(100% - 24px, var(--width)); margin-top: -18px; margin-bottom: 49px; padding: 22px 21px 45px; }
  .reading-rail { position: static; order: 0; align-self: stretch; min-width: 0; width: 100%; padding: 0 0 11px; overflow-x: auto; border-bottom: 1px solid rgba(72, 66, 53, .24); scrollbar-width: none; }
  .reading-rail::-webkit-scrollbar { display: none; }
  .rail-list { display: flex; gap: 8px; margin-top: 9px; white-space: nowrap; }
  .rail-list button { width: auto; flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(96, 85, 61, .25); font-size: 12px; }
  .rail-divider, .rail-related, .reading-rail > .rail-label:not(:first-child) { display: none; }
  .reading-main { order: 1; }
  .prose-section h2 { font-size: 25px; }
  .prose-section p { font-size: 15px; line-height: 1.95; }
  .related-section { padding-bottom: 60px; }
  .about-layout { display: block; padding-block: 46px 70px; }
  .about-panel { margin-top: 38px; }
  .footer-inner { display: block; }
  .footer-links { flex-wrap: wrap; gap: 18px; margin-top: 25px; }
}

@media (max-width: 430px) {
  .hero-title { font-size: 48px; }
  .hero-search button { min-width: 78px; }
  .entry-card { grid-template-columns: 84px minmax(0, 1fr); }
  .entry-card-art::before { right: -86px; }
  .entry-card-art::after { right: -15px; }
  .entry-card .english { display: none; }
  .entry-card .summary { font-size: 11.5px; }
  .detail-cover h1 { font-size: 35px; }
  .detail-meta span:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Home: a quiet gallery of people, with the reading tools kept below the images. */
.home-landing {
  min-height: calc(100vh - 70px);
  padding: clamp(31px, 3.2vw, 48px) 0 95px;
  background:
    radial-gradient(circle at 50% -120px, rgba(156, 131, 91, .11), transparent 560px),
    #0a1011;
}
.home-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 25px;
}
.home-kicker {
  margin: 0 0 11px;
  color: #a48d64;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
}
.home-heading h1 {
  margin: 0;
  color: #f0e9d9;
  font-family: var(--serif);
  font-size: clamp(36px, 3.3vw, 51px);
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1.2;
}
.home-count {
  flex: 0 0 auto;
  padding-bottom: 7px;
  color: #aab0a7;
  font-size: 12px;
  letter-spacing: .025em;
}
.home-heading.container,
.home-gallery.container,
.home-tools.container { width: min(1450px, calc(100% - 52px)); }
.home-gallery {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 10px;
  height: clamp(420px, 36vw, 570px);
}
.home-person {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(215, 198, 160, .2);
  background: linear-gradient(135deg, #293037, #14191c 70%);
  box-shadow: 0 21px 48px rgba(0, 0, 0, .23);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.home-person:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 204, 150, .75);
  box-shadow: 0 27px 56px rgba(0, 0, 0, .36);
}
.home-person-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(.85) contrast(1.04) brightness(.89);
  transition: transform .55s ease, filter .55s ease;
}
.home-person:hover .home-person-image { transform: scale(1.045); filter: saturate(.97) contrast(1.05) brightness(.98); }
.home-person[data-person="ranni"] .home-person-image { object-position: center 30%; }
.home-person[data-person="boss-malenia"] .home-person-image { object-position: 49% 28%; }
.home-person[data-person="boss-messmer-the-impaler"] .home-person-image { object-position: 54% 31%; filter: saturate(1.2) contrast(1.03) brightness(1.2); }
.home-person[data-person="melina"] .home-person-image { object-position: 50% 24%; filter: saturate(.95) contrast(1.05) brightness(1.1); }
.home-person-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 8, 9, .08) 35%, rgba(4, 8, 9, .12) 53%, rgba(4, 8, 9, .84) 100%);
}
.home-person-caption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 24px;
  left: 24px;
  display: block;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
}
.home-person-name {
  display: block;
  color: #fff7e9;
  font-family: var(--serif);
  font-size: clamp(27px, 2.05vw, 35px);
  font-weight: 600;
  letter-spacing: .045em;
  line-height: 1.28;
}
.home-person-feature .home-person-name { font-size: clamp(36px, 3.2vw, 50px); }
.home-person-english {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(239, 224, 191, .79);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.home-person-arrow {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(246, 232, 203, .54);
  border-radius: 50%;
  color: #f7e8c9;
  background: rgba(7, 14, 15, .28);
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1;
  backdrop-filter: blur(5px);
  transition: background .25s ease, color .25s ease;
}
.home-person:hover .home-person-arrow { color: #1c211b; background: #e5cc95; }
.home-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  padding-top: 20px;
}
.home-tools .hero-search { width: min(100%, 530px); margin: 0; }
.home-tools .hero-search label { margin-bottom: 8px; color: #a8a99d; font-size: 11px; }
.home-tools .hero-search-control {
  min-height: 50px;
  border-color: rgba(215, 196, 157, .32);
  background: #111a1b;
  box-shadow: none;
  backdrop-filter: none;
}
.home-tools .hero-search input { font-size: 13px; }
.home-tools .hero-search button { min-width: 94px; color: #19201c; font-size: 12px; }
.home-links { display: flex; flex-wrap: wrap; gap: 9px; }
.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 50px;
  min-width: 154px;
  padding: 0 16px;
  border: 1px solid rgba(215, 196, 157, .3);
  color: #e6ddc9;
  background: #111a1b;
  font-size: 12px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.home-link span { color: #d1b778; font-family: Georgia, serif; font-size: 17px; }
.home-link:hover { border-color: #cbb17b; color: #fff3d5; background: #1b2625; }

@media (max-width: 1050px) {
  .home-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
  .home-person { height: 430px; }
  .home-person-feature .home-person-name { font-size: 38px; }
  .home-tools { align-items: stretch; }
  .home-tools .hero-search { flex: 1; }
}

@media (max-width: 700px) {
  .home-landing { min-height: calc(100vh - 89px); padding: 29px 0 65px; }
  .home-heading.container, .home-tools.container { width: calc(100% - 36px); }
  .home-heading { align-items: start; margin-bottom: 19px; }
  .home-kicker { margin-bottom: 9px; font-size: 9px; letter-spacing: .13em; }
  .home-heading h1 { font-size: 34px; }
  .home-count { padding-top: 21px; font-size: 10px; text-align: right; }
  .home-gallery.container { width: calc(100% - 18px); margin-left: 18px; margin-right: 0; }
  .home-gallery {
    display: flex;
    gap: 9px;
    height: min(59vh, 490px);
    min-height: 360px;
    padding-right: 18px;
    overflow-x: auto;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .home-gallery::-webkit-scrollbar { display: none; }
  .home-person { flex: 0 0 min(77vw, 330px); height: 100%; scroll-snap-align: start; }
  .home-person-caption { right: 14px; bottom: 20px; left: 19px; }
  .home-person-name, .home-person-feature .home-person-name { font-size: 30px; }
  .home-person-arrow { top: 13px; right: 13px; width: 31px; height: 31px; font-size: 17px; }
  .home-tools { display: block; padding-top: 20px; }
  .home-tools .hero-search { width: 100%; }
  .home-links { margin-top: 12px; }
  .home-link { flex: 1; min-width: 0; }
}

@media (max-width: 430px) {
  .home-heading { display: block; }
  .home-count { display: block; padding: 9px 0 0; text-align: left; }
  .home-gallery { height: min(56vh, 465px); }
  .home-tools .hero-search button { min-width: 75px; }
}

/* Character archive: portraits first, then a compact name register. */
.archive-landing {
  padding: clamp(32px, 3.5vw, 52px) 0 42px;
  border-bottom: 1px solid rgba(221, 198, 149, .16);
  background:
    radial-gradient(ellipse at 50% -30%, rgba(162, 126, 67, .13), transparent 56%),
    #0a1011;
}
.archive-heading { padding: 0; }
.archive-heading-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 27px;
}
.archive-kicker {
  display: block;
  margin-bottom: 12px;
  color: #aa9368;
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}
.archive-heading h1 {
  margin: 0;
  color: #f3ead9;
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 62px);
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.16;
}
.archive-heading-count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 3px;
  color: #aaa99b;
  white-space: nowrap;
}
.archive-heading-count strong {
  color: #e5d0a5;
  font-family: Georgia, serif;
  font-size: clamp(32px, 3.2vw, 47px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}
.archive-heading-count span { font-size: 11px; letter-spacing: .08em; }
.archive-featured[hidden] { display: none; }
.archive-featured-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #bdac86;
  font-size: 11px;
  letter-spacing: .14em;
}
.archive-featured-label::before { content: ""; width: 18px; height: 1px; background: #b69c68; }
.archive-featured-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  height: clamp(270px, 25vw, 344px);
}
.archive-feature-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(214, 193, 149, .19);
  background: #222c2c;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .2);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.archive-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 199, 143, .72);
  box-shadow: 0 23px 42px rgba(0, 0, 0, .33);
}
.archive-feature-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(.83) contrast(1.05) brightness(.9);
  transition: transform .5s ease, filter .5s ease;
}
.archive-feature-card:hover img { transform: scale(1.045); filter: saturate(.97) contrast(1.06) brightness(1); }
.archive-feature-card[data-person="ranni"] img { object-position: center 30%; }
.archive-feature-card[data-person="boss-starscourge-radahn"] img { object-position: center 25%; }
.archive-feature-card[data-person="boss-malenia"] img { object-position: 49% 28%; }
.archive-feature-card[data-person="boss-messmer-the-impaler"] img { object-position: 54% 31%; filter: saturate(1.14) contrast(1.04) brightness(1.13); }
.archive-feature-card[data-person="melina"] img { object-position: 50% 24%; filter: saturate(.94) contrast(1.05) brightness(1.08); }
.archive-feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 10, .03) 36%, rgba(6, 9, 10, .23) 62%, rgba(6, 9, 10, .9));
  pointer-events: none;
}
.archive-feature-caption {
  position: absolute;
  right: 16px;
  bottom: 20px;
  left: 21px;
  display: grid;
  gap: 5px;
  text-shadow: 0 2px 13px rgba(0, 0, 0, .8);
}
.archive-feature-name {
  color: #fff6e6;
  font-family: var(--serif);
  font-size: clamp(24px, 2.1vw, 31px);
  font-weight: 600;
  line-height: 1.26;
}
.archive-feature-english {
  overflow: hidden;
  color: rgba(241, 226, 195, .83);
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: .13em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.archive-feature-arrow {
  position: absolute;
  top: 15px;
  right: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(248, 233, 200, .55);
  border-radius: 50%;
  color: #f8eaca;
  background: rgba(5, 12, 13, .34);
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1;
  backdrop-filter: blur(4px);
}
.archive-feature-card:hover .archive-feature-arrow { color: #171d19; background: #e4cb91; }
.archive-layout { padding-top: 0; padding-bottom: 95px; }
.archive-tools {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 395px) minmax(0, 1fr);
  align-items: end;
  gap: 30px;
  padding: 29px 0 21px;
  border-bottom: 1px solid rgba(220, 204, 172, .18);
}
.archive-search-field { width: 100%; }
.archive-search-field span {
  margin-bottom: 8px;
  color: #b6aa91;
  font-size: 11px;
  letter-spacing: .09em;
}
.archive-search-field input {
  height: 49px;
  border-color: rgba(215, 197, 159, .32);
  color: #f2e9d8;
  background: #121b1c;
  font-size: 13px;
}
.archive-search-field input::placeholder { color: #8f968d; }
.archive-search-field input:focus { border-color: #ddc18a; box-shadow: 0 0 0 2px rgba(224, 193, 132, .11); }
.archive-search-field::after { right: 14px; bottom: 5px; color: #c6ad7d; font-size: 30px; }
.archive-filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px 21px;
  min-height: 49px;
}
.archive-primary-filters { flex-wrap: nowrap; gap: clamp(7px, 1.2vw, 22px); }
.archive-primary-filters .filter-button {
  min-height: 47px;
  padding: 8px 7px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #aeb4a8;
  background: transparent;
  font-size: 13px;
  white-space: nowrap;
}
.archive-primary-filters .filter-button:hover { color: #f0e0ba; border-bottom-color: rgba(210, 179, 114, .5); }
.archive-primary-filters .filter-button[aria-pressed="true"] {
  border-color: #e0c384;
  color: #f4e7c9;
  background: transparent;
  font-weight: 600;
}
.archive-more-filters { position: relative; flex: 0 0 auto; font-size: 12px; }
.archive-more-filters summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 47px;
  color: #bcb9aa;
  font-size: 12px;
  list-style: none;
  white-space: nowrap;
}
.archive-more-filters summary::-webkit-details-marker { display: none; }
.archive-more-filters summary::after { content: "⌄"; margin-top: -5px; color: #c3ab75; font-size: 17px; }
.archive-more-filters[open] summary::after { transform: rotate(180deg); margin-top: 5px; }
.archive-more-filters summary:hover, .archive-more-filters[open] summary { color: #f2dfb6; }
.archive-extra-filter-set {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, calc(100vw - 34px));
  padding: 20px 22px 23px;
  border: 1px solid rgba(220, 195, 144, .42);
  background: #192120;
  box-shadow: 0 19px 46px rgba(0, 0, 0, .43);
}
.archive-filter-label { display: block; margin: 3px 0 10px; color: #a69572; font-size: 11px; letter-spacing: .08em; }
.archive-extra-filter-set .filter-group { display: flex; gap: 7px; margin: 0 0 18px; }
.archive-extra-filter-set .filter-group:last-child { margin-bottom: 0; }
.archive-extra-filter-set .filter-button { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.archive-reset { flex: 0 0 auto; color: #c9b68e; font-size: 11px; text-decoration: none; }
.archive-reset[hidden] { display: none; }
.archive-reset:hover { text-decoration: underline; }
.archive-count {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 0;
  padding: 35px 0 18px;
}
.archive-count h2 {
  margin: 0;
  color: #eee4d0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .055em;
}
.archive-count-detail { color: #9fa69c; font-size: 11px; letter-spacing: .04em; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 30px;
}
.archive-index-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 90px;
  padding: 14px 5px 14px 0;
  border-top: 1px solid rgba(222, 204, 166, .15);
  scroll-margin-top: 90px;
  transition: background .2s ease, padding .2s ease;
}
.archive-index-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  width: 2px;
  background: #d8b879;
  opacity: 0;
  transform: scaleY(.35);
  transition: opacity .2s ease, transform .2s ease;
}
.archive-index-card:hover { padding-left: 6px; background: rgba(221, 190, 126, .035); }
.archive-index-card:hover::before { opacity: 1; transform: scaleY(1); }
.archive-index-number {
  flex: 0 0 23px;
  align-self: center;
  color: #767e75;
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: .03em;
}
.archive-index-image { position: relative; flex: 0 0 43px; width: 43px; height: 53px; overflow: hidden; background: #24302d; }
.archive-index-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 27%; filter: saturate(.82) brightness(.9); }
.archive-index-image-label { position: absolute; right: 0; bottom: 0; left: 0; padding: 2px 0; background: rgba(15, 23, 22, .88); color: #e9e4d8; font-size: 8px; line-height: 1.2; text-align: center; white-space: nowrap; }
.archive-index-main { display: grid; min-width: 0; flex: 1; gap: 5px; }
.archive-index-name {
  overflow: hidden;
  color: #e9e4d8;
  font-family: var(--serif);
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.archive-index-card:hover .archive-index-name { color: #f5e3b9; }
.archive-index-meta { overflow: hidden; color: #969f95; font-size: 10px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.archive-index-arrow { flex: 0 0 auto; color: #bda879; font-family: Georgia, serif; font-size: 17px; opacity: .45; transition: opacity .2s ease, transform .2s ease; }
.archive-index-card:hover .archive-index-arrow { opacity: 1; transform: translate(2px, -2px); }
.archive-grid .empty-result { border: 0; border-top: 1px solid var(--line); }
.archive-layout .load-more-wrap { padding-top: 32px; }

@media (max-width: 1050px) {
  .archive-featured-grid { height: 300px; }
  .archive-tools { grid-template-columns: minmax(245px, 340px) minmax(0, 1fr); gap: 18px; }
  .archive-filter-row { gap: 5px 10px; }
  .archive-primary-filters { gap: 2px; }
  .archive-primary-filters .filter-button { padding-inline: 5px; font-size: 12px; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; }
}

@media (max-width: 740px) {
  .archive-landing { padding: 29px 0 27px; }
  .archive-heading.container, .archive-layout.container { width: calc(100% - 36px); }
  .archive-heading-inner { align-items: end; gap: 12px; padding-bottom: 23px; }
  .archive-kicker { margin-bottom: 9px; font-size: 8px; letter-spacing: .13em; }
  .archive-heading h1 { font-size: clamp(32px, 8vw, 42px); }
  .archive-heading-count { display: grid; justify-items: end; gap: 2px; padding-bottom: 0; }
  .archive-heading-count strong { font-size: 31px; }
  .archive-heading-count span { font-size: 9px; }
  .archive-featured.container { width: calc(100% - 18px); margin-left: 18px; margin-right: 0; }
  .archive-featured-label { margin-bottom: 10px; font-size: 10px; }
  .archive-featured-grid {
    display: flex;
    gap: 9px;
    height: min(65vw, 288px);
    min-height: 240px;
    margin-right: 0;
    padding-right: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .archive-featured-grid::-webkit-scrollbar { display: none; }
  .archive-feature-card { flex: 0 0 min(55vw, 240px); scroll-snap-align: start; }
  .archive-feature-name { font-size: 25px; }
  .archive-feature-caption { right: 12px; bottom: 16px; left: 16px; }
  .archive-feature-arrow { top: 12px; right: 12px; width: 29px; height: 29px; font-size: 16px; }
  .archive-layout { padding-bottom: 65px; }
  .archive-tools { display: block; padding: 21px 0 8px; }
  .archive-search-field span { margin-bottom: 7px; }
  .archive-search-field input { height: 48px; }
  .archive-filter-row { display: flex; justify-content: space-between; gap: 0 10px; margin-top: 13px; }
  .archive-primary-filters { flex: 1 1 100%; justify-content: space-between; margin: 0; border-bottom: 1px solid rgba(226, 205, 165, .14); }
  .archive-primary-filters .filter-button { min-height: 44px; padding: 8px 7px 9px; font-size: 12px; }
  .archive-filter-row .filter-group + .filter-group { margin-top: 0; }
  .archive-more-filters summary { min-height: 40px; font-size: 11px; }
  .archive-extra-filter-set { right: auto; left: 0; }
  .archive-count { align-items: end; padding: 23px 0 15px; }
  .archive-count h2 { font-size: 22px; }
  .archive-count-detail { font-size: 10px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-index-card { min-height: 81px; }
  .archive-index-name { font-size: 18px; }
  .archive-index-meta { font-size: 10px; }
}

@media (max-width: 390px) {
  .archive-heading-count strong { font-size: 27px; }
  .archive-feature-card { flex-basis: 59vw; }
  .archive-index-card { gap: 10px; }
  .archive-index-name { font-size: 17px; }
}

/* Individual profile reading experience. Keep chapter pages and the directory separate. */
.profile-page .profile-cover {
  min-height: 400px;
  padding: 27px 0 60px;
  background-color: #0d1516;
}
.profile-page .profile-cover-no-image .detail-cover-inner { display: block; }
.profile-page .profile-cover-no-image .detail-main { max-width: 800px; }
.profile-page .profile-cover-image {
  min-height: 550px;
  isolation: isolate;
  background: #0b1213;
}
.profile-page .profile-cover-image::before {
  z-index: 1;
  opacity: 1;
  mask-image: none;
  background:
    linear-gradient(90deg, #0b1314 0%, rgba(11, 19, 20, .95) 26%, rgba(11, 19, 20, .72) 48%, rgba(11, 19, 20, .07) 82%),
    linear-gradient(0deg, rgba(8, 15, 16, .64), transparent 46%);
}
.profile-page .profile-hero-figure {
  position: absolute;
  inset: 0 0 0 34%;
  margin: 0;
  overflow: hidden;
  background: #172123;
}
.profile-page .profile-hero-figure img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 33%;
  filter: saturate(.9) contrast(1.04) brightness(.84);
}
.profile-page .profile-tall-hero {
  background: radial-gradient(ellipse at 50% 42%, #3a4540, #172123 68%);
}
.profile-page .profile-tall-hero img { object-fit: contain; object-position: center top; }
.profile-page[data-entry-id="ranni"] .profile-hero-figure img { object-position: center 31%; }
.profile-page[data-entry-id="boss-malenia"] .profile-hero-figure img { object-position: 48% 27%; }
.profile-page[data-entry-id="boss-messmer-the-impaler"] .profile-hero-figure img { object-position: 54% 30%; }
.profile-page[data-entry-id="melina"] .profile-hero-figure img { object-position: 51% 23%; }
.profile-page[data-entry-id="boss-starscourge-radahn"] .profile-hero-figure img { object-position: 50% 28%; }
.profile-page[data-entry-id="hornsent"] .profile-hero-figure img { object-position: center top; }
.profile-page .profile-hero-figure figcaption {
  position: absolute;
  z-index: 3;
  right: max(40px, calc((100vw - var(--width)) / 2));
  bottom: 37px;
  display: grid;
  justify-items: end;
  gap: 3px;
  max-width: 50%;
  padding: 6px 8px;
  color: rgba(255, 248, 230, .92);
  background: rgba(5, 11, 12, .55);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
  text-shadow: 0 1px 8px #000, 0 1px 16px #000;
}
.profile-page .profile-hero-figure figcaption a { border-bottom: 1px solid rgba(238, 223, 188, .65); }
.profile-page .profile-context-label {
  color: #e5c68f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.profile-page .profile-cover .detail-cover-inner { z-index: 2; }
.profile-page .profile-cover-image .detail-cover-inner {
  display: flex;
  align-items: center;
  min-height: 462px;
}
.profile-page .profile-cover-image .detail-main { width: min(57%, 660px); }
.profile-page .profile-cover .detail-eyebrow {
  margin-top: 30px;
  color: #d9bb7e;
  font-size: 13px;
  letter-spacing: .08em;
}
.profile-page .profile-cover h1 {
  max-width: 800px;
  margin-top: 19px;
  color: #faf3e6;
  font-size: clamp(48px, 5.7vw, 78px);
  line-height: 1.18;
  text-shadow: 0 2px 17px rgba(0, 0, 0, .38);
}
.profile-page .profile-cover .profile-multi-name { font-size: clamp(39px, 4.1vw, 58px); }
.profile-page .profile-title-part { display: block; white-space: normal; }
.profile-page .profile-title-chunk { display: inline-block; white-space: nowrap; }
.profile-page .profile-title-chunk-wrap { display: inline; white-space: normal; overflow-wrap: anywhere; }
.profile-page .profile-title-divider { display: none; }
.profile-page .profile-cover .detail-english {
  color: #b7b9ac;
  font-size: 15px;
  letter-spacing: .05em;
}
.profile-page .profile-cover .detail-summary {
  max-width: 640px;
  margin-top: 29px;
  color: #eee9dc;
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 1.82;
  letter-spacing: .014em;
  text-wrap: pretty;
}
.profile-page .profile-cover-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 29px;
  color: #c3c9ba;
  font-size: 13px;
}
.profile-page .profile-cover-footer > span { color: #bfc4b6; }
.profile-page .profile-cover-footer > span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: #c2a46a;
}
.profile-page .profile-cover-footer button {
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid #bba16f;
  color: #f1dbaf;
  background: none;
  font-size: 14px;
}
.profile-page .profile-cover-footer button span { margin-left: 10px; font-size: 17px; }
.profile-page .profile-cover-footer button:hover { color: #fff1d0; border-bottom-color: #f1dbaf; }
.profile-page .reading-layout {
  grid-template-columns: minmax(0, 720px) minmax(190px, 225px);
  gap: clamp(48px, 6vw, 94px);
  margin-top: -23px;
  padding: 66px clamp(44px, 5.3vw, 78px) 82px;
  border-top-color: #bc9a5e;
  background: #f1eadd;
}
.profile-page .reading-main { max-width: 720px; }
.profile-page .profile-reading-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(112, 91, 57, .28);
  color: #83643b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}
.profile-page .profile-reading-label span:last-child { color: #7b8177; font-weight: 400; letter-spacing: 0; }
.profile-page .profile-documentary-lead {
  margin: 0 0 34px;
  color: #344239;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.88;
  letter-spacing: .01em;
}
.profile-page .prose-section {
  margin-bottom: 29px;
  padding-bottom: 0;
  border-bottom: 0;
}
.profile-page .prose-section .section-index {
  margin-bottom: 7px;
  color: #8f6c3a;
  font-size: 13px;
  letter-spacing: .15em;
}
.profile-page .prose-section h2 {
  margin-bottom: 16px;
  color: #232b27;
  font-size: clamp(26px, 2.35vw, 31px);
  line-height: 1.42;
  letter-spacing: .025em;
}
.profile-page .prose-section p {
  max-width: 39em;
  margin-bottom: 18px;
  color: #29332d;
  font-size: 19px;
  line-height: 1.98;
  letter-spacing: .014em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.profile-page .profile-documentary-coda {
  margin: 14px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(112, 91, 57, .25);
  color: #344239;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.96;
}
.profile-page .reading-rail { top: 108px; }
.profile-page .rail-label { color: #826234; font-size: 12px; }
.profile-page .rail-list { margin-top: 17px; gap: 5px; }
.profile-page .rail-list button {
  padding: 9px 11px 9px 0;
  color: #4b584f;
  font-size: 15px;
  line-height: 1.55;
}
.profile-page .rail-list button:hover { color: #8c5f22; }
.profile-page .rail-related { gap: 13px; }
.profile-page .rail-related a { font-size: 14px; }
.profile-page .prose-section .profile-story-figure {
  margin: 27px 0 36px;
  background: #142020;
  border: 1px solid rgba(78, 69, 51, .2);
}
.profile-page .profile-story-figure img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
}
.profile-page .profile-story-figure figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 3px 18px;
  padding: 12px 16px 14px;
  color: #62675d;
  background: #e7ddca;
  font-size: 12px;
  line-height: 1.6;
}
.profile-page .profile-story-figure .profile-stage,
.profile-page .profile-story-figure .profile-context-label {
  grid-column: 1 / -1;
  color: #805622;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.profile-page .profile-story-figure .profile-image-credit { grid-column: 2; white-space: nowrap; }
.profile-page .profile-story-figure a { color: #765832; border-bottom: 1px solid #a88c5d; }
.profile-page .source-block { margin-top: 58px; padding-top: 30px; }
.profile-page .source-block h2 { font-size: 17px; }
.profile-page .source-block p { font-size: 14px; }
.profile-page .source-list a { padding: 10px 12px; font-size: 13px; }

@media (max-width: 960px) {
  .profile-page .reading-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: min(100% - 40px, 780px);
    padding: 48px clamp(27px, 5vw, 54px) 68px;
  }
  .profile-page .reading-rail {
    position: static;
    order: 0;
    align-self: stretch;
    min-width: 0;
    width: 100%;
    padding: 0 0 17px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(72, 66, 53, .24);
    scrollbar-width: none;
  }
  .profile-page .reading-rail::-webkit-scrollbar { display: none; }
  .profile-page .rail-list { display: flex; gap: 8px; margin-top: 12px; white-space: nowrap; }
  .profile-page .rail-list button { width: auto; flex: 0 0 auto; padding: 9px 12px; border: 1px solid rgba(96, 85, 61, .25); font-size: 14px; }
  .profile-page .rail-divider, .profile-page .rail-related, .profile-page .reading-rail > .rail-label:not(:first-child) { display: none; }
  .profile-page .reading-main { order: 1; }
}

@media (max-width: 700px) {
  .profile-page .profile-cover-no-image { min-height: 0; padding: 22px 0 66px; }
  .profile-page .profile-cover-image { min-height: 585px; padding: 0; }
  .profile-page .profile-cover-image .profile-hero-figure { inset: 0; }
  .profile-page .profile-cover-image .profile-hero-figure img { object-position: center 23%; }
  .profile-page .profile-cover-image .profile-square-hero img { object-fit: contain; object-position: center top; }
  .profile-page .profile-cover-image .profile-tall-hero img { object-fit: cover; object-position: center top; }
  .profile-page[data-entry-id="boss-crucible-knight-siluria"] .profile-tall-hero img {
    object-position: center 70%;
    filter: saturate(1) contrast(1.07) brightness(1.08);
  }
  .profile-page .profile-cover-image::before {
    background: linear-gradient(180deg, rgba(7, 13, 14, .39) 0%, transparent 24%, rgba(8, 14, 15, .24) 41%, #0b1314 76%, #0b1314 100%);
  }
  .profile-page .profile-cover-image .detail-cover-inner {
    display: flex;
    align-items: end;
    min-height: 585px;
    padding-top: 245px;
    padding-bottom: 63px;
  }
  .profile-page .profile-cover-image .detail-main { width: 100%; max-width: none; }
  .profile-page .profile-cover-image .back-link { position: absolute; top: 24px; left: 0; }
  .profile-page[data-entry-id="needle-knight-leda"] .profile-cover-image .back-link {
    margin-left: -8px;
    padding: 5px 8px;
    background: rgba(5, 11, 12, .64);
  }
  .profile-page .profile-cover .detail-eyebrow { margin-top: 22px; font-size: 12px; }
  .profile-page .profile-cover h1 { margin-top: 15px; font-size: clamp(39px, 9vw, 51px); }
  .profile-page .profile-cover .profile-multi-name { font-size: clamp(31px, 8.3vw, 37px); }
  .profile-page .profile-cover .detail-english { font-size: 13px; }
  .profile-page .profile-cover .detail-summary { margin-top: 20px; font-size: 17.5px; line-height: 1.78; }
  .profile-page .profile-cover-footer { gap: 12px 20px; margin-top: 21px; font-size: 12px; }
  .profile-page .profile-cover-footer button { font-size: 13px; }
  .profile-page .profile-hero-figure figcaption { top: 20px; right: 16px; bottom: auto; max-width: 170px; font-size: 12px; }
  .profile-page .reading-layout {
    width: calc(100% - 20px);
    gap: 22px;
    margin-top: -24px;
    margin-bottom: 54px;
    padding: 27px 24px 54px;
  }
  .profile-page .rail-label { font-size: 11px; }
  .profile-page .rail-list { margin-top: 10px; }
  .profile-page .rail-list button { font-size: 13px; }
  .profile-page .profile-reading-label { margin-bottom: 30px; padding-bottom: 13px; font-size: 12px; }
  .profile-page .profile-documentary-lead { margin-bottom: 27px; font-size: 19px; line-height: 1.88; }
  .profile-page .prose-section { margin-bottom: 27px; padding-bottom: 0; }
  .profile-page .prose-section .section-index { margin-bottom: 8px; font-size: 11px; }
  .profile-page .prose-section h2 { margin-bottom: 15px; font-size: 26px; line-height: 1.4; }
  .profile-page .prose-section p { margin-bottom: 18px; font-size: 18.5px; line-height: 1.92; letter-spacing: .005em; }
  .profile-page .profile-documentary-coda { font-size: 18.5px; }
  .profile-page .prose-section .profile-story-figure { margin: 23px 0 32px; }
  .profile-page .profile-story-figure img { max-height: 440px; }
  .profile-page .profile-story-figure figcaption { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px 14px; font-size: 13px; }
  .profile-page .profile-story-figure .profile-image-credit { grid-column: 1; white-space: normal; }
  .profile-page .source-block { margin-top: 43px; }
  .profile-page .source-block h2 { font-size: 16px; }
  .profile-page .source-block p { font-size: 13px; }
}

@media (max-width: 390px) {
  .profile-page .profile-cover h1 { font-size: 39px; }
  .profile-page .profile-cover .profile-multi-name { font-size: clamp(28px, 8.3vw, 33px); }
  .profile-page .reading-layout { padding-inline: 21px; }
  .profile-page .prose-section p { font-size: 18px; }
}

@media (max-width: 340px) {
  .profile-page .profile-title-chunk-long { font-size: .82em; }
  .profile-page .prose-section p { font-size: 17.5px; }
}
