/* The illuminated archive: dark vellum, antique gold, and the two worlds. */
:root {
  --bg: #0a0c13;
  --panel: #12151e;
  --raised: #1c202b;
  --soft: #191b27;
  --text: #f0ebdf;
  --muted: #b4b1b9;
  --line: #35333d;
  --gold: #dcbb7c;
  --spectral: #cfbbf2;
  --violet: #bc9bdc;
  --red: #eba7a0;
  --frame-gold: #776345;
  --serif: 'Cormorant Garamond', Georgia, serif;
}
body {
  background: radial-gradient(ellipse at 95% 10%, #30233b40, transparent 40%), var(--bg);
  line-height: 1.7;
}
body.light {
  --bg: #ede7dc;
  --panel: #fffaf0;
  --raised: #f2e9da;
  --soft: #eae1d3;
  --text: #302b31;
  --muted: #62575e;
  --line: #c9bbab;
  --gold: #77531e;
  --spectral: #60467b;
  --violet: #705088;
  --red: #944136;
  --frame-gold: #9d845f;
  background: var(--bg);
}
::selection { background: #886839; color: #fff8e9; }
button, input, select, a { touch-action: manipulation; }
a, button { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.layout { grid-template-columns: 246px minmax(0, 1fr); }
.sidebar {
  background: linear-gradient(165deg, #1d1923 0%, #0e1119 38%, #0a0c13 100%);
  border-right: 1px solid #4a3d35;
}
.brand { padding: 32px 22px 28px; gap: 12px; }
.brand-mark { color: #ddbc7e; width: 36px; height: 46px; }
.brand-title { color: #f1dfbf; font-size: 25px; font-weight: 600; line-height: 1.1; }
.brand-small { font-size: 12px; color: #b5a695; letter-spacing: .14em; margin-top: 10px; }
.side-scroll { padding: 0 13px 24px; scrollbar-color: #534943 transparent; }
.side-label { color: #b4a189; letter-spacing: .15em; font-size: 12px; margin: 26px 13px 12px; }
.nav-item { color: #b6b2bd; min-height: 44px; padding: 10px 13px; border-radius: 2px; font-size: 14px; }
.nav-item svg { color: #a49988; }
.nav-item.active {
  color: #f4d898;
  background: linear-gradient(90deg, #9b773736, #9b773709);
  box-shadow: inset 2px 0 #cfaa65;
}
.nav-item.active svg { color: #e0bc76; }
.nav-item:hover { color: #fff0d5; background: #d6b56e14; }
.side-footer { border-top: 1px solid #453a33; color: #b6a895; font-size: 12px; padding: 21px 26px; }
.side-footer strong { color: #ebd7b4; font-family: var(--serif); font-size: 20px; }
.topbar {
  height: 76px; padding: 0 38px; position: sticky; top: 0; z-index: 20;
  background: #0e111af2; border-bottom: 1px solid #39323c; box-shadow: none;
  backdrop-filter: blur(16px);
}
.topbrand { font-family: var(--serif); text-transform: none; color: #cbbda9; letter-spacing: .035em; font-size: 18px; }
.topbar-actions { gap: 14px; }
.topbar button, .topbar select { color: #e9dfcc; }
.topbar-actions .icon-button, .top-search { border-color: #4a4143; border-radius: 2px; }
.icon-button { min-width: 44px; min-height: 44px; }
.top-search { min-height: 44px; background: transparent; }
.reading-control { gap: 9px; }
.reading-control select { max-width: 230px; min-height: 44px; font-size: 14px; }
main { padding: 30px 38px 55px; max-width: 1550px; }
.eyebrow { color: var(--gold); font-size: 12px; letter-spacing: .16em; }
.archive-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 390px; border: 1px solid #796142; border-radius: 3px;
  background: #0b0d14; box-shadow: 0 18px 55px #0004;
}
.archive-hero::before {
  content: ''; position: absolute; inset: 8px; z-index: 2;
  border: 1px solid #dbc29630; pointer-events: none;
}
.archive-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #0b0d14f7 0%, #0b0d14e8 27%, #0b0d1460 57%, #0b0d1405 85%), linear-gradient(0deg, #0b0d1450, transparent 35%);
}
.archive-hero > img {
  position: absolute; inset: 0 0 0 14%; width: 86%; height: 100%;
  object-fit: cover; object-position: 70% 42%; z-index: -2;
}
.archive-hero > .art-portrait { object-position: 65% 24%; inset-inline-start: 40%; width: 60%; }
.archive-hero-content { position: relative; z-index: 3; padding: 37px 40px 33px; width: 65%; max-width: 690px; }
.hero-kicker { display: flex; align-items: center; gap: 11px; color: #dfc792; font-size: 12px; letter-spacing: .18em; }
.hero-kicker span { width: 20px; height: 1px; background: #bc9b61; }
.hero-kicker span:last-child { width: 45px; }
.archive-hero h1 { font: 500 clamp(3rem, 4.7vw, 4.6rem)/.98 var(--serif); letter-spacing: -.025em; margin: 24px 0 16px; color: #fff1d6; }
.archive-hero h1 em { font-style: normal; color: #e8c689; }
.hero-description { color: #d0c7c3; font-size: 16px; max-width: 380px; line-height: 1.65; margin: 0 0 22px; }
.archive-hero .search-surface { margin: 0; max-width: 485px; }
.archive-hero .search-box input { background: #14151edb; color: #f7eedf; border-color: #99825b; border-radius: 2px; height: 56px; padding-right: 60px; }
.archive-hero .search-box input::placeholder { color: #c3b9b4; }
.archive-hero .search-box > svg { color: #d9ba7f; }
.search-key { width: 36px; height: 36px; top: 10px; right: 10px; padding: 7px; background: var(--raised); color: var(--gold); }
.search-key svg { position: static; width: 19px; height: 19px; color: inherit; }
.archive-hero .search-key { color: #ead4aa; background: #9d7b3929; border: 1px solid #7d6846; }
.hero-index { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 17px; color: #cdb78f; font-size: 14px; }
.hero-index a:hover { color: #fff3cf; text-decoration: underline; text-underline-offset: 4px; }
.hero-corner-label { position: absolute; bottom: 23px; right: 28px; font-size: 12px; letter-spacing: .2em; color: #e9d9b8; }
.archive-reader .reader-strip { margin: 13px 0 0; background: transparent; border-width: 0 0 1px; border-color: var(--line); border-radius: 0; padding: 14px 4px 19px; }
.reader-strip { background: var(--soft); border-color: var(--line); border-left-color: var(--violet); font-size: 14px; }
.reader-strip svg { color: var(--violet); }
.reader-strip button { font-size: 14px; padding: 9px 14px; border-color: var(--frame-gold); border-radius: 2px; min-height: 42px; }
.reader-strip strong { color: var(--text); }
.start-paths { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 22px 0 35px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel); }
.start-paths a { display: flex; align-items: center; gap: 15px; padding: 20px; min-width: 0; }
.start-paths a + a { border-left: 1px solid var(--line); }
.start-paths a > svg:first-child { width: 26px; height: 26px; color: var(--gold); }
.start-paths a > svg:last-child { width: 14px; margin-left: auto; color: var(--muted); }
.start-paths small { display: block; font-size: 12px; letter-spacing: .065em; color: var(--muted); margin-bottom: 4px; }
.start-paths strong { display: block; font: 600 21px/1.2 var(--serif); }
.start-paths a:hover { background: var(--raised); }
.archive-section { margin: 33px 0 18px; }
.archive-section h2 { font: 500 34px/1.18 var(--serif); margin: 5px 0 0; }
.section-title .text-link { flex-shrink: 0; font-size: 14px; }
.category-grid { gap: 18px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.category-card { min-height: 190px; overflow: hidden; position: relative; isolation: isolate; padding: 0; border: 1px solid #675442; border-radius: 2px; background: linear-gradient(120deg,#1b1d29,#252132); }
.category-card .portal-art { position: absolute; inset: 0; z-index: -2; }
.portal-art img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 27%; opacity: .65; transition: transform .5s ease, opacity .3s ease; }
.category-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#0b0e16fa 0%,#0b0e16d9 25%,#0b0e1640 78%); }
.portal-content { padding: 18px 21px 22px; height: 100%; display: flex; flex-direction: column; }
.portal-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 36px; }
.category-card .card-icon { display: flex; align-items: center; color: #edcd8c; margin: 0; }
.category-card .card-icon svg { width: 22px; height: 22px; }
.category-card .count { position: static; color: #f0dfc4; font-size: 12px; padding: 2px 7px; border: 1px solid #ccac7455; background: #0a0d17b5; }
.category-card h3 { font: 600 28px/1.15 var(--serif); color: #faecd4; margin: auto 25px 9px 0; }
.category-card p { font-size: 14px; color: #c8c1c6; line-height: 1.55; max-width: 92%; }
.portal-arrow { position: absolute; right: 17px; bottom: 23px; color: #dabb7c; opacity: .7; }
.category-card:hover { transform: translateY(-3px); border-color: #d6b477; background: #252132; }
.category-card:hover .portal-art img { transform: scale(1.05); opacity: .9; }
.category-card:hover .portal-arrow { opacity: 1; }
.secondary-portals .category-card { min-height: 168px; }
.secondary-portals .portal-meta { margin-bottom: 20px; }
.secondary-portals .portal-art img { opacity: .32; }
.archive-feature-columns { grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 22px; margin-top: 13px; }
.fandom-panel { border-radius: 2px; border: 1px solid var(--line); border-top: 2px solid var(--frame-gold); background: var(--panel); padding: 24px; box-shadow: none; }
.fandom-panel .archive-section { margin: 0 0 20px; }
.fandom-panel .archive-section h2 { font-size: 31px; }
.feature-character { grid-template-columns: minmax(130px, 38%) minmax(0,1fr); gap: 24px; }
.feature-portrait { display: block; overflow: hidden; border: 1px solid var(--frame-gold); background: #0b0e16; }
.feature-character .feature-portrait img { display: block; width: 100%; height: 100%; min-height: 260px; max-height: 380px; aspect-ratio: 3/4; border: none; border-radius: 0; object-fit: cover; object-position: center 20%; }
.feature-character p { font-size: 16px; line-height: 1.8; margin: 0 0 18px; color: var(--muted); }
.link-chips a { font-size: 14px; padding: 7px 10px; background: transparent; border-radius: 2px; }
.roots-panel > p { margin: 0 0 20px; color: var(--muted); font-size: 16px; }
.roots-panel .quick-list { margin: 0 0 20px; gap: 0; grid-template-columns: 1fr; }
.roots-panel .quick-list a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 11px 0; font-family: var(--serif); font-size: 21px; display: flex; align-items: center; gap: 12px; }
.roots-panel .quick-list a::before { content: ''; width: 5px; height: 5px; border: 1px solid var(--gold); transform: rotate(45deg); margin-left: 3px; }
.companions-section .portrait-roster { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 15px; }
.roster-card { border-radius: 2px; border-color: var(--frame-gold); background: var(--panel); box-shadow: 0 8px 18px #0002; }
.roster-card > span { font: 600 21px/1.2 var(--serif); padding: 15px 12px; color: var(--text); }
.companions-section .roster-card .entry-art img { height: auto; aspect-ratio: 3/4; object-position: center 20%; }
.roster-card:hover { border-color: var(--gold); }
.portal-explainer, .article-content, .infobox, .aside-box, .catalog-entry, .dialog { border-radius: 2px; box-shadow: none; }
.portal-explainer { border-top: 2px solid var(--frame-gold); padding: 25px; }
.portal-explainer > h2 { color: var(--gold); }
.portal-explainer > p { color: var(--muted); font-size: 16px; }
.portal-explainer .portrait-roster { grid-template-columns: repeat(6,minmax(0,1fr)); }
.portal-explainer .roster-card .entry-art img { height: 150px; }
.page-top { border-bottom-color: var(--frame-gold); padding: 5px 0 23px; }
.page-top h1 { font: 500 clamp(2.4rem, 4vw, 3.5rem)/1.12 var(--serif); }
.page-top p { color: var(--muted); font-size: 16px; }
.toolbar { background: var(--panel); border: 1px solid var(--line); padding: 18px 20px; border-radius: 2px; align-items: end; }
.toolbar label { display: grid; gap: 7px; font-size: 14px; flex: 1 1 160px; }
.toolbar input, .toolbar select { min-width: 0; width: 100%; background: var(--bg); border-color: var(--line); padding: 10px 12px; border-radius: 2px; }
.button-link, .primary-button, .portal-sections a { min-height: 42px; border-radius: 2px; }
.primary-button { color: var(--bg); background: var(--gold); }
.primary-button:hover { color: #15121b; background: #efd396; }
.alpha { gap: 5px; }
.alpha a { min-width: 36px; text-align: center; min-height: 38px; border-radius: 2px; font-size: 14px; }
.alpha a:hover { border-color: var(--gold); background: var(--raised); }
.list-group > h2 { display: flex; align-items: center; gap: 16px; margin: 28px 0 16px; font-size: 32px; }
.list-group > h2::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.entries-grid { gap: 22px; }
.catalog-entry { border: 1px solid var(--line); background: var(--panel); }
.catalog-entry:hover { background: var(--raised); border-color: var(--frame-gold); }
.entry-art { border-bottom-color: var(--frame-gold); }
.entry-copy { padding: 21px 22px 24px; }
.catalog-entry h3 { font: 600 28px/1.15 var(--serif); margin-bottom: 12px; }
.catalog-entry p { font-size: 16px; line-height: 1.7; }
.catalog-entry .entry-type { color: var(--gold); font-size: 12px; letter-spacing: .08em; margin-bottom: 9px; }
.entry-art-kind { border-color: #8c7956; color: #e3d3b5; background: #100f18e8; border-radius: 1px; }
.article-header { padding: 28px 0; border-color: var(--frame-gold); background: none; margin-bottom: 28px; }
.article-header::before { width: 80px; height: 2px; background: var(--gold); box-shadow: none; }
.article-header h1 { font: 500 clamp(2.6rem,4.7vw,4.4rem)/1.1 var(--serif); color: var(--text); }
.article-lead { color: var(--muted); max-width: 950px; font-size: 18px; line-height: 1.8; }
.article-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 28px; }
.article-content { padding: 32px; border-top: 2px solid var(--frame-gold); background: var(--panel); }
.article-content section { scroll-margin-top: 105px; }
.article-content h2 { font-size: 32px; color: var(--text); border-color: var(--line); }
.article-content h3 { font-size: 26px; }
.prose { font-size: 17px; line-height: 1.9; }
.prose a, .article-lead a { color: var(--gold); }
.article-tabs { gap: 7px; margin-bottom: -28px; flex-wrap: wrap; overflow: visible; }
.article-tabs a { color: var(--muted); padding: 12px 15px; font-size: 14px; }
.article-tabs a.active { color: var(--gold); border-color: var(--gold); background: var(--soft); }
.tag { color: var(--spectral); background: var(--soft); font-size: 13px; border-radius: 2px; }
.infobox { border-color: var(--frame-gold); }
.infobox-title { background: linear-gradient(135deg,#352a2c,#211d2d); color: #f5dfb7; border-bottom: 1px solid var(--frame-gold); font-size: 29px; padding: 22px 16px; }
.infobox-section { background: var(--raised); color: var(--gold); font-size: 14px; }
.infobox-row { font-size: 14px; padding: 12px 15px; }
.infobox-row dt { color: var(--muted); }
.infobox-row dd { color: var(--text); overflow-wrap: anywhere; }
.system-art { border-radius: 2px; border-color: var(--frame-gold); }
.system-art figcaption { background: var(--panel); border-color: var(--line); }
.art-label { color: var(--gold); }
.art-source, .source { color: var(--muted); font-size: 12px; }
.inline-toc { background: var(--soft); border-color: var(--line); border-radius: 2px; }
.inline-toc summary, .aside-box h3 { color: var(--gold); }
.toc a { font-size: 14px; padding: 9px 0; }
.taxonomy-choice { border-radius: 2px; border-top-color: var(--frame-gold); }
.taxonomy-choice:hover, .taxonomy-choice.selected { border-color: var(--gold); background: var(--raised); }
.taxonomy-choice strong { font: 600 24px/1.25 var(--serif); }
.arc-row, .chapter-card { border-radius: 2px; border-left-color: var(--frame-gold); }
.arc-row:hover, .chapter-card:hover { border-color: var(--gold); }
.arc-row h2 { font-size: 28px; }
.chapter-number { color: var(--gold) !important; }
.page-footer { margin-top: 45px; border-color: var(--frame-gold); padding-top: 24px; color: var(--muted); }
.dialog { border-color: var(--frame-gold); padding: 28px; }
.dialog h2 { color: var(--gold); font-size: 34px; }
.dialog p { font-size: 16px; }
.dialog::backdrop { background: #06070cd9; backdrop-filter: blur(5px); }
.toast { border-radius: 2px; border-color: var(--frame-gold); }
.search-box input { border-radius: 2px; }
.search-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #bf985224; }
.light .sidebar { background: linear-gradient(170deg,#352c34,#151520); }
.light .topbar { background: #fffaf0ee; border-color: var(--line); }
.light .topbar button, .light .topbar select, .light .topbrand { color: var(--text); }
.light .top-search, .light .topbar-actions .icon-button { border-color: var(--line); }
.light .side-scroll .nav-item { color: #d0c5c2; }
.light .side-scroll .nav-item.active { color: #ffe1a4; }
.light .side-footer strong { color: #ebd7b4; }
.light .category-card { border-color: #8b714d; }
.light .system-art img { background: #13131d; }
.light .infobox-title { background: #e8dcc8; color: var(--text); }
.light .archive-hero .search-key { color: #ead4aa; }
@media (min-width: 1650px) {
  main { padding: 38px 52px 60px; }
  .archive-hero { min-height: 420px; }
  .archive-hero-content { padding: 42px 47px; }
  .archive-hero h1 { font-size: 80px; }
}
@media (max-width: 1250px) {
  .layout { grid-template-columns: 220px minmax(0,1fr); }
  .brand { padding: 26px 17px; gap: 9px; }
  .brand-title { font-size: 23px; }
  .brand-mark { width: 31px; }
  main { padding: 26px; }
  .topbar { padding: 0 26px; }
  .topbrand { display: none; }
  .archive-hero-content { width: 73%; padding: 32px; }
  .archive-hero h1 { font-size: 60px; }
  .category-grid { gap: 14px; }
  .portal-content { padding: 17px; }
  .category-card h3 { font-size: 25px; }
  .start-paths a { padding: 16px; gap: 10px; }
  .start-paths a > svg:first-child { width: 21px; }
  .start-paths strong { font-size: 20px; }
  .archive-feature-columns { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 18px; }
  .feature-character { grid-template-columns: 1fr; }
  .feature-character .feature-portrait img { height: 240px; min-height: 0; object-position: center 20%; }
  .companions-section .portrait-roster { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .portal-explainer .portrait-roster { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .article-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 22px; }
  .article-content { padding: 25px; }
}
@media (max-width: 1000px) {
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .start-paths { grid-template-columns: 1fr; }
  .start-paths a { padding: 14px 20px; }
  .start-paths a + a { border-left: 0; border-top: 1px solid var(--line); }
  .archive-feature-columns { grid-template-columns: 1fr; }
  .feature-character { grid-template-columns: minmax(130px,35%) minmax(0,1fr); }
  .feature-character .feature-portrait img { height: 100%; min-height: 270px; }
  .article-layout { display: flex; flex-direction: column; gap: 18px; }
  .article-content { order: 1; padding: 22px; width: 100%; }
  .article-aside { order: 0; width: 100%; }
  .infobox { max-width: 450px; margin: 0 auto 20px; }
  .article-aside .aside-box { display: none; }
  .infobox-row { padding: 11px; grid-template-columns: 120px minmax(0,1fr); }
  .article-content .entries-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .layout { display: block; }
  .sidebar { width: 278px; z-index: 40; }
  .layout.menu-open .mobile-scrim { z-index: 39; }
  .topbar { padding: 0 18px; height: 68px; }
  .menu-button { display: inline-flex; }
  main { padding: 24px; }
  .archive-hero { min-height: 390px; }
  .archive-hero-content { width: 80%; }
  .archive-hero h1 { font-size: 64px; }
  .archive-hero > img { inset-inline-start: 0; width: 100%; opacity: .8; }
  .archive-hero > .art-portrait { inset-inline-start: 30%; width: 70%; }
  .archive-hero::after { background: linear-gradient(90deg,#0b0d14ed,#0b0d14a6 60%,#0b0d1415); }
  .archive-hero-content { max-width: 610px; }
  .hero-corner-label { display: none; }
  .start-paths { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .start-paths a { flex-wrap: wrap; gap: 10px; padding: 16px; align-content: start; }
  .start-paths a + a { border-top: 0; border-left: 1px solid var(--line); }
  .start-paths a > svg:last-child { display: none; }
  .start-paths a > span { width: 100%; }
  .article-layout { display: flex; flex-direction: column; }
  .article-content { order: 1; width: 100%; padding: 26px; }
  .article-aside { width: 100%; order: 0; }
  .infobox { max-width: 450px; margin: 0 auto 20px; }
  .infobox-row { grid-template-columns: 120px minmax(0,1fr); }
  .article-content .entries-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-content .catalog-entry { display: flex; }
  .article-content .entry-art img { height: 210px; min-height: 0; }
  .article-header { padding-top: 24px; }
  .article-header h1 { font-size: 48px; }
  .article-lead { font-size: 17px; }
  .reading-control select { max-width: 230px; }
}
@media (max-width: 540px) {
  main { padding: 16px 14px 40px; }
  .topbar { padding: 0 12px; gap: 6px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .top-search { display: inline-flex; min-width: 40px; padding: 9px; }
  .reading-control select { max-width: 178px; font-size: 14px; }
  .archive-hero { min-height: 375px; }
  .archive-hero-content { width: 100%; padding: 29px 23px 25px; }
  .archive-hero h1 { font-size: clamp(2.6rem,11vw,3.6rem); line-height: 1.02; margin-top: 25px; }
  .archive-hero > img { opacity: .55; object-position: 67% center; }
  .archive-hero::after { background: linear-gradient(90deg,#0b0d14e8,#0b0d1475),linear-gradient(0deg,#0b0d14ec,transparent); }
  .hero-kicker { font-size: 12px; letter-spacing: .12em; gap: 8px; }
  .hero-kicker span { width: 13px; }
  .hero-kicker span:last-child { width: 27px; }
  .hero-description { font-size: 16px; max-width: 290px; }
  .hero-index { gap: 10px; font-size: 14px; }
  .archive-hero .search-box input { font-size: 16px; height: 55px; padding-left: 42px; }
  .archive-hero .search-box > svg { left: 14px; }
  .reader-strip { padding: 13px; align-items: flex-start; }
  .reader-strip button { max-width: 100px; padding: 8px 10px; }
  .start-paths { grid-template-columns: 1fr; margin: 17px 0 27px; }
  .start-paths a { flex-wrap: nowrap; padding: 15px 19px; align-items: center; gap: 14px; }
  .start-paths a + a { border-left: 0; border-top: 1px solid var(--line); }
  .start-paths a > svg:last-child { display: block; }
  .start-paths a > span { width: auto; }
  .start-paths strong { font-size: 23px; }
  .archive-section { align-items: flex-end; gap: 10px; margin-top: 28px; }
  .archive-section h2 { font-size: 30px; }
  .archive-section .text-link { font-size: 14px; }
  .archive-section .text-link svg { display: none; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .category-card { min-height: 194px; }
  .portal-content { padding: 14px 13px 18px; }
  .portal-meta { margin-bottom: 36px; gap: 6px; }
  .category-card h3 { font-size: 25px; margin-right: 0; }
  .category-card p { max-width: 100%; font-size: 14px; }
  .category-card .count { font-size: 12px; padding: 1px 4px; }
  .category-card .card-icon svg { width: 18px; }
  .portal-arrow { display: none; }
  .fandom-panel { padding: 20px 17px; }
  .feature-character { grid-template-columns: 1fr; gap: 20px; }
  .feature-character .feature-portrait img { height: 310px; min-height: 0; object-position: center 19%; }
  .feature-character p { font-size: 16px; }
  .companions-section .portrait-roster { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .portal-explainer .portrait-roster { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portal-explainer { padding: 20px 17px; }
  .portal-explainer .roster-card .entry-art img { height: 190px; }
  .roster-card > span { font-size: 22px; }
  .entries-grid, .article-content .entries-entry, .article-content .entries-grid { grid-template-columns: 1fr; }
  .entry-copy { padding: 20px; }
  .catalog-entry h3 { font-size: 29px; }
  .article-content { padding: 23px 17px; }
  .article-header h1 { font-size: 42px; overflow-wrap: anywhere; }
  .article-content h2 { font-size: 30px; }
  .article-tabs a { padding: 10px 12px; }
  .prose { font-size: 16px; }
  .toolbar { padding: 15px; gap: 12px; }
  .toolbar label { flex-basis: 100%; }
  .art-gallery { grid-template-columns: 1fr; }
  .page-footer { gap: 12px; }
}
@media (max-width: 360px) {
  .reading-control select { max-width: 155px; }
  .topbar-actions .top-search { display: none; }
  .category-grid { grid-template-columns: 1fr; }
  .archive-hero-content { padding-inline: 18px; }
  .hero-index { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .category-card:hover, .category-card:hover img, .catalog-entry:hover img, .roster-card:hover img { transform: none; }
}
@media print {
  .archive-hero, .start-paths { display: none; }
  body, body.light { color: #111; background: #fff; }
  .article-content { border: 0; background: #fff; padding: 0; }
  .article-header, .article-content h2 { color: #111; }
}
