/* Kagurabachi Archive, cover-page ink: white, black, blood red, goldfish gold */
:root {
  --blood: #9b1419;
  --ruby: #c41e3a;
  --scarlet: #e23b3b;
  --ink: #0c0b0a;
  --ink-soft: #1a1614;
  --ash: #2c2622;
  --paper: #f6efe6;
  --paper-deep: #efe4d6;
  --cream: #fbf6ef;
  --gold: #c9a227;
  --gold-bright: #e8c547;
  --gold-dim: #8a6e1b;
  --line: rgba(12, 11, 10, 0.12);
  --line-strong: rgba(12, 11, 10, 0.28);
  --muted: #6b6158;
  --text: #1c1714;
  --nav-h: 4.25rem;
  --serif: "Cormorant Garamond", "Noto Serif JP", "Times New Roman", serif;
  --jp: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Source Sans 3", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 18px 50px rgba(12, 11, 10, 0.12);
  --max: 1180px;
  --article: 760px;
  --chrome-ink: #f6efe6;
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #14110f;
  --paper-deep: #1c1815;
  --cream: #1a1613;
  --text: #efe6db;
  --ash: #c9bfb3;
  --muted: #9a9086;
  --line: rgba(239, 230, 219, 0.12);
  --line-strong: rgba(239, 230, 219, 0.28);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(196, 30, 58, 0.08), transparent 50%),
    radial-gradient(900px 400px at 110% 0%, rgba(201, 162, 39, 0.08), transparent 46%),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--blood); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
button, input, select { font: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.site-search input[type="search"]:focus-visible,
.theme-toggle:focus-visible,
.nav-toggle:focus-visible {
  outline-offset: 2px;
}
::selection {
  background: var(--ruby);
  color: #fbf6ef;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover { transform: none; }
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
}

/* Top bar (Kanzenshuu editorial + wiki utility) */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 11, 10, 0.94);
  color: var(--paper);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--ruby);
}

.masthead-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 13rem;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1.05;
}
.brand-name em {
  font-style: normal;
  color: var(--gold-bright);
}
.brand-kana {
  display: block;
  font-family: var(--jp);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: rgba(246, 239, 230, 0.62);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.primary-nav a {
  color: rgba(246, 239, 230, 0.86);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(246, 239, 230, 0.3);
  padding: 0.35rem 0.55rem;
}

.theme-toggle {
  flex: none;
  background: transparent;
  color: var(--chrome-ink);
  border: 1px solid rgba(246, 239, 230, 0.3);
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.theme-toggle:hover,
.theme-toggle[aria-pressed="true"] {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search {
  display: flex;
  margin-left: auto;
  flex: 0 1 17rem;
  min-width: 10rem;
  gap: 0;
  border: 1px solid rgba(246, 239, 230, 0.28);
  background: rgba(12, 11, 10, 0.45);
}
.site-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 0.38rem 0.65rem;
  font-size: 0.88rem;
}
.site-search input[type="search"]::placeholder {
  color: rgba(246, 239, 230, 0.55);
}
.site-search input[type="search"]:focus {
  outline: none;
}
.site-search button {
  border: 0;
  background: var(--ruby);
  color: var(--paper);
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-search button:hover { background: var(--scarlet); }

.home-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.15rem 0 0;
  max-width: 36rem;
}
.home-search label {
  flex: 0 0 100%;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.home-search input[type="search"] {
  flex: 1;
  min-width: 12rem;
  border: 1px solid rgba(246, 239, 230, 0.35);
  background: rgba(12, 11, 10, 0.55);
  color: var(--paper);
  padding: 0.55rem 0.75rem;
}
.home-search button {
  border: 0;
  background: var(--gold-bright);
  color: var(--ink);
  font-weight: 600;
  padding: 0.55rem 1rem;
  cursor: pointer;
}
.home-search button:hover { background: var(--paper); }

.home-faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 1.6rem;
}
.home-faq a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.home-faq a:hover b { color: var(--blood); }
.home-faq small { color: var(--muted); font-size: 0.88rem; }

.search-hits {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}
.search-hits li {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.search-hits a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: baseline;
}
.search-hits b {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}
.search-hits .jp { font-size: 0.9rem; color: var(--muted); }
.search-hits small {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ruby);
}
.search-hits p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.search-status {
  color: var(--muted);
  margin: 0 0 1rem;
}

.crawl-nav {
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.85rem;
}
.crawl-nav a { color: var(--gold-bright); }

.faq-page h2 { scroll-margin-top: 5.5rem; }

.subnav {
  background: var(--ink-soft);
  border-bottom: 1px solid rgba(246, 239, 230, 0.08);
}
.subnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.4rem 1.25rem 0.5rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
}
.subnav a {
  color: rgba(246, 239, 230, 0.7);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.subnav a:hover { color: var(--scarlet); }

/* Layout */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}
.crumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.crumb a { color: inherit; }

.page-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.75rem;
  padding: 0 0 1.1rem 1.05rem;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 1.1rem;
  width: 3px;
  background: linear-gradient(180deg, var(--ruby), var(--gold));
  border-radius: 2px;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ruby);
  margin: 0 0 0.35rem;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0;
}
h1 .jp {
  display: block;
  font-family: var(--jp);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 0.25rem;
}
h2 { font-size: 1.85rem; margin: 2.1rem 0 0.7rem; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; }
.article h2 a,
.article h3 a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
.article h2 a:hover,
.article h3 a:hover { color: var(--blood); }
.lede {
  font-family: var(--serif);
  font-size: 1.25rem;
  max-width: 46rem;
  color: var(--ash);
  margin: 0.7rem 0 0;
}

.layout {
  display: flow-root;
  max-width: 62rem;
}
.layout.wide { display: block; }
.layout > .infobox {
  float: right;
  width: 300px;
  max-width: 42%;
  margin: 0 0 1.35rem 1.85rem;
  position: relative;
  top: auto;
}
.wrap > .article,
.wrap > .shot + .article,
.wrap > header + .article {
  max-width: var(--article);
}
.article > p { margin: 0 0 1rem; }
.article > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.1rem;
  float: left;
  line-height: 0.8;
  padding: 0.12em 0.12em 0 0;
  color: var(--ruby);
}
.article.brief > p:first-of-type::first-letter {
  font-size: inherit;
  float: none;
  line-height: inherit;
  padding: 0;
  color: inherit;
  font-family: inherit;
}

/* Infobox, Fandom pattern */
.infobox {
  background: var(--cream);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.infobox-head {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 0.85rem 0.8rem 0.95rem;
}
.infobox-head h2 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--paper);
}
.infobox-head .jp {
  display: block;
  font-family: var(--jp);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  margin-top: 0.2rem;
}
.portrait {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.portrait svg { width: 72%; height: auto; opacity: 0.95; }
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.portrait-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(12,11,10,0.85));
  color: var(--paper);
  font-size: 0.75rem;
  padding: 1.4rem 0.7rem 0.55rem;
  text-align: center;
}
.infobox dl {
  margin: 0;
  padding: 0.4rem 0 0.7rem;
}
.infobox dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 0.85rem 0;
}
.infobox dd {
  margin: 0;
  padding: 0 0.85rem 0.35rem;
  border-bottom: 1px solid var(--line);
}

/* Cards / directories */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.grid.tight { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 100%;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--ruby);
  color: inherit;
}
.card-art {
  height: 180px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.card-art svg { width: 88px; height: auto; }
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.card-body { padding: 0.85rem 0.95rem 1.05rem; }
.card-body h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 0.12rem 0.4rem;
  margin-bottom: 0.4rem;
}

/* Volume cover studies, color reconstructions, not official art */
.cover-study {
  border: 1px solid var(--line-strong);
  background: var(--cream);
  overflow: hidden;
}
.cover-face {
  aspect-ratio: 3 / 4.2;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--paper);
  overflow: hidden;
}
.cover-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-face .vol {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
}
.cover-face .title-lockup {
  font-family: var(--jp);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.cover-meta { padding: 0.8rem 0.9rem 1rem; }
.cover-meta h3 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.cover-meta p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* Tables, Kanzenshuu manga guide */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--cream);
}
th, td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.04em;
}
tr:nth-child(even) td { background: rgba(196, 30, 58, 0.035); }
table.lookup { font-size: 0.86rem; }
table.lookup th, table.lookup td { padding: 0.45rem 0.55rem; }
table.lookup td:first-child { font-weight: 600; }

/* Analysis / pull quotes */
blockquote.pull {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
}
blockquote.cite {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.15rem;
}
blockquote.cite footer {
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.note {
  border: 1px solid var(--line-strong);
  background: #fff8e8;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  margin: 1.2rem 0;
}
.note strong { color: var(--blood); }

.spoiler {
  background: var(--ink);
  color: var(--ink);
  padding: 0 0.15em;
  cursor: pointer;
  border-radius: 2px;
}
.spoiler.revealed,
.spoiler:focus {
  background: transparent;
  color: inherit;
}

.toc {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  margin: 0 0 1.4rem;
  font-size: 0.92rem;
}
.toc strong { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.35rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.2rem 0 0;
}
.related a {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 0.32rem 0.7rem;
  font-size: 0.82rem;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.related a:hover { background: var(--ruby); color: var(--paper); }
nav.related {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  margin-top: 1.6rem;
}
nav.related::before {
  content: "Keep reading";
  flex: 0 0 100%;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  margin: 0 0 0.15rem;
}
.vol-turn, .arc-jump {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.35rem 0 1rem;
}
.vol-turn a, .arc-jump a { font-weight: 600; }
.map-list {
  columns: 2;
  gap: 0 2.5rem;
  padding-left: 1.2rem;
  margin: 0 0 1.6rem;
}
.map-list li { break-inside: avoid; margin: 0.15rem 0; }
@media (max-width: 640px) {
  .map-list { columns: 1; }
}

/* Homepage, art banner, then info, then tiny buttons */
body.home {
  background: var(--cream);
}
.home .wrap {
  max-width: 1040px;
  padding-top: 1.8rem;
  padding-bottom: 4rem;
}

.home-banner {
  position: relative;
  color: var(--paper);
  min-height: 72vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(12, 11, 10, 0.12) 0%, rgba(12, 11, 10, 0.42) 46%, rgba(12, 11, 10, 0.86) 78%),
    url("../assets/covers/teaser-og.jpg") center 18% / cover no-repeat,
    var(--ink);
  border-bottom: 3px solid var(--ruby);
}
.home-banner-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8rem 1.25rem 2.4rem;
  width: 100%;
}
.home-banner .kicker {
  color: var(--gold-bright);
  margin-bottom: 0.45rem;
}
.home-banner h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 0 0 0.55rem;
  color: var(--paper);
}
.home-banner h1 .jp {
  color: var(--gold-bright);
  letter-spacing: 0.28em;
  margin-top: 0.15rem;
}
.home-banner .lede {
  color: rgba(246, 239, 230, 0.9);
  max-width: 40rem;
  margin: 0;
  font-size: 1.12rem;
}
.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.7rem;
  margin: 1.45rem 0 1.35rem;
}
.home-stats div { min-width: 5.2rem; }
.home-stats b {
  display: block;
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1;
  color: var(--gold-bright);
}
.home-stats span {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}
.home-banner .cta-row { margin-top: 0; }

.home-info {
  max-width: 40rem;
  margin: 0 0 1.1rem;
}
.home-table {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-collapse: collapse;
  background: #fffdf8;
  margin: 0 0 1.4rem;
  font-size: 0.92rem;
}
.home-table a.home-row {
  display: grid;
  grid-template-columns: 40px minmax(6.5rem, 9rem) 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.38rem 0.65rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
}
.home-table a.home-row::after {
  content: "→";
  color: var(--gold-dim);
  font-size: 0.95rem;
  opacity: 0.4;
}
.home-table a.home-row:last-child { border-bottom: 0; }
.home-table a.home-row:hover {
  background: #fff;
  color: inherit;
}
.home-table a.home-row:hover::after {
  color: var(--ruby);
  opacity: 1;
}
.home-table img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: top center;
  background: var(--ink);
}
.home-table b {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
}
.home-table small {
  color: var(--muted);
  font-size: 0.82rem;
}
.home-info h2 {
  font-size: 1.25rem;
  margin: 1.45rem 0 0.4rem;
}
.home-info h2:first-child { margin-top: 0.2rem; }
.home-info p { margin: 0 0 0.75rem; }
.home-info ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}
.home-info li { margin: 0 0 0.28rem; }
.home-facts {
  width: 100%;
  max-width: 36rem;
  border: 1px solid var(--line-strong);
  font-size: 0.88rem;
  margin: 0.4rem 0 1rem;
}
.home-facts th,
.home-facts td {
  padding: 0.38rem 0.65rem;
  background: #fffdf8;
}
.home-facts th {
  width: 8.2rem;
  color: var(--muted);
  font-weight: 600;
  background: var(--paper-deep);
}

.home-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  color: var(--muted);
}
.home-label span {
  font-family: var(--jp);
  letter-spacing: 0.22em;
  font-weight: 400;
  margin-left: 0.55rem;
  text-transform: none;
  opacity: 0.72;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
}
.tile {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: auto;
  max-width: 11.5rem;
  padding: 0.2rem 0.5rem 0.2rem 0.2rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tile:hover {
  border-color: var(--ruby);
  background: #fff;
  color: inherit;
}
.tile img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  object-position: top center;
  background: var(--ink);
  flex: none;
}
.tile b {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.15;
}
.tile small {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.64rem;
  color: var(--muted);
  line-height: 1.2;
}
.media-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
}
.media-row a, .media-row figure { margin: 0; }
.media-row img {
  width: 100%;
  aspect-ratio: 3/4.25;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--ink);
}
.media-row.wide img,
.media-row.wide a img {
  aspect-ratio: 16 / 10;
}
.shot {
  margin: 0 0 1.6rem;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  max-width: var(--article);
  overflow: hidden;
}
.shot img {
  width: 100%;
  display: block;
  max-height: 28rem;
  object-fit: cover;
  object-position: top center;
  background: var(--ink);
}
.shot figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.video {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--ink);
  margin: 0.8rem 0 1.2rem;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.credit {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.btn {
  display: inline-block;
  background: var(--ruby);
  color: var(--paper);
  text-decoration: none;
  padding: 0.65rem 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(246,239,230,0.45);
  color: var(--paper);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line-strong);
  margin: 2.4rem 0 1rem;
}
.section-head h2 { margin: 0 0 0.4rem; }
.section-head a { font-size: 0.85rem; }

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}
.panel {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem 1.3rem;
}
.panel h3 { margin-top: 0; }
.panel ol, .panel ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }

/* Timeline */
.timeline { border-left: 2px solid var(--ruby); margin: 1rem 0 0 0.4rem; padding-left: 1.2rem; }
.timeline article { margin: 0 0 1.3rem; }
.timeline time {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ruby);
}

footer.site {
  background: var(--ink);
  color: rgba(246,239,230,0.78);
  padding: 2.2rem 1.25rem 2.6rem;
  font-size: 0.88rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.75rem 2rem;
}
footer.site a { color: var(--gold-bright); }
footer.site h3 {
  margin: 0 0 0.5rem;
  color: var(--paper);
  font-size: 1.1rem;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list li { margin: 0.28rem 0; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.legal { opacity: 0.7; margin-top: 0.6rem; }

/* Portrait palettes */
.p-chihiro { background: linear-gradient(160deg, #8b1218 0%, #1a0c0d 70%); }
.p-kunishige { background: linear-gradient(160deg, #3d2a12 0%, #1a140c 70%); }
.p-shiba { background: linear-gradient(160deg, #2a3a28 0%, #101410 70%); }
.p-hakuri { background: linear-gradient(160deg, #3a2a48 0%, #161018 70%); }
.p-hiyuki { background: linear-gradient(160deg, #c2410c 0%, #3b1008 70%); }
.p-sojo { background: linear-gradient(160deg, #0e3a44 0%, #081218 70%); }
.p-yura { background: linear-gradient(160deg, #4a1020 0%, #12080c 70%); }
.p-samura { background: linear-gradient(160deg, #1e2430 0%, #0b0d12 70%); }
.p-uruha { background: linear-gradient(160deg, #6b1d2a 0%, #18080c 70%); }
.p-char { background: linear-gradient(160deg, #d4a574 0%, #4a2e1e 70%); }
.p-iori { background: linear-gradient(160deg, #4a5568 0%, #1a1e28 70%); }
.p-akemura { background: linear-gradient(160deg, #2d1b4e 0%, #0c0814 70%); }
.p-kyora { background: linear-gradient(160deg, #1f3a2e 0%, #0a1410 70%); }
.p-azami { background: linear-gradient(160deg, #1c3350 0%, #0a121c 70%); }
.p-hokuto { background: linear-gradient(160deg, #4a3814 0%, #14100a 70%); }
.p-kuguri { background: linear-gradient(160deg, #3a1428 0%, #120810 70%); }
.p-natsuki { background: linear-gradient(160deg, #1a3a58 0%, #0a121c 70%); }
.p-kasen { background: linear-gradient(160deg, #2c2a38 0%, #0c0c12 70%); }
.p-subaru { background: linear-gradient(160deg, #3a2818 0%, #14100c 70%); }
.p-tafuku { background: linear-gradient(160deg, #4a3018 0%, #1a1008 70%); }
.p-kiri { background: linear-gradient(160deg, #5a2030 0%, #140810 70%); }
.p-toto { background: linear-gradient(160deg, #3a2040 0%, #120814 70%); }
.p-yukisada { background: linear-gradient(160deg, #204040 0%, #0c1414 70%); }
.p-hagiwara { background: linear-gradient(160deg, #2a3048 0%, #0c1018 70%); }
.p-mashiro { background: linear-gradient(160deg, #284038 0%, #0c1410 70%); }
.p-hinao { background: linear-gradient(160deg, #6a4030 0%, #1a100c 70%); }
.p-itsuo { background: linear-gradient(160deg, #403020 0%, #14100c 70%); }
.p-ariu { background: linear-gradient(160deg, #203848 0%, #081018 70%); }
.p-bingo { background: linear-gradient(160deg, #503018 0%, #140c08 70%); }
.p-tenri { background: linear-gradient(160deg, #204838 0%, #0a1410 70%); }
.p-soya { background: linear-gradient(160deg, #2a2040 0%, #100c18 70%); }
.p-uran { background: linear-gradient(160deg, #1a3850 0%, #081018 70%); }
.p-tamaki { background: linear-gradient(160deg, #403040 0%, #140c14 70%); }
.p-enji { background: linear-gradient(160deg, #304030 0%, #0c140c 70%); }
.p-madoka { background: linear-gradient(160deg, #5a2018 0%, #140808 70%); }
.p-kazane { background: linear-gradient(160deg, #203040 0%, #0a1018 70%); }
.p-hasumi { background: linear-gradient(160deg, #3a3420 0%, #12100c 70%); }
.p-ichiki { background: linear-gradient(160deg, #3a2418 0%, #120c08 70%); }
.p-yatsuru { background: linear-gradient(160deg, #241830 0%, #0c0814 70%); }
.p-izaru { background: linear-gradient(160deg, #2a2018 0%, #100c08 70%); }
.p-ikura { background: linear-gradient(160deg, #384048 0%, #121418 70%); }
.p-sengoku { background: linear-gradient(160deg, #401818 0%, #140808 70%); }
.p-fushimi { background: linear-gradient(160deg, #304040 0%, #0c1414 70%); }
.p-yoshinojo { background: linear-gradient(160deg, #342448 0%, #100814 70%); }
.p-joji { background: linear-gradient(160deg, #283028 0%, #0c100c 70%); }
.p-ro { background: linear-gradient(160deg, #1e2430 0%, #0b0d12 70%); }
.p-moku { background: linear-gradient(160deg, #243028 0%, #0c120e 70%); }
.p-sumi { background: linear-gradient(160deg, #3a2030 0%, #140810 70%); }
.p-kugara { background: linear-gradient(160deg, #2a3040 0%, #0c1018 70%); }

.blade-enten { background: linear-gradient(180deg, #111 0%, #7a1014 55%, #c9a227 100%); }
.blade-kuregumo { background: linear-gradient(180deg, #0a1c22 0%, #1a6a7a 55%, #dceef2 100%); }
.blade-magatsumi { background: linear-gradient(180deg, #14081a 0%, #4a1858 40%, #c41e3a 100%); }
.blade-kumeyuri { background: linear-gradient(180deg, #2a1020 0%, #8a2a4a 60%, #f0c4c8 100%); }
.blade-tobimune { background: linear-gradient(180deg, #0c0c10 0%, #2a3048 55%, #e8d080 100%); }

/* Editorial home, path, not a jacket dump */
.paths {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.path {
  background: var(--cream);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.path:hover { border-color: var(--ruby); color: inherit; transform: translateY(-2px); }
.path-art {
  height: 7.2rem;
  overflow: hidden;
  background: var(--ink);
}
.path-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.path-body { padding: 0.85rem 0.95rem 1.05rem; }
.path .n {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ruby);
}
.path h3 { margin: 0.2rem 0 0.35rem; font-size: 1.25rem; }
.path p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  align-items: start;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  padding: 1.1rem;
}
.feature figure { margin: 0; }
.feature img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}
.feature h2 { margin: 0 0 0.55rem; }
.feature p { margin: 0 0 0.85rem; }
.feature .kicker { margin-bottom: 0.45rem; }

.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.person {
  text-decoration: none;
  color: inherit;
}
.person:hover { color: inherit; }
.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line-strong);
  background: var(--ink);
}
.person h3 { margin: 0.45rem 0 0.1rem; font-size: 1.1rem; }
.person p { margin: 0; font-size: 0.82rem; color: var(--muted); }

.catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.catalog article {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.95rem 1.05rem 1.1rem;
}
.catalog h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.catalog p { margin: 0 0 0.55rem; font-size: 0.92rem; }
.catalog a.watch {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cuts-wrap {
  background: var(--ink);
  color: var(--paper);
  padding: 1.15rem 1.15rem 1.3rem;
  margin: 0.4rem 0 0;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}
.cuts-wrap .section-head {
  border-bottom-color: rgba(246, 239, 230, 0.14);
  margin: 0 0 0.95rem;
}
.cuts-wrap .section-head h2 { color: var(--paper); }
.cuts-wrap .section-head a { color: var(--gold-bright); }
.cuts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.5rem;
}
.cut {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink-soft);
  border: 1px solid rgba(246, 239, 230, 0.1);
  padding: 0.35rem 0.55rem 0.35rem 0.35rem;
  min-height: 3.35rem;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.cut img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  object-position: top center;
  flex: none;
  background: #111;
}
.cut b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}
.cut small {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 239, 230, 0.48);
  margin-top: 0.12rem;
}
.cut:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: #221c16;
  transform: translateY(-2px);
}

/* Countdown to the April 2027 anime */
.clock-band {
  margin: 1.4rem 0 0;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(155, 20, 25, 0.12), transparent 48%),
    linear-gradient(90deg, rgba(201, 162, 39, 0.08), transparent 42%),
    var(--cream);
}
.clock-kicker {
  font-family: var(--jp);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin: 0;
}
.clock-label {
  margin: 0.2rem 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text);
}
.clock {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}
.clock-unit {
  min-width: 4.4rem;
  flex: 1 1 4.4rem;
  max-width: 7.2rem;
  padding: 0.55rem 0.4rem 0.5rem;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  text-align: center;
}
.clock-num {
  display: block;
  font-family: var(--jp);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blood);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.clock-unit-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.clock-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.clock-note a { color: var(--gold-dim); }

.home-banner .clock-band {
  max-width: 40rem;
  margin-top: 1.35rem;
  border-color: rgba(232, 197, 71, 0.38);
  background:
    linear-gradient(180deg, rgba(155, 20, 25, 0.42), rgba(12, 11, 10, 0.55)),
    rgba(12, 11, 10, 0.42);
}
.home-banner .clock-kicker { color: var(--gold-bright); }
.home-banner .clock-label { color: rgba(246, 239, 230, 0.92); }
.home-banner .clock-unit {
  background: rgba(12, 11, 10, 0.55);
  border-color: rgba(232, 197, 71, 0.28);
}
.home-banner .clock-num { color: var(--gold-bright); }
.home-banner .clock-unit-label { color: rgba(246, 239, 230, 0.55); }
.home-banner .clock-note { color: rgba(246, 239, 230, 0.62); }
.home-banner .clock-note a { color: var(--gold-bright); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.4rem;
}
.shop-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  text-decoration: none;
  color: inherit;
}
.shop-card:hover {
  border-color: var(--gold);
  color: inherit;
}
.shop-card strong {
  color: var(--blood);
  font-size: 0.98rem;
  font-family: var(--serif);
}
.shop-card span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.shop-tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ruby);
}
.note code, .article code {
  font-family: var(--mono);
  font-size: 0.86em;
}

/* UNION ARENA Kagurabachi singles */
.ua-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.4rem 0 1.1rem;
  padding: 0.55rem 0.95rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ua-cta:hover { color: var(--gold-bright); }
.ua-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 1rem;
  margin: 1.1rem 0 1.6rem;
}
.ua-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.ua-card:hover {
  border-color: var(--gold);
  color: inherit;
  transform: translateY(-2px);
}
.ua-card img {
  width: 100%;
  aspect-ratio: 63 / 88;
  object-fit: cover;
  object-position: top center;
  background: var(--ink);
}
.ua-card .ua-meta {
  padding: 0.55rem 0.65rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.4;
}
.ua-card .ua-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--blood);
  margin-bottom: 0.12rem;
}
.ua-card .ua-meta span {
  color: var(--muted);
}
.ua-pack {
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  background: var(--paper-deep) !important;
  padding: 0.6rem;
}

/* Sunday board, meme plates, quotes */
.board {
  columns: 3;
  column-gap: 0.85rem;
  margin: 1.1rem 0 1.6rem;
}
.board-card {
  break-inside: avoid;
  display: block;
  margin: 0 0 0.85rem;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  text-decoration: none;
  color: inherit;
}
.board-card:hover { border-color: var(--ruby); color: inherit; }
.board-card img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--ink);
}
.board-card .cap {
  padding: 0.65rem 0.8rem 0.8rem;
}
.board-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  line-height: 1.25;
}
.board-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.board-card .who {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ruby);
  display: block;
  margin-bottom: 0.25rem;
}

.plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.1rem 0 1.6rem;
}
.plate {
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
}
.plate-art {
  position: relative;
  overflow: hidden;
  min-height: 16rem;
}
.plate-art img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: saturate(0.92) contrast(1.05);
}
.plate-art .shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,11,10,0.12) 0%, rgba(12,11,10,0.15) 42%, rgba(12,11,10,0.82) 100%);
  pointer-events: none;
}
.plate-kicker,
.plate-line {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  z-index: 1;
  margin: 0;
  text-shadow: 0 2px 12px rgba(12,11,10,0.7);
}
.plate-kicker {
  top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.plate-line {
  bottom: 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--paper);
}
.plate figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  font-size: 0.86rem;
  color: var(--muted);
  background: var(--cream);
}

.quotes {
  display: grid;
  gap: 1.15rem;
  margin: 1.1rem 0 1.8rem;
}
.quote-card {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.1rem;
  align-items: start;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.85rem;
}
.quote-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  background: var(--ink);
  border: 1px solid var(--line-strong);
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
  font-style: italic;
}
.quote-card footer {
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.86rem;
  color: var(--muted);
}

.fish-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.9rem;
  margin: 1rem 0 1.5rem;
}
.fish-card {
  border: 1px solid var(--line-strong);
  background: var(--cream);
  overflow: hidden;
}
.fish-card .mark {
  height: 8.5rem;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.fish-card .mark svg { width: 78%; height: auto; }
.fish-card .body { padding: 0.85rem 0.95rem 1.05rem; }
.fish-card h3 { margin: 0 0 0.3rem; }
.fish-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.x-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.8rem 0 1.6rem;
}
.x-col {
  min-height: 28rem;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  padding: 0.7rem;
}
.x-col h3 { margin: 0 0 0.55rem; font-size: 1.1rem; }
.x-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  padding: 0.7rem 0.85rem;
}
.x-head:hover { color: inherit; border-color: var(--gold); }
.x-head img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--ink);
}
.x-head b { display: block; font-family: var(--serif); font-size: 1.2rem; }
.x-head small { color: var(--muted); }

.rank-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
  margin: 0.8rem 0 1.3rem;
}
.rank-strip a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.rank-strip img {
  width: 100%;
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--ink);
}
.rank-strip span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 920px) {
  .split, .footer-inner, .page-hero, .feature, .paths, .people, .catalog, .plates, .x-cols, .quote-card { grid-template-columns: 1fr 1fr; }
  .board { columns: 2; }
  .fish-trio, .rank-strip { grid-template-columns: 1fr 1fr 1fr; }
  .layout > .infobox {
    width: 260px;
    max-width: 44%;
    margin: 0 0 1.1rem 1.2rem;
  }
  .nav-toggle { display: block; order: 2; }
  .theme-toggle { margin-left: auto; order: 2; }
  .primary-nav { display: none; }
  .masthead-inner { flex-wrap: wrap; }
  .site-search {
    order: 3;
    flex: 1 0 100%;
    margin: 0.35rem 0 0;
    min-width: 0;
  }
  .masthead-inner.open .primary-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--ink);
    padding: 0.8rem 1.25rem 1rem;
    border-bottom: 3px solid var(--ruby);
  }
  .article > p:first-of-type::first-letter { font-size: 2.4rem; }
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .layout > .infobox {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 1.2rem;
  }
  .tile { max-width: calc(50% - 0.25rem); }
  .home-banner { min-height: 78vh; }
  .home-banner-inner { padding-top: 5.5rem; }
  .home-table a.home-row {
    grid-template-columns: 36px 1fr auto;
    grid-template-rows: auto auto;
  }
  .home-table b { grid-column: 2; }
  .home-table small { grid-column: 2; }
  .home-table a.home-row::after { grid-column: 3; grid-row: 1 / span 2; }
  .board { columns: 1; }
  .plates, .x-cols, .quote-card, .fish-trio { grid-template-columns: 1fr; }
  .rank-strip { grid-template-columns: repeat(3, 1fr); }
  .plate-art img { height: 16rem; }
}

html[data-theme="dark"] a:hover { color: var(--gold-bright); }
html[data-theme="dark"] .article h2 a:hover,
html[data-theme="dark"] .article h3 a:hover { color: var(--gold-bright); }
html[data-theme="dark"] .search-hits b,
html[data-theme="dark"] blockquote.pull,
html[data-theme="dark"] nav.related::before {
  color: var(--text);
}
html[data-theme="dark"] .infobox-head,
html[data-theme="dark"] .infobox-head h2,
html[data-theme="dark"] th,
html[data-theme="dark"] footer.site h3,
html[data-theme="dark"] .related a,
html[data-theme="dark"] .ua-cta {
  color: var(--chrome-ink);
}
html[data-theme="dark"] .related a {
  background: var(--ink);
}
html[data-theme="dark"] .ua-cta:hover { color: var(--gold-bright); }
html[data-theme="dark"] .note { background: #2a2218; }
html[data-theme="dark"] .home-table,
html[data-theme="dark"] .home-facts th,
html[data-theme="dark"] .home-facts td,
html[data-theme="dark"] .tile {
  background: var(--cream);
}
html[data-theme="dark"] .home-table a.home-row:hover,
html[data-theme="dark"] .tile:hover {
  background: var(--paper-deep);
}
html[data-theme="dark"] tr:nth-child(even) td { background: rgba(196, 30, 58, 0.1); }
html[data-theme="dark"] .spoiler {
  background: var(--chrome-ink);
  color: var(--chrome-ink);
}
html[data-theme="dark"] .spoiler.revealed,
html[data-theme="dark"] .spoiler:focus {
  background: transparent;
  color: inherit;
}
html[data-theme="dark"] .crumb a:hover { color: var(--gold-bright); }
html[data-theme="dark"] .shot,
html[data-theme="dark"] .card,
html[data-theme="dark"] .toc,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .infobox,
html[data-theme="dark"] .fish-card,
html[data-theme="dark"] .x-col {
  background: var(--cream);
}
html[data-theme="dark"] .shot figcaption {
  border-top-color: var(--line);
}
html[data-theme="dark"] .card-body h3,
html[data-theme="dark"] .panel h3,
html[data-theme="dark"] .fish-card h3 {
  color: var(--text);
}
html[data-theme="dark"] .btn { color: var(--chrome-ink); }
html[data-theme="dark"] .btn:hover { color: var(--ink); }
html[data-theme="dark"] table { background: var(--cream); }

@media print {
  .skip,
  .masthead,
  .subnav,
  .crawl-nav,
  .theme-toggle,
  .nav-toggle,
  .site-search,
  footer.site,
  nav.related,
  .related,
  noscript {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
    font-size: 12pt;
    line-height: 1.5;
  }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: none; padding: 0; }
  .page-hero::before { display: none; }
  .shot { border-color: #ccc; max-width: none; break-inside: avoid; }
  .infobox { box-shadow: none; }
  h1, h2, h3 { break-after: avoid; }
}
