:root {
  --paper: #f4efe6;
  --paper-deep: #e9e1d3;
  --paper-light: #fbf8f2;
  --ink: #191512;
  --ink-soft: #3c3530;
  --muted: #766d63;
  --line: #cfc4b4;
  --line-dark: #a99d8c;
  --oxblood: #742d36;
  --oxblood-dark: #521d25;
  --sage: #65705f;
  --ochre: #a67639;
  --plum: #5b3a4e;
  --wine: #6b2432;
  --slate: #45545b;
  --rose: #b0766f;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1440px;
  --reading: 68ch;
  --radius: 2px;
  --step-0: 1rem;
  --step-1: 1.18rem;
  --step-2: 1.42rem;
  --step-3: 1.8rem;
  --step-4: clamp(2.2rem, 4vw, 3.4rem);
  --step-5: clamp(3.2rem, 7vw, 6.6rem);
  --shadow: 0 24px 60px rgba(25, 21, 18, 0.14);
}

.member-shell { max-width: 40rem; margin: 3rem auto 5rem; }
.member-wide { max-width: 64rem; }
.member-shell h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.member-form { display: grid; gap: 1.1rem; }
.member-form label { display: grid; gap: .35rem; color: var(--ink-soft); font-size: .85rem; }
.member-form input, .member-form select, .member-form textarea { width: 100%; padding: .75rem; border: 1px solid var(--line-dark); background: var(--paper-light); color: var(--ink); }
.member-form .check-label { display: flex; align-items: start; gap: .7rem; }
.member-form .check-label input { width: auto; }
.member-links { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0; font-size: .8rem; }
.member-tool { font-size: .64rem; text-decoration: none; }
.chapter-editor { display: grid; gap: .6rem; min-width: 0; padding: 1rem; border: 1px solid var(--line); margin-bottom: 1rem; }
.chapter-editor textarea { width: 100%; font-family: var(--serif); line-height: 1.7; }
.member-comment { padding: 1rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; white-space: normal; }
.member-form textarea { min-height: 6rem; resize: vertical; }
@media(max-width:640px) { .masthead-tools { width: 100%; justify-content: space-between; } .member-tool { font-size: .59rem; } .member-links .button { width: 100%; } }
.member-story-list article { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.member-story-list h2 { font-size: 1.5rem; }
@media(max-width:900px) { .site-header-library .masthead-tools { flex-wrap: wrap; } .site-header-library .masthead { flex-wrap: wrap; } }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image: radial-gradient(rgba(25, 21, 18, 0.18) 0.55px, transparent 0.55px);
  background-size: 4px 4px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--oxblood);
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}

::selection {
  color: var(--paper-light);
  background: var(--oxblood);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h1 {
  font-size: var(--step-5);
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-2);
}

.skip-link {
  position: fixed;
  top: -10rem;
  left: 1rem;
  z-index: 200;
  padding: 0.8rem 1rem;
  color: var(--paper-light);
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem clamp(1rem, 4vw, 2.5rem) 0;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.masthead-tagline {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.masthead-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tool-link {
  text-decoration: none;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  padding: 0.25rem 0;
  cursor: pointer;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 12rem;
  padding: 1rem;
  background: var(--paper-light);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}

.language-panel .eyebrow {
  margin-bottom: 0.5rem;
}

.language-panel a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}

.language-panel a[aria-current="true"] {
  color: var(--oxblood);
}

.primary-nav {
  display: flex;
  gap: clamp(1rem, 3.4vw, 2.7rem);
  padding: 0.9rem 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-nav a {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a[aria-current="page"] {
  color: var(--oxblood);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--oxblood);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.035em;
}

.text-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding-bottom: 0.12rem;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--paper-light);
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  color: var(--paper-light);
  background: var(--oxblood);
  transform: translateY(-1px);
}

.button-light {
  border-color: var(--paper-light);
  color: var(--ink);
  background: var(--paper-light);
}

.button-light:hover {
  color: var(--ink);
  background: transparent;
  border-color: var(--paper-light);
}

.button-small {
  min-height: 2.4rem;
  padding: 0.55rem 1rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 0.45fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: stretch;
  min-height: clamp(34rem, 68vh, 46rem);
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 49rem;
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 1.7rem;
  font-size: clamp(3.1rem, 7.6vw, 7.1rem);
  line-height: 0.93;
}

.hero-lede {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem 2rem;
  align-items: center;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 2.2rem 0 0;
  margin: 2.4rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.trust-list li::before {
  margin-right: 0.5rem;
  color: var(--oxblood);
  content: "◆";
  font-size: 0.5rem;
  vertical-align: middle;
}

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 25rem;
  padding: 1.3rem;
  overflow: hidden;
  color: var(--paper-light);
  background: var(--ink);
}

.hero-art::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.35;
  background:
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(244, 239, 230, 0.07) 27px 28px),
    radial-gradient(circle at 60% 30%, rgba(116, 45, 54, 0.7), transparent 58%);
}

.hero-art > * {
  position: relative;
}

.hero-issue {
  align-self: flex-end;
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 239, 230, 0.55);
}

.hero-rule {
  width: 100%;
  height: 1px;
  margin-top: auto;
  background: rgba(244, 239, 230, 0.3);
}

.hero-mark {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: 2rem;
}

.hero-art p {
  max-width: 16rem;
  margin: 1rem 0 0;
  color: rgba(244, 239, 230, 0.7);
  font-size: 0.75rem;
  line-height: 1.5;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.3rem) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: clamp(1.7rem, 3vw, 2.8rem);
}

.section-head h2 {
  max-width: 14ch;
  margin-bottom: 0;
}

.section-note {
  max-width: 23rem;
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.45;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.2vw, 2.8rem);
}

.story-grid .story-cover { max-height: 16rem; }

.story-card {
  min-width: 0;
}

.story-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 5 / 4;
  padding: 1rem;
  overflow: hidden;
  color: rgba(251, 248, 242, 0.9);
  text-decoration: none;
  transition: transform 200ms ease;
}

.story-card:hover .story-cover {
  transform: translateY(-3px);
}

.story-cover::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.45;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, 0.08) 19px 20px);
}

.story-cover::after {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70%;
  height: 110%;
  content: "";
  border: 1px solid rgba(251, 248, 242, 0.3);
  border-radius: 50%;
  transform: rotate(18deg);
}

.cover-mark {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 0.72;
  color: rgba(251, 248, 242, 0.26);
}

.cover-rule {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 1px;
  margin-top: auto;
  background: rgba(251, 248, 242, 0.4);
}

.cover-index {
  position: relative;
  z-index: 1;
  padding-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.tone-rose { background: linear-gradient(135deg, #9d5f5b, #6c3437); }
.tone-slate { background: linear-gradient(135deg, #57666b, #313c41); }
.tone-ochre { background: linear-gradient(135deg, #a1743b, #5c3f23); }
.tone-plum { background: linear-gradient(135deg, #65435a, #382432); }
.tone-wine { background: linear-gradient(135deg, #742d36, #3e171d); }
.tone-sage { background: linear-gradient(135deg, #6d7866, #3d4739); }
.tone-ink { background: linear-gradient(135deg, #3d3833, #151311); }

.story-card-body {
  padding-top: 1rem;
}

.story-card .eyebrow {
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
}

.story-card-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  line-height: 1.08;
}

.story-card-title a,
.article-card-title a {
  text-decoration: none;
}

.story-card-description {
  margin-bottom: 0.8rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.45;
}

.story-grid-compact .story-card:nth-child(n + 4) {
  display: block;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.genre-card {
  display: flex;
  flex-direction: column;
  min-height: 13.5rem;
  padding: 1.4rem;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.genre-card:hover {
  color: var(--paper-light);
  background: var(--ink);
}

.genre-card .genre-count {
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.genre-card:hover .genre-count,
.genre-card:hover p {
  color: rgba(251, 248, 242, 0.7);
}

.genre-card h3 {
  margin-bottom: 0.55rem;
  font-size: var(--step-3);
}

.genre-card p {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.4;
}

.genre-card .text-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.64rem;
}

.genre-card:hover .text-link {
  color: var(--paper-light);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-card {
  padding: clamp(1.3rem, 2.5vw, 2rem);
  background: var(--paper);
}

.article-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 2.2rem;
}

.article-card-top .eyebrow {
  margin: 0;
}

.article-card-title {
  margin-bottom: 0.8rem;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
}

.article-card p {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.45;
}

.article-card .meta-line {
  margin-top: 1.3rem;
  font-family: var(--sans);
}

.create-band {
  display: flex;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: flex-end;
  margin: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--paper-light);
  background: var(--oxblood-dark);
}

.create-copy {
  max-width: 42rem;
}

.create-copy h2 {
  max-width: 16ch;
  margin-bottom: 1rem;
}

.create-copy p {
  color: rgba(251, 248, 242, 0.76);
  font-family: var(--serif);
  font-size: 1.08rem;
}

.create-action {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}

.create-action .button {
  border-color: var(--paper-light);
  color: var(--ink);
  background: var(--paper-light);
}

.create-action .button:hover {
  color: var(--paper-light);
  background: transparent;
}

.microcopy {
  margin: 0;
  color: rgba(251, 248, 242, 0.58);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-head {
  max-width: 54rem;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3.4rem);
}

.page-head h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.page-lede {
  max-width: 42rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.55;
}

.listing-layout {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 2.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-field {
  display: grid;
  gap: 0.35rem;
  min-width: 9rem;
}

.filter-field label {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-field select,
.search-form input {
  min-height: 2.6rem;
  padding: 0.45rem 2rem 0.45rem 0.7rem;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-light);
}

.filter-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
}

.filter-actions .text-link {
  font-size: 0.62rem;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.pagination-link,
.pagination-status {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagination-link {
  text-decoration: none;
}

.pagination-link.is-disabled {
  color: var(--line-dark);
}

.empty-state {
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empty-state p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.genre-hero {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2.4rem;
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.03em;
}

.breadcrumbs a {
  text-decoration: none;
}

.genre-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(14rem, 0.35fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.genre-hero h1 {
  margin-bottom: 1rem;
}

.genre-lede {
  max-width: 43rem;
  margin-bottom: 1.6rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.genre-monolith {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  color: rgba(251, 248, 242, 0.25);
  font-family: var(--serif);
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 1;
}

.story {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.story-header {
  max-width: 58rem;
  margin: 0 auto;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.story-header h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.8rem, 7vw, 6rem);
}

.story-deck {
  max-width: 45rem;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.5;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(10rem, 0.26fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.story-aside {
  align-self: start;
  position: sticky;
  top: 2rem;
  padding-right: 1rem;
  border-right: 1px solid var(--line);
}

.story-aside .eyebrow {
  margin-bottom: 0.55rem;
}

.aside-genre {
  display: inline-block;
  margin-bottom: 1.8rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
}

.adult-note {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}

.tag-list li {
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.03em;
}

.prose {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  line-height: 1.78;
}

.prose p {
  margin-bottom: 1.4em;
}

.story-prose {
  max-width: var(--reading);
}

.story-prose > p:first-of-type::first-letter,
.article-prose > p:first-of-type::first-letter {
  float: left;
  margin: 0.1em 0.1em 0 0;
  color: var(--oxblood);
  font-size: 4.2em;
  line-height: 0.76;
}

.end-mark {
  margin: 3rem 0;
  color: var(--oxblood);
  font-size: 0.7rem;
  text-align: center;
}

.story-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
}

.story-footer .text-link {
  margin-top: 0.7rem;
}

.article {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.article-header {
  max-width: 58rem;
  margin: 0 auto;
  padding-bottom: clamp(2rem, 4vw, 3.2rem);
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.article-deck {
  max-width: 46rem;
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
}

.article-prose {
  max-width: var(--reading);
  margin: clamp(2.5rem, 5vw, 4rem) auto;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: flex-end;
  margin: clamp(3rem, 6vw, 5rem) 0;
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--paper-light);
  background: var(--ink);
}

.cta-band > div {
  max-width: 40rem;
}

.cta-band .eyebrow {
  color: var(--rose);
}

.cta-band h2 {
  max-width: 16ch;
  margin-bottom: 0.9rem;
}

.cta-band p {
  margin-bottom: 0;
  color: rgba(251, 248, 242, 0.7);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.cta-band .button {
  flex: 0 0 auto;
}

.search-head {
  max-width: 46rem;
}

.search-form {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  font-size: 1rem;
}

.result-summary {
  padding-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.6rem;
}

.topic-nav a {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.topic-nav a[aria-current="page"] {
  color: var(--paper-light);
  background: var(--ink);
  border-color: var(--ink);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.28fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.legal-prose {
  max-width: 64ch;
}

.legal-prose section {
  margin-bottom: 2.3rem;
}

.legal-prose h2 {
  margin-bottom: 0.7rem;
  font-size: var(--step-3);
  letter-spacing: -0.015em;
}

.legal-contact {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
}

.legal-aside {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-self: start;
  padding: 1.2rem;
  border: 1px solid var(--line);
}

.legal-aside a {
  font-size: 0.72rem;
  text-decoration: none;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.3fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.about-grid .prose {
  max-width: 62ch;
}

.about-grid h2 {
  margin-top: 2rem;
  font-size: var(--step-3);
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-self: start;
  padding: 1.2rem;
  border: 1px solid var(--line);
}

.about-aside a {
  font-size: 0.72rem;
  text-decoration: none;
}

.contact-email {
  margin-top: 1.8rem;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.narrow-prose {
  max-width: 44rem;
  padding-bottom: 5rem;
}

.error-page {
  min-height: 62vh;
  padding: clamp(4rem, 10vw, 8rem) 0;
  text-align: center;
}

.error-code {
  margin: 0;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(8rem, 28vw, 22rem);
  line-height: 0.7;
  -webkit-text-stroke: 1px var(--line-dark);
}

.error-page h1 {
  max-width: 22ch;
  margin: 1rem auto 1.2rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.error-page p:not(.error-code) {
  max-width: 34rem;
  margin-right: auto;
  margin-bottom: 2rem;
  margin-left: auto;
  color: var(--muted);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) 1.5rem;
  border-top: 1px solid var(--ink);
}

.footer-brand {
  display: grid;
  grid-template-columns: minmax(12rem, 0.55fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.brand-footer {
  align-self: start;
}

.footer-brand > p {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.98rem;
}

.footer-brand .adult-line {
  grid-column: 2;
  color: var(--oxblood);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.footer-columns h2 {
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-columns a {
  display: block;
  padding: 0.22rem 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 1.3rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
}

.footer-cta {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(25, 21, 18, 0.78);
  backdrop-filter: blur(8px);
}

.age-card {
  width: min(100%, 34rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--paper-light);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}

.adult-mark {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--oxblood);
  color: var(--oxblood);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.age-card h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.age-card > p {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.03rem;
  line-height: 1.55;
}

.age-card form {
  margin: 1.6rem 0 1rem;
}

.age-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0 !important;
  color: var(--muted) !important;
  font-family: var(--sans) !important;
  font-size: 0.7rem !important;
}

.preview-banner {
  padding: 0.6rem 1rem;
  color: var(--paper-light);
  background: var(--oxblood);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .masthead-tagline {
    display: none;
  }

  .masthead {
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-art {
    min-height: 14rem;
    flex-direction: row;
    align-items: flex-end;
    gap: 1.5rem;
  }

  .hero-issue {
    margin-right: auto;
    font-size: 5rem;
  }

  .hero-rule {
    display: none;
  }

  .hero-art p {
    max-width: 12rem;
    margin: 0;
  }

  .story-grid,
  .genre-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid {
    border-left: 0;
    border-right: 0;
  }

  .story-grid-compact .story-card:nth-child(n + 5) {
    display: none;
  }

  .story-layout,
  .genre-hero-grid,
  .legal-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .story-aside {
    position: static;
    padding: 1rem 0 1.4rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .genre-monolith {
    display: none;
  }

  .footer-brand {
    grid-template-columns: 1fr;
  }

  .footer-brand .adult-line {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 0.9rem;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .masthead {
    gap: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .masthead-tools {
    gap: 0.7rem;
  }

  .tool-link {
    display: none;
  }

  .primary-nav {
    gap: 1.15rem;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12.7vw, 4.1rem);
  }

  .hero-lede {
    font-size: 1.06rem;
  }

  .hero-art {
    display: none;
  }

  .trust-list {
    display: grid;
    gap: 0.4rem;
  }

  .section-head {
    display: block;
  }

  .section-note {
    margin-top: 0.8rem;
  }

  .story-grid,
  .genre-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .story-grid-compact .story-card:nth-child(n + 4) {
    display: none;
  }

  .story-cover {
    aspect-ratio: 6 / 4;
  }

  .genre-card {
    min-height: 0;
  }

  .article-grid {
    gap: 0;
    border: 0;
  }

  .article-card {
    padding: 1.4rem 0;
    border-top: 1px solid var(--line);
  }

  .create-band,
  .cta-band {
    display: block;
  }

  .create-action,
  .cta-band .button {
    margin-top: 1.6rem;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-field {
    min-width: 0;
  }

  .filter-actions {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination-status {
    order: -1;
    width: 100%;
    text-align: center;
  }

  .story-layout {
    padding-top: 2rem;
  }

  .story-header h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .story-prose > p:first-of-type::first-letter,
  .article-prose > p:first-of-type::first-letter {
    font-size: 3.2em;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    display: block;
  }

  .footer-cta {
    display: inline-block;
    margin-top: 0.8rem;
  }

  .search-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-form .button {
    width: 100%;
  }

  .age-card {
    max-height: 92vh;
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* Library-first discovery layout */
.site-header-library .masthead {
  gap: 1.5rem;
  padding: 0.7rem 0;
}

.site-header-library .primary-nav {
  justify-content: center;
  flex: 1;
  padding: 0;
  overflow: visible;
  border-bottom: 0;
}

.site-header-library .primary-nav a {
  font-size: 0.66rem;
}

.masthead-tools {
  margin-left: auto;
  gap: 0.85rem;
}

.search-tool {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
}

.search-tool span:first-child {
  font-size: 1rem;
  line-height: 1;
}

.mobile-discover-button {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line-dark);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.library-shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.6rem) 0 2rem;
}

.library-main {
  min-width: 0;
}

.library-sidebar {
  position: sticky;
  top: 1.4rem;
  max-height: calc(100vh - 3rem);
  padding-right: 1.2rem;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.drawer-head,
.drawer-backdrop,
.drawer-close {
  display: none;
}

.library-nav {
  display: grid;
  gap: 1.5rem;
}

.library-nav-section {
  display: grid;
  gap: 0.18rem;
}

.sidebar-label {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar-list {
  display: grid;
  gap: 0.05rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-link {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.34rem 0;
  color: var(--ink-soft);
  font-size: 0.79rem;
  line-height: 1.25;
  text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  color: var(--oxblood);
}

.sidebar-link.is-active {
  font-weight: 600;
}

.sidebar-link small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 400;
}

.sidebar-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.57rem;
}

.sidebar-more {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.sidebar-cta {
  padding: 1rem;
  margin-top: 0.4rem;
  background: var(--ink);
  color: var(--paper-light);
}

.sidebar-cta .eyebrow {
  color: var(--rose);
}

.sidebar-cta p:not(.eyebrow) {
  margin-bottom: 0.8rem;
  color: rgba(251, 248, 242, 0.7);
  font-family: var(--serif);
  font-size: 0.88rem;
  line-height: 1.4;
}

.sidebar-cta .text-link {
  color: var(--paper-light);
  font-size: 0.6rem;
}

.library-intro {
  padding: 0 0 clamp(1.6rem, 3vw, 2.6rem);
}

.library-intro-compact {
  padding-top: 0.4rem;
}

.library-intro h1 {
  max-width: 16ch;
  margin-bottom: 0.8rem;
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  line-height: 0.96;
}

.library-intro-compact h1 {
  max-width: 20ch;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.library-subtitle {
  max-width: 44rem;
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.55;
}

.library-search {
  display: flex;
  align-items: center;
  max-width: 48rem;
  margin: 0 0 1rem;
  background: var(--paper-light);
  border: 1px solid var(--line-dark);
}

.library-search .search-mark {
  padding-left: 0.9rem;
  color: var(--oxblood);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.library-search input {
  flex: 1;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.7rem 0.8rem;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.library-search input:focus {
  outline: 0;
}

.library-search:focus-within {
  border-color: var(--oxblood);
  box-shadow: 0 0 0 1px var(--oxblood);
}

.library-search .button {
  min-height: 2.55rem;
  margin-right: 0.35rem;
  font-size: 0.62rem;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.7rem;
}

.quick-label {
  margin-right: 0.2rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chip {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(251, 248, 242, 0.4);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.chip:hover {
  color: var(--paper-light);
  background: var(--ink);
  border-color: var(--ink);
}

.chip span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
}

.chip-heat:hover span {
  color: rgba(251, 248, 242, 0.65);
}

.quick-filters-heat {
  margin-top: 0.3rem;
}

.library-section {
  padding: clamp(1.6rem, 3.5vw, 2.8rem) 0;
  border-top: 1px solid var(--line);
}

.compact-head {
  margin-bottom: 1.2rem;
}

.compact-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.story-grid-featured .story-cover {
  aspect-ratio: 4 / 3;
}

.story-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
}

.story-feed .story-card {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.story-feed .story-card-link {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.story-feed .story-cover {
  aspect-ratio: 1 / 1.15;
  padding: 0.65rem;
}

.story-feed .cover-mark {
  font-size: 2.6rem;
}

.story-feed .cover-index {
  font-size: 0.55rem;
}

.story-feed .story-card-body {
  padding: 0;
}

.story-feed .story-card-title {
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
}

.story-feed .story-card-description {
  font-size: 0.88rem;
}

.story-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.story-card-link:hover .story-card-title {
  color: var(--oxblood);
}

.story-card-body {
  padding-top: 1rem;
}

.story-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.story-card-top .eyebrow {
  margin: 0;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
}

.badge {
  padding: 0.12rem 0.3rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.49rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-new {
  color: var(--oxblood);
  border-color: rgba(116, 45, 54, 0.4);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: center;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.61rem;
}

.heat {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  white-space: nowrap;
}

.heat-dots {
  font-size: 0.62rem;
  letter-spacing: -0.08em;
}

.heat-label {
  font-size: 0.61rem;
}

.length-label {
  padding-left: 0.65rem;
  border-left: 1px solid var(--line);
}

.story-card-link .story-cover {
  text-decoration: none;
}

.catalog-cta {
  grid-column: 1 / -1;
  margin: 1.2rem 0 0;
  padding: 1.4rem;
  color: var(--paper-light);
  background: var(--oxblood-dark);
}

.catalog-cta .eyebrow {
  color: var(--rose);
}

.catalog-cta h2,
.catalog-cta h3 {
  max-width: 16ch;
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

.catalog-cta p {
  max-width: 38rem;
  margin-bottom: 0.9rem;
  color: rgba(251, 248, 242, 0.74);
  font-family: var(--serif);
}

.catalog-cta .button {
  border-color: var(--paper-light);
  color: var(--ink);
  background: var(--paper-light);
}

.catalog-cta .button:hover {
  color: var(--paper-light);
  background: transparent;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.collection-grid-large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collection-card {
  display: flex;
  flex-direction: column;
  min-height: 12rem;
  padding: 1.3rem;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.collection-card:hover {
  color: var(--paper-light);
  background: var(--ink);
}

.collection-count {
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.collection-card:hover .collection-count,
.collection-card:hover p {
  color: rgba(251, 248, 242, 0.65);
}

.collection-card h2,
.collection-card h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.collection-card p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.4;
}

.collection-card .text-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.6rem;
}

.collection-card:hover .text-link {
  color: var(--paper-light);
}

.genre-grid-library {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}

.result-count a {
  color: var(--oxblood);
  text-decoration: none;
}

.desktop-filters {
  margin-bottom: 1.4rem;
  border-top: 0;
}

.mobile-filter-drawer {
  display: none;
}

.inline-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.inline-sort label {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.inline-sort select {
  min-height: 2.2rem;
  padding: 0.3rem 1.8rem 0.3rem 0.5rem;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  background: var(--paper-light);
  font-size: 0.7rem;
}

.story-aside-meta {
  display: grid;
  gap: 0.2rem;
  margin: 0.9rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.67rem;
}

.filter-panel {
  display: grid;
  gap: 0.8rem;
  padding: 0.2rem 0;
}

@media (min-width: 1500px) {
  .story-feed {
    gap: 0 3rem;
  }
}

@media (max-width: 1180px) {
  .library-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 2rem;
  }
  .story-feed {
    gap: 0 1.4rem;
  }
}

@media (max-width: 900px) {
  .site-header-library .masthead {
    flex-wrap: wrap;
    gap: 0.55rem 0.8rem;
  }
  .site-header-library .primary-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
  }
  .mobile-discover-button {
    display: inline-flex;
  }
  .search-tool span:not(:first-child) {
    display: none;
  }
  .library-shell {
    display: block;
  }
  .library-sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    max-height: 84vh;
    padding: 1.1rem 1.2rem 1.4rem;
    overflow-y: auto;
    background: var(--paper-light);
    border-top: 1px solid var(--ink);
    border-right: 0;
    box-shadow: 0 -24px 60px rgba(25, 21, 18, 0.2);
    transform: translateY(105%);
    transition: transform 220ms ease;
    scrollbar-width: thin;
  }
  .library-sidebar.is-open {
    transform: translateY(0);
  }
  .drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.7rem;
    margin-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
  }
  .drawer-head .eyebrow {
    margin: 0;
  }
  .drawer-close {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--line-dark);
    color: var(--ink);
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
  }
  .drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    padding: 0;
    border: 0;
    background: rgba(25, 21, 18, 0.5);
    cursor: pointer;
  }
  body.drawer-open {
    overflow: hidden;
  }
  body.drawer-open .drawer-backdrop {
    display: block;
  }
  .library-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.4rem;
  }
  .library-nav-section {
    align-content: start;
  }
  .sidebar-cta {
    grid-column: 1 / -1;
  }
  .story-feed {
    grid-template-columns: 1fr;
  }
  .story-feed .story-card-link {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .story-feed .story-card {
    padding: 0.9rem 0;
  }
  .desktop-filters {
    display: none;
  }
  .mobile-filter-drawer {
    display: block;
  }
  .mobile-filter-drawer > summary {
    list-style: none;
    cursor: pointer;
  }
  .mobile-filter-drawer > summary::-webkit-details-marker {
    display: none;
  }
  .mobile-filter-drawer[open] .filter-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 96;
    max-height: 80vh;
    padding: 1.2rem;
    overflow-y: auto;
    background: var(--paper-light);
    border-top: 1px solid var(--ink);
    box-shadow: 0 -24px 60px rgba(25, 21, 18, 0.22);
  }
  .filter-panel .filter-field {
    min-width: 0;
  }
  .filter-panel .filter-actions {
    margin-left: 0;
  }
  .catalog-toolbar {
    align-items: flex-start;
  }
  .collection-grid,
  .collection-grid-large,
  .genre-grid-library {
    grid-template-columns: 1fr;
  }
  .library-intro h1 {
    font-size: clamp(2.35rem, 9vw, 3.5rem);
  }
}

@media (max-width: 640px) {
  .site-header-library .masthead {
    align-items: center;
  }
  .brand-name {
    font-size: 1.02rem;
  }
  .masthead-tools {
    gap: 0.45rem;
  }
  .language-menu summary {
    font-size: 0.62rem;
  }
  .mobile-discover-button {
    font-size: 0.57rem;
  }
  .library-intro {
    padding-top: 0.2rem;
  }
  .library-intro h1 {
    font-size: clamp(2.1rem, 10.5vw, 2.9rem);
  }
  .library-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    background: transparent;
    border: 0;
  }
  .library-search .search-mark {
    display: none;
  }
  .library-search input {
    grid-column: 1 / -1;
    min-height: 3rem;
    padding: 0.6rem 0.75rem;
    background: var(--paper-light);
    border: 1px solid var(--line-dark);
  }
  .library-search .button {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0.4rem 0 0;
  }
  .quick-filters {
    gap: 0.32rem;
  }
  .chip {
    padding: 0.28rem 0.5rem;
    font-size: 0.6rem;
  }
  .quick-label {
    width: 100%;
  }
  .story-feed .story-card-link {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 0.75rem;
  }
  .story-feed .story-card-title {
    font-size: 1.08rem;
  }
  .story-feed .story-card-description {
    font-size: 0.82rem;
  }
  .card-meta {
    gap: 0.28rem 0.5rem;
    font-size: 0.57rem;
  }
  .heat-label {
    font-size: 0.57rem;
  }
  .length-label {
    padding-left: 0.5rem;
  }
  .library-nav {
    grid-template-columns: 1fr;
  }
  .catalog-toolbar {
    display: block;
  }
  .mobile-filter-drawer {
    margin-top: 0.6rem;
  }
  .inline-sort {
    gap: 0.3rem;
  }
  .inline-sort label {
    display: none;
  }
  .inline-sort select {
    flex: 1;
    min-width: 0;
  }
  .collection-card {
    min-height: 0;
  }
  .catalog-cta {
    padding: 1.2rem;
  }
}

.age-gate {
  z-index: 130;
}


.search-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 5px;
  height: 1.5px;
  content: "";
  background: currentColor;
  transform: rotate(45deg);
}

.library-search .search-mark {
  width: 14px;
  height: 14px;
  padding: 0;
  margin-left: 1rem;
  color: var(--oxblood);
}

.menu-icon {
  display: inline-grid;
  gap: 2px;
  width: 12px;
}

.menu-icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
}
/* SEO collections reuse the established library layout and type scale. */
.library-shell.seo-shell { display: block; }
.seo-main { max-width: 1040px; margin-inline: auto; }
.seo-main .prose { max-width: 76ch; }
.seo-main .cta-band { margin-block: 2rem; }
.seo-main .cta-band button:disabled { opacity: .7; cursor: not-allowed; }

/* Shared reader/author navigation: existing taxonomy, one sidebar per page. */
.reader-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding: 1.6rem 0 3rem;
}
.reader-content { min-width: 0; }
.has-library-navigation .reader-content > .library-shell { display: block; padding: 0; }
.has-library-navigation .reader-content .seo-main { max-width: none; }
.genre-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  top: calc(var(--site-header-height, 90px) + 1rem);
  max-height: calc(100dvh - var(--site-header-height, 90px) - 2rem);
  padding: 0 1rem 0 0;
  overflow: hidden;
}
.sidebar-top { flex: 0 0 auto; }
.sidebar-write { width: 100%; justify-content: center; gap: .4rem; font-size: .8rem; line-height: 1.4; padding: .9rem .65rem; letter-spacing: .01em; text-transform: none; text-align: center; }
.sidebar-write:hover { background: var(--oxblood-dark); }
.sidebar-write:focus-visible, .genre-sidebar .sidebar-link:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 3px; }
.genre-navigation { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: .2rem .35rem .5rem 0; }
.genre-sidebar .sidebar-link { align-items: center; padding: .6rem .55rem; border-left: 3px solid transparent; overflow-wrap: anywhere; }
.genre-sidebar .sidebar-link.is-active { border-left-color: var(--oxblood); background: rgba(116,45,54,.08); font-weight: 700; }
.sidebar-all { margin-top: .8rem; font-weight: 650; }
.sidebar-locale-note { margin: .75rem 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.page-story .genre-sidebar .sidebar-link:not(.is-active) { color: var(--muted); }
.has-library-navigation .member-shell { margin-top: .5rem; }
.writer-fields { display: grid; gap: 1.1rem; padding: 0; margin: 0; min-width: 0; border: 0; }
.writer-fields:disabled { opacity: .75; }
.chapter-jump-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.chapter-jump-nav a { padding: .3rem .55rem; border: 1px solid var(--line); font-size: .8rem; }
.chapter-editor { scroll-margin-top: calc(var(--site-header-height, 90px) + 1rem); }
.member-story-actions { display: flex; flex-wrap: wrap; gap: .7rem 1.1rem; margin-top: .75rem; font-size: .85rem; }
.author-state { display: inline-block; padding: .2rem .6rem; background: var(--paper-deep); font-size: .8rem; }
.author-state[data-state="changes_pending"], .author-state[data-state="pending_moderation"] { border-left: 3px solid var(--ochre); }
.authors-head { max-width: 52rem; padding: clamp(1.2rem, 2.6vw, 2.2rem) 0 clamp(.8rem, 1.6vw, 1.2rem); }
.authors-head h1 { margin-bottom: .4rem; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.authors-subtitle { max-width: 44rem; margin: -.1rem 0 0; color: var(--muted); font-family: var(--serif); font-size: .88rem; line-height: 1.45; }
.authors-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; margin-top: .9rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.authors-search { flex: 1 1 15rem; min-width: 0; }
.authors-sort { flex: 1 1 21rem; max-width: 29rem; }
.authors-toolbar input, .authors-toolbar select { width: 100%; min-height: 2.15rem; padding: .4rem .6rem; border: 1px solid var(--line-dark); border-radius: 0; background: var(--paper-light); color: var(--ink); }
.authors-toolbar input { font-size: .82rem; }
.authors-toolbar select { font-size: .72rem; }
.authors-toolbar .button { flex: 0 0 auto; min-height: 2.15rem; padding: .35rem .8rem; font-size: .62rem; }
.authors-table-wrap { margin-top: .7rem; overflow-x: auto; }
.authors-table { width: 100%; border-collapse: collapse; font-size: .72rem; }
.authors-table th { padding: .45rem .35rem; border-bottom: 1.5px solid var(--ink); color: var(--muted); font-family: var(--sans); font-size: .5rem; font-weight: 700; letter-spacing: .09em; text-align: left; text-transform: uppercase; }
.authors-table td { padding: .52rem .35rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.authors-table tbody tr:hover { background: rgba(116,45,54,.04); }
.author-name { font-family: var(--serif); font-size: .92rem; text-decoration: none; }
.author-name:hover { text-decoration: underline; }
.authors-count-col { width: 8.5rem; text-align: right; white-space: nowrap; }
.page-authors .result-summary { padding-bottom: .8rem; font-size: .64rem; }
.authors-table th.authors-count-col { text-align: right; }
.author-count { color: var(--ink-soft); font-family: var(--mono); font-size: .72rem; }
.author-genres { color: var(--muted); }
.author-genres-line { color: var(--muted); font-size: .82rem; }
.author-genres-line .eyebrow { margin-right: .4rem; }
.author-story-sort { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0; }
.author-story-sort select { max-width: 100%; padding: .4rem .6rem; border: 1px solid var(--line-dark); background: var(--paper-light); color: var(--ink); }
.author-story-sort button { padding: .4rem .7rem; border: 1px solid var(--line-dark); background: var(--paper-light); color: var(--ink); cursor: pointer; }
.author-story-card { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.author-story-card h3 { margin: 0 0 .5rem; }
.author-story-card p:last-child { margin-bottom: 0; }
[data-author-story-results][aria-busy="true"] { opacity: .55; }
.sidebar-authors { flex: 0 0 auto; margin-top: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sidebar-authors-title a { color: inherit; text-decoration: none; }
.sidebar-authors-title a:hover, .sidebar-authors-link.is-active { color: var(--oxblood); }
.sidebar-sublabel { margin: .1rem 0 .35rem; color: var(--muted); font-family: var(--sans); font-size: .52rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.author-list .sidebar-link { padding: .42rem .55rem; }
.author-list .sidebar-count { text-align: right; white-space: nowrap; }
#authors-results[aria-busy="true"] { opacity: .55; transition: opacity .15s ease; }
@media (max-width: 720px) {
  .authors-table thead { display: none; }
  .authors-table, .authors-table tbody, .authors-table tr, .authors-table td { display: block; width: 100%; }
  .authors-table tr { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .authors-table td { padding: .2rem 0; border: 0; }
  .authors-table td[data-label]::before { display: block; color: var(--muted); font-family: var(--sans); font-size: .55rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; content: attr(data-label); }
  .authors-count-col, .authors-table th.authors-count-col { width: auto; text-align: left; }
  .authors-toolbar .button { width: 100%; }
}
@media (max-width: 900px) {
  .reader-layout { display: block; padding-top: 1.2rem; }
  .genre-sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(320px, calc(100vw - 28px)); height: 100dvh;
    max-height: 100dvh; padding: 1rem; background: var(--paper-light); border-right: 1px solid var(--line-dark);
    border-top: 0; transform: translateX(-105%); transition: transform 220ms ease;
    visibility: hidden; pointer-events: none; box-shadow: 16px 0 50px rgba(25,21,18,.18);
  }
  .genre-sidebar.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .genre-sidebar .drawer-head { margin: 0 0 .8rem; padding: 0 0 .6rem; }
  .genre-sidebar .genre-navigation { flex: 1 1 auto; }
  .genre-sidebar .sidebar-link { min-height: 42px; }
  .mobile-discover-button { background: transparent; color: var(--ink); cursor: pointer; }
}

/* Writer editor and story reader refinement, 19 November 2026 */
.writer-shell { max-width: 62rem; }
.writer-actions { display: grid; gap: .8rem; padding-top: .4rem; }
.writer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.writer-field-wide { grid-column: 1 / -1; }
.writer-field { display: grid; gap: .4rem; min-width: 0; color: var(--ink-soft); font-size: .85rem; }
.writer-field input, .writer-field select, .writer-field textarea { width: 100%; padding: .75rem; border: 1px solid var(--line-dark); background: var(--paper-light); color: var(--ink); font: inherit; }
.writer-field textarea { min-height: 7rem; resize: vertical; }
.field-hint { margin: -.1rem 0 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.field-error { display: block; color: var(--wine); font-size: .76rem; font-weight: 600; }
.field-error:empty { display: none; }
.has-error > input, .has-error > textarea, .has-error > select { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(107, 36, 50, .14); }
.chip-group.has-error { outline: 2px solid rgba(107, 36, 50, .35); outline-offset: 4px; }
.chip-group { display: grid; gap: .6rem; min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--line); background: rgba(251, 248, 242, .68); }
.chip-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; }
.chip-group-head h2 { margin: 0; font-family: var(--serif); font-size: 1.12rem; }
.chip-counter { color: var(--muted); font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-cloud-scroll { max-height: 12rem; overflow-y: auto; padding: .1rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; padding: .38rem .75rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--paper-light); color: var(--ink-soft); font-family: var(--sans); font-size: .74rem; line-height: 1.25; text-align: left; cursor: pointer; transition: background 140ms ease, color 140ms ease, border-color 140ms ease; }
.chip:hover { border-color: var(--oxblood); color: var(--oxblood); }
.chip.is-selected { border-color: var(--oxblood); background: var(--oxblood); color: var(--paper-light); }
.chip.is-primary::after { margin-left: .2rem; padding: .08rem .35rem; border: 1px solid currentColor; border-radius: var(--radius); font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; content: attr(data-primary-label); opacity: .85; }
.chip-selected { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .2rem; }
.chip-removable .chip-x { font-size: 1rem; line-height: 1; opacity: .75; }
.chip-removable:hover .chip-x { opacity: 1; }
.chip-search input { width: 100%; min-height: 2.4rem; padding: .45rem .7rem; border: 1px solid var(--line-dark); background: var(--paper-light); color: var(--ink); font: inherit; }
.chip-custom { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-custom input { flex: 1 1 12rem; min-width: 0; min-height: 2.4rem; padding: .45rem .7rem; border: 1px solid var(--line-dark); background: var(--paper-light); color: var(--ink); font: inherit; }
.chip-group.is-limit .chip-counter { color: var(--wine); }
.button-primary { border-color: var(--oxblood); background: var(--oxblood); }
.button-primary:hover { background: var(--oxblood-dark); }
.button-secondary { border-color: var(--ink); background: transparent; color: var(--ink); }
.button-secondary:hover { color: var(--paper-light); }
.button-quiet { min-height: 2.4rem; padding: .5rem .9rem; border-color: var(--line-dark); background: transparent; color: var(--ink-soft); font-size: .66rem; }
.button-quiet:hover { border-color: var(--oxblood); background: transparent; color: var(--oxblood); }
.button-danger { min-height: 2.4rem; padding: .5rem .9rem; border-color: var(--wine); background: transparent; color: var(--wine); font-size: .66rem; }
.button-danger:hover { background: var(--wine); color: var(--paper-light); }
.button-add-chapter { justify-self: start; }
.save-status { display: inline-flex; align-items: center; gap: .45rem; min-height: 1.4rem; margin: 0; color: var(--muted); font-size: .76rem; }
.save-status::before { width: .5rem; height: .5rem; border-radius: 50%; background: var(--sage); content: ""; }
.save-status[data-state="saving"]::before { background: var(--ochre); animation: save-pulse 1s ease-in-out infinite; }
.save-status[data-state="error"] { color: var(--wine); }
.save-status[data-state="error"]::before { background: var(--wine); }
.save-status[data-state="pending"]::before { background: var(--plum); }
@keyframes save-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.form-error, .form-alert { margin: 0; padding: .7rem .9rem; border-left: 3px solid var(--wine); background: rgba(107, 36, 50, .08); color: var(--wine); font-size: .82rem; }
.form-alert-info { border-left-color: var(--plum); background: rgba(91, 58, 78, .08); color: var(--plum); }
.chapter-editor { position: relative; padding: 1rem; border: 1px solid var(--line); background: rgba(251, 248, 242, .55); }
.chapter-editor legend { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .6rem; padding: 0 .25rem; color: var(--ink); font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.chapter-tools { display: inline-flex; gap: .3rem; }
.icon-button { display: inline-flex; width: 2.15rem; height: 2.15rem; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--paper-light); color: var(--ink-soft); font-size: .9rem; line-height: 1; cursor: pointer; }
.icon-button:hover { border-color: var(--oxblood); color: var(--oxblood); }
.icon-button-danger:hover { border-color: var(--wine); background: var(--wine); color: var(--paper-light); }
.check-label-boxed { padding: .85rem; border: 1px solid var(--line); background: rgba(251, 248, 242, .6); }
.check-label-boxed .field-error { flex-basis: 100%; }
.chapter-jump-nav { padding: .15rem 0; }
.chapter-toc { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.6rem; padding: 0 0 1rem; border-bottom: 1px solid var(--line); }
.chapter-toc a { padding: .32rem .6rem; border: 1px solid var(--line); color: var(--ink-soft); font-family: var(--sans); font-size: .68rem; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.chapter-toc a:hover { border-color: var(--oxblood); color: var(--oxblood); }
.story-chapter { padding-top: .4rem; }
.story-chapter + .story-chapter { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.chapter-heading { max-width: var(--reading); margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.story-chapter:first-of-type > p:first-of-type::first-letter { float: left; margin: .1em .1em 0 0; color: var(--oxblood); font-size: 4.2em; line-height: .76; }
.story-warnings { margin-top: 1.4rem; }
.warning-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .4rem 0 0; list-style: none; }
.warning-chips li { padding: .22rem .5rem; border: 1px solid var(--line-dark); background: var(--paper-light); color: var(--ink-soft); font-size: .68rem; }
@media (max-width: 760px) {
  .writer-grid { grid-template-columns: minmax(0, 1fr); }
  .chip { min-height: 2.6rem; }
  .chip-cloud-scroll { max-height: none; }
  .chapter-tools .icon-button { width: 2.6rem; height: 2.6rem; }
  .writer-actions .member-links { flex-direction: column; align-items: stretch; }
  .writer-actions .member-links .button { width: 100%; }
}
.comments-section { margin-top: 2.4rem; }
.comments-title { padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.comment-actions .button-primary { border-color: var(--oxblood); background: var(--oxblood); color: var(--paper-light); }
.member-comment { padding: 1.1rem 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; }
.comment-head a { color: var(--ink); font-family: var(--serif); font-size: 1.02rem; text-decoration: none; }
.comment-head a:hover { color: var(--oxblood); text-decoration: underline; }
.comment-badge { padding: .12rem .4rem; border: 1px solid var(--ochre); color: var(--ochre); font-family: var(--sans); font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.comment-badge-muted { border-color: var(--line-dark); color: var(--muted); }
.comment-body { margin: .45rem 0 .7rem; font-family: var(--serif); font-size: 1.02rem; line-height: 1.7; }
.comment-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.comment-tools summary, .comment-report summary { cursor: pointer; }
.comment-edit { margin: .6rem 0 .2rem; padding: .8rem; border: 1px solid var(--line); }
.comment-form { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.comment-report { margin-top: 1rem; }
.check-label input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--oxblood); }
