:root {
  --paper: #f6f4ef;
  --ink: #14110f;
  --accent: #ff4d2e;
  --deep: #1b4d43;
  --soft: #e6e2d8;
  --muted: #5a544c;
  --line: 2px solid var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-md: 5px 5px 0 var(--ink);
  --shadow-lg: 7px 7px 0 var(--ink);
  --radius: 2px;
  --shell-w: 1120px;
  --narrow-w: 760px;
  --mid-w: 900px;
  --header-h: 64px;
}

/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.site-body a {
  color: inherit;
  text-decoration: none;
}

body.site-body img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   layout — shell
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: var(--line);
}

.header-inner {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  padding: 6px 10px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border-bottom: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: var(--soft);
}

.site-nav a.is-current {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle::before {
  top: 15px;
  box-shadow: 0 6px 0 var(--ink);
}

.nav-toggle::after {
  bottom: 15px;
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.inner-main {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.site-footer {
  border-top: var(--line);
  background: var(--paper);
}

.footer-inner {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: var(--line);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.footer-col ul li a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.footer-bottom {
  border-top: var(--line);
}

.footer-bottom p {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   layout — inner page skeleton
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.breadcrumb-sep {
  color: var(--muted);
}

.breadcrumb-current {
  font-weight: 700;
  color: var(--ink);
}

.page-header {
  border-bottom: var(--line);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

.page-title-section {
  margin-bottom: 32px;
}

.page-lead {
  font-size: 15px;
  color: var(--muted);
  max-width: var(--narrow-w);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.page-content {
  min-width: 0;
}

.page-aside {
  min-width: 0;
  border: var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--soft);
  box-shadow: var(--shadow-sm);
}

.page-aside h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-note,
.section-lead,
.section-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.section-more {
  margin-top: 16px;
  font-size: 14px;
}

.section-more a {
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

/* ==========================================================================
   components — buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.btn-dark,
.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
}

.btn-outline {
  background: var(--paper);
  color: var(--ink);
}

/* ==========================================================================
   components — tags & marks
   ========================================================================== */

.genre-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  background: var(--deep);
  color: var(--paper);
  border-radius: var(--radius);
  white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius);
  white-space: nowrap;
}

.tag-campus { background: #f2c14e; color: var(--ink); }
.tag-fantasy { background: #7a5cd6; color: #fff; }
.tag-mystery { background: #2a2a2a; color: #fff; }
.tag-daily { background: #8fbf7f; color: var(--ink); }
.tag-scifi { background: #3d7fb8; color: #fff; }
.tag-sports { background: #e07a3f; color: var(--ink); }
.tag-history { background: #8a6a3f; color: #fff; }
.tag-healing { background: #e0a3b8; color: var(--ink); }

.change-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius);
  white-space: nowrap;
  border: 1px solid var(--ink);
}

.change-add { background: var(--accent); color: var(--ink); }
.change-note { background: #f2c14e; color: var(--ink); }
.change-category { background: var(--deep); color: var(--paper); }
.change-genre { background: #7a5cd6; color: #fff; }
.change-status { background: var(--ink); color: var(--paper); }

.batch-no {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   components — cover cards
   ========================================================================== */

.cover-card {
  display: block;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cover-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.cover-card figure {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom: var(--line);
  background: var(--soft);
}

.cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px;
}

.cover-name,
.entry-name {
  font-size: 15px;
  font-weight: 700;
}

/* ==========================================================================
   components — FAQ
   ========================================================================== */

.faq-item {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  font-size: 16px;
  font-weight: 700;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: var(--line);
  background: var(--soft);
}

.faq-item > p {
  padding: 14px 16px;
  font-size: 15px;
  color: var(--muted);
}

.faq-item > p a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

.faq-more {
  padding: 0 16px 14px;
  font-size: 14px;
}

.faq-more a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

/* ==========================================================================
   components — related links strip
   ========================================================================== */

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: var(--line);
  margin-top: 40px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}

.related-links-item {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.related-links-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
  background: var(--accent);
}

/* ==========================================================================
   pages — index
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 40px;
  border-bottom: var(--line);
}

.hero-text h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-slogan {
  font-size: 18px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-tags a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-tags a:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--soft);
}

.hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cover-wall {
  padding: 40px 0;
  border-bottom: var(--line);
}

.cover-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.latest-entries {
  padding: 40px 0;
  border-bottom: var(--line);
}

.entry-rows {
  border-top: 1px solid var(--soft);
}

.entry-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1.4fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--soft);
}

.entry-row .entry-name {
  font-size: 16px;
}

.genre-index {
  padding: 40px 0;
  border-bottom: var(--line);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.genre-block {
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-block h3 {
  font-size: 17px;
  font-weight: 800;
}

.genre-block p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.genre-block a {
  font-size: 13px;
  font-weight: 700;
  align-self: flex-start;
  border-bottom: 2px solid var(--accent);
}

.topic-feature {
  padding: 40px 0;
  border-bottom: var(--line);
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.topic-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.topic-card figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: var(--line);
  background: var(--soft);
}

.topic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-card h3 {
  font-size: 17px;
  padding: 12px 14px 4px;
}

.topic-card p {
  font-size: 13px;
  color: var(--muted);
  padding: 0 14px 8px;
  margin: 0;
}

.topic-card a {
  margin: 0 14px 14px;
  font-size: 13px;
  font-weight: 700;
  align-self: flex-start;
  border-bottom: 2px solid var(--accent);
}

.editor-picks {
  padding: 40px 0;
  border-bottom: var(--line);
}

.pick-list {
  border-top: 1px solid var(--soft);
}

.pick-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.2fr) auto minmax(0, 2fr);
  align-items: center;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--soft);
}

.pick-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 800;
  background: var(--accent);
  color: var(--ink);
  border: var(--line);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}

.pick-name {
  font-size: 16px;
  font-weight: 700;
}

.pick-reason {
  font-size: 14px;
  color: var(--muted);
}

.rules-note {
  padding: 40px 0;
}

.rules-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.rules-summary {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.rules-summary h3,
.rules-links h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
}

.rules-summary ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

.rules-summary ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border: 1px solid var(--ink);
}

.rules-links p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.link-block {
  display: block;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.link-block:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
  background: var(--accent);
}

/* ==========================================================================
   pages — tags
   ========================================================================== */

.genre-blocks {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 40px;
}

.genre-blocks > .section-title,
.genre-blocks > .section-lead {
  margin-bottom: 0;
}

.genre-block {
  border-bottom: var(--line);
  padding-bottom: 32px;
}

.genre-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.genre-block .genre-intro {
  margin-bottom: 16px;
}

.genre-block .genre-intro h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.genre-block .genre-intro p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  max-width: var(--narrow-w);
}

.genre-anchor-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

.genre-covers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cross-tag-note {
  padding: 40px 0;
  border-top: var(--line);
}

.cross-tag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cross-tag-item {
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.cross-tag-item h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cross-tag-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.next-entry {
  padding: 40px 0 0;
  border-top: var(--line);
}

.next-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.next-entry-card {
  border: var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--soft);
  box-shadow: var(--shadow-sm);
}

.next-entry-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.next-entry-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ==========================================================================
   pages — updates
   ========================================================================== */

.timeline-section {
  margin-bottom: 40px;
}

.timeline-list {
  border-top: 1px solid var(--soft);
}

.timeline-item {
  border-bottom: 1px solid var(--soft);
  padding: 16px 4px;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.timeline-body {
  min-width: 0;
}

.timeline-body .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.timeline-body .entry-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.timeline-body .entry-name {
  font-size: 16px;
}

.genre-distribution {
  margin-bottom: 40px;
}

.distribution-table {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.distribution-table caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  border-bottom: var(--line);
  background: var(--soft);
}

.distribution-table th,
.distribution-table td {
  padding: 10px 14px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--soft);
}

.distribution-table thead th {
  font-weight: 800;
  background: var(--soft);
  border-bottom: var(--line);
}

.distribution-table tbody tr:last-child th,
.distribution-table tbody tr:last-child td {
  border-bottom: none;
}

.distribution-table tbody th {
  font-weight: 700;
}

.aside-figure {
  margin: 16px 0;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.aside-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.aside-figure figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
  border-top: var(--line);
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.legend-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.legend-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.aside-footnote {
  font-size: 13px;
  border-top: var(--line);
  padding-top: 12px;
  margin: 0;
}

.aside-footnote a {
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

.next-card {
  border: var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.next-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.next-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ==========================================================================
   pages — reading guide
   ========================================================================== */

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.guide-article {
  min-width: 0;
}

.step-block {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--soft);
}

.step-block:last-of-type {
  border-bottom: none;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 800;
  background: var(--accent);
  color: var(--ink);
  border: var(--line);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}

.step-body h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}

.step-body p a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

.step-check {
  font-size: 13px;
  color: var(--ink);
  background: var(--soft);
  border-left: 4px solid var(--accent);
  padding: 8px 12px;
  margin: 0;
}

.guide-figure {
  margin: 24px 0 0;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: var(--line);
}

.guide-aside {
  min-width: 0;
}

.aside-block {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.aside-block:last-child {
  margin-bottom: 0;
}

.aside-block h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: var(--line);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.checklist-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-links a {
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  align-self: flex-start;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-list li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.resource-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--deep);
}

.common-issues {
  padding: 40px 0 0;
  border-top: var(--line);
}

.next-entry .entry-block {
  display: block;
  border: var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.next-entry .entry-block:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.next-entry .entry-block h2 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.next-entry .entry-block p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   pages — rules
   ========================================================================== */

.container.narrow {
  max-width: var(--narrow-w);
  margin: 0 auto;
}

.rules-summary {
  margin-bottom: 40px;
}

.summary-box {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.summary-box h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--ink);
}

.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border: 1px solid var(--ink);
}

.rules-section {
  padding: 32px 0;
  border-top: var(--line);
}

.rules-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.rule-block-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rule-block {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}

.rule-block h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.rule-block p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.rules-figure {
  padding: 32px 0;
}

.rules-media {
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.rules-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.rules-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: var(--line);
}

.exclude-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exclude-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--muted);
}

.exclude-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.rules-note {
  margin-top: 20px;
  padding: 12px 16px;
  font-size: 14px;
  background: var(--soft);
  border-left: 4px solid var(--deep);
  color: var(--muted);
}

.rules-next {
  padding: 40px 0 0;
  border-top: var(--line);
}

.rules-next h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.rules-next .next-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.entry-card {
  display: block;
  border: var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.entry-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.entry-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.entry-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   pages — faq
   ========================================================================== */

.category-nav {
  padding-bottom: 32px;
}

.category-nav-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.category-nav-item {
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-nav-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.category-nav-item a {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  align-self: flex-start;
}

.category-nav-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.faq-figure {
  max-width: var(--mid-w);
  margin: 0 auto 32px;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.faq-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.faq-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: var(--line);
}

.faq-group {
  max-width: var(--mid-w);
  margin: 0 auto;
  padding: 32px 0;
  border-top: var(--line);
}

.faq-group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.next-entry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.next-entry-item {
  border: var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.next-entry-item h3 {
  font-size: 16px;
  font-weight: 800;
}

.next-entry-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.next-entry-item a {
  font-size: 14px;
  font-weight: 700;
  align-self: flex-start;
  border-bottom: 2px solid var(--accent);
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.error-main {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 60px 20px 64px;
}

.error-panel {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  padding: 40px;
  text-align: left;
  margin-bottom: 40px;
}

.error-panel h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-next {
  border-top: var(--line);
  padding-top: 32px;
}

.error-next h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.error-links li a {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.error-links li a:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
  background: var(--accent);
}

/* ==========================================================================
   responsive — tablet ≤ 1024px
   ========================================================================== */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .cover-list,
  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-list,
  .cross-tag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .entry-row {
    grid-template-columns: 60px minmax(0, 1fr) auto auto;
  }

  .pick-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .pick-row .pick-reason {
    grid-column: 2 / -1;
  }

  .error-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   responsive — phone ≤ 768px
   ========================================================================== */

@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    padding: 0 16px;
    gap: 12px;
  }

  .brand {
    font-size: 17px;
    padding: 4px 8px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: var(--line);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow-md);
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--soft);
    border-left: 3px solid transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-nav a.is-current {
    border-bottom-color: var(--soft);
    border-left-color: var(--accent);
    background: var(--soft);
  }

  .home-main,
  .inner-main,
  .error-main {
    padding: 0 16px 48px;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-slogan {
    font-size: 16px;
  }

  .cover-wall,
  .latest-entries,
  .genre-index,
  .topic-feature,
  .editor-picks,
  .rules-note {
    padding: 28px 0;
  }

  .cover-list,
  .genre-grid,
  .topic-list,
  .cross-tag-grid,
  .next-entry-grid,
  .next-entry-list,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-row {
    grid-template-columns: 54px minmax(0, 1fr);
    row-gap: 6px;
  }

  .entry-row .genre-tag,
  .entry-row .change-tag {
    grid-column: 2;
    justify-self: start;
  }

  .pick-row {
    grid-template-columns: 36px minmax(0, 1fr);
    row-gap: 6px;
  }

  .pick-row .genre-tag {
    grid-column: 2;
    justify-self: start;
  }

  .pick-row .pick-reason {
    grid-column: 2;
  }

  .rules-note-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 28px 16px 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
  }

  .section-title {
    font-size: 18px;
  }

  .timeline-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .timeline-body .entry-meta {
    gap: 6px;
  }

  .step-block {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .step-index {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .category-nav-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-group {
    padding: 24px 0;
  }

  .error-panel {
    padding: 24px;
  }

  .error-panel h1 {
    font-size: 28px;
  }

  .distribution-table th,
  .distribution-table td {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .genre-covers {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   motion preference
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* anchor offset for sticky header */
[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

@media (max-width: 768px) {
  [id] {
    scroll-margin-top: 68px;
  }
}
