:root {
  color-scheme: light;
  --page: #fbfbfa;
  --paper: #ffffff;
  --paper-soft: #f4f4f2;
  --ink: #111111;
  --ink-soft: #363636;
  --muted: #707070;
  --faint: #a0a0a0;
  --line: #ddddda;
  --line-strong: #b8b8b4;
  --accent: #111111;
  --accent-soft: #e5e5e1;
  --warm: #111111;
  --dark: #171717;
  --dark-soft: #242321;
  --max: 1460px;
  --reader-max: 1540px;
  --gutter: clamp(18px, 4vw, 58px);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.07);
  font-family: "Inter", "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px) 0 0 / 104px 104px,
    var(--page);
  color: var(--ink);
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 250, 0.94);
  padding: 14px var(--gutter);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.header-action,
.primary-button,
.secondary-button,
.text-link,
.preview-open-link,
.source-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  padding: 6px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 46px);
  align-items: center;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.nav-links a {
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}

.nav-links a[data-active="true"] {
  border-bottom-color: var(--ink);
}

.header-action {
  justify-self: end;
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
}

.header-action,
.primary-button {
  background: var(--ink);
  color: #ffffff;
}

.secondary-button {
  background: transparent;
  color: var(--ink);
}

.header-action:hover,
.primary-button:hover {
  background: #000000;
}

.secondary-button:hover {
  background: var(--paper-soft);
}

.page {
  min-height: calc(100vh - 122px);
}

.hero-section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) var(--gutter) clamp(20px, 3vw, 34px);
}

.hero-section::before {
  display: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 150px);
}

.hero-copy {
  display: grid;
  justify-items: start;
  min-width: 0;
  text-align: left;
}

.hero-brand-lockup,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--faint);
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  text-transform: uppercase;
}

.hero-brand-lockup {
  gap: 12px;
  border-color: rgba(17, 17, 17, 0.1);
  padding: 11px 16px 11px 13px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
  font-size: 18px;
  font-weight: 900;
}

.section-kicker {
  padding: 0;
}

.hero-brand-logo {
  display: block;
  width: 44px;
  height: 30px;
  object-fit: contain;
}

.hero-copy h1,
.page-intro h1,
.curated-strip h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.hero-copy h1 {
  max-width: 900px;
  margin-top: 0;
  font-size: clamp(76px, 8.6vw, 132px);
  line-height: 0.9;
}

.hero-copy h1 span {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--warm);
  text-decoration-thickness: 8px;
  text-underline-offset: 12px;
}

.hero-line {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.1vw, 44px);
  font-weight: 500;
  line-height: 1.12;
}

.hero-description {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 18px;
  margin-top: 34px;
}

.hero-product {
  display: grid;
  min-width: 0;
  gap: 16px;
  align-self: center;
}

.reader-preview-shell {
  position: relative;
  width: min(100%, 980px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.hero-product .reader-preview-shell {
  width: 100%;
  margin: 0;
  box-shadow: var(--shadow-soft);
}

.reader-preview-shell::before {
  display: none;
}

.reader-preview-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
}

.toolbar-cluster {
  display: flex;
  align-items: center;
  gap: 9px;
}

.toolbar-cluster:last-child {
  justify-content: flex-end;
}

.traffic-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line-strong);
}

.traffic-dot:nth-child(1) {
  background: #ef6a5f;
}

.traffic-dot:nth-child(2) {
  background: #f5be4f;
}

.traffic-dot:nth-child(3) {
  background: #61c454;
}

.toolbar-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.icon-button,
.toolbar-text {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  color: var(--ink-soft);
  font-size: 14px;
}

.preview-article {
  min-width: 0;
  padding: clamp(28px, 4vw, 50px);
}

.preview-label {
  width: max-content;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 830;
}

.preview-article h2 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.2vw, 50px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero-product .preview-article h2 {
  font-size: clamp(34px, 3.2vw, 50px);
}

.preview-meta,
.reader-meta,
.archive-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.preview-meta {
  margin-top: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.preview-meta span + span::before,
.reader-meta span + span::before,
.archive-card-meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: var(--faint);
}

.preview-article p {
  margin: 24px 0 0;
  max-width: 820px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.68;
}

.hero-product .preview-article p {
  font-size: 20px;
  line-height: 1.68;
}

.preview-open-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  font-weight: 820;
}

.preview-open-link {
  margin-top: 28px;
}

mark {
  border-bottom: 1px dashed var(--ink);
  border-radius: 2px;
  background: #e5e5e1;
  color: var(--ink);
  padding: 0 3px;
}

.reader-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.preview-notes {
  min-width: 0;
  border-left: 1px solid var(--line);
  background: var(--paper-soft);
  overflow: hidden;
  padding: 26px 22px;
}

.note-count {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 780;
}

.note-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.note-item strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.note-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.note-item p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.42;
}

.curated-strip,
.page-intro,
.archive-toolbar,
.archive-list,
.reader-app,
.method-grid,
.lexicon-rail,
.privacy-ledger {
  width: min(100%, var(--reader-max));
  margin-inline: auto;
}

.home-article-card,
.archive-card,
.method-grid article {
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.method-grid article:last-child {
  border-right: 0;
}

.method-grid span,
.lexicon-rail span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.curated-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(36px, 6vw, 86px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  padding: 42px var(--gutter);
}

.strip-copy {
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 92px;
}

.curated-strip h2 {
  margin-top: 18px;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.05;
}

.curated-strip p,
.page-intro p {
  margin: 18px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.55;
}

.curated-strip .text-link {
  margin-top: 24px;
}

.curated-rows {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0;
}

.home-article-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(140px, 0.8fr) auto;
  grid-template-rows: auto auto;
  gap: 8px 18px;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-article-card:hover,
.archive-card:hover {
  border-color: var(--line-strong);
  box-shadow: none;
  transform: none;
}

.home-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.home-card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--faint);
}

.home-article-card h3 {
  min-width: 0;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.home-card-action {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 0;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
  font-weight: 820;
}

.home-article-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-intro {
  padding: clamp(56px, 8vw, 112px) var(--gutter) 28px;
}

.page-intro h1 {
  max-width: 940px;
  margin-top: 18px;
  font-size: clamp(58px, 8vw, 124px);
  font-weight: 500;
  line-height: 0.95;
}

.archive-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 0 var(--gutter) 26px;
}

.archive-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.archive-filters {
  width: min(500px, 100%);
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  padding: 0 var(--gutter) 90px;
}

.archive-card {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 3vw, 34px);
}

.archive-card:nth-child(3n) {
  border-right: 0;
}

.archive-card h2 {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.archive-card p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.5;
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.source-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.archive-empty {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px;
  color: var(--muted);
}

.reader-app {
  --reader-sidebar-width: 320px;
  display: block;
  position: relative;
  width: min(calc(100% - 420px), 980px);
  min-height: 680px;
  overflow: visible;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  margin-left: 372px;
  margin-right: var(--gutter);
  margin-bottom: 90px;
  transition: width 180ms ease, margin 180ms ease;
}

.reader-app[data-sidebar="collapsed"] {
  width: min(100%, 980px);
  margin-inline: auto;
}

.reader-sidebar-toggle {
  position: fixed;
  top: 82px;
  left: 348px;
  z-index: 17;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  transition: left 180ms ease, background 160ms ease, color 160ms ease;
}

.reader-sidebar-toggle:hover {
  background: var(--ink);
  color: #ffffff;
}

.reader-app[data-sidebar="collapsed"] .reader-sidebar-toggle {
  left: 14px;
}

.reader-floating-tools {
  position: fixed;
  top: 86px;
  right: max(16px, calc((100vw - var(--reader-max)) / 2 + 18px));
  z-index: 16;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.reader-tool-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.reader-tool-button:hover,
.reader-tool-button[aria-expanded="true"],
.reader-tool-button[data-active="true"] {
  background: var(--ink);
  color: #ffffff;
}

.reader-back-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.reader-back-top[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reader-list-panel {
  position: fixed;
  top: 78px;
  bottom: 22px;
  left: 22px;
  z-index: 14;
  width: var(--reader-sidebar-width);
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper-soft);
  padding: 22px;
  box-shadow: var(--shadow);
  scrollbar-gutter: stable;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.reader-app[data-sidebar="collapsed"] .reader-list-panel {
  visibility: hidden;
  opacity: 0;
  transform: translateX(calc(-100% - 28px));
  pointer-events: none;
}

.panel-heading h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 860;
  letter-spacing: 0;
}

.panel-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.reader-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}

.reader-list-panel .reader-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reader-path-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reader-path-tab {
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
}

.reader-path-tab strong {
  min-width: 22px;
  border-radius: 6px;
  background: var(--paper-soft);
  color: var(--muted);
  padding: 3px 7px;
  text-align: center;
  font-size: 11px;
  font-weight: 820;
}

.reader-path-tab[data-active="true"] {
  background: var(--ink);
  color: #ffffff;
}

.reader-path-tab[data-active="true"] strong {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.filter-button {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.filter-button[data-active="true"] {
  background: var(--ink);
  color: #ffffff;
}

.article-list {
  display: grid;
  gap: 10px;
}

.article-issue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.article-issue-heading strong {
  color: var(--ink);
  font-size: 13px;
}

.article-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.article-button {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 13px;
  color: var(--ink);
  text-align: left;
}

.article-button:hover,
.article-row[data-active="true"] .article-button,
.article-row[data-active="true"] .article-favorite-button,
.article-favorite-button:hover {
  border-color: var(--line-strong);
  background: var(--paper);
}

.article-row[data-active="true"] .article-button {
  box-shadow: inset 3px 0 0 var(--ink);
}

.article-button strong {
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.article-button span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.article-read-status {
  width: fit-content;
  border-radius: 6px;
  background: var(--paper-soft);
  padding: 3px 8px;
  font-size: 11px !important;
  font-weight: 820;
}

.article-read-status[data-read="false"] {
  background: var(--paper);
  color: var(--ink);
}

.article-favorite-button {
  min-width: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding-inline: 8px;
  font-size: 17px;
  font-weight: 780;
}

.article-favorite-button[data-active="true"] {
  border-color: var(--line-strong);
  background: var(--ink);
  color: #ffffff;
}

.bookshelf-panel,
.reader-source-section {
  display: grid;
  gap: 12px;
}

.reader-source-section {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
}

.bookshelf-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px;
}

.import-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
}

.import-button:hover {
  background: #000000;
}

.import-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.local-book-list,
.local-chapter-list {
  display: grid;
  gap: 8px;
}

.bookshelf-empty {
  color: var(--muted);
  padding: 2px 0 0;
}

.bookshelf-empty strong {
  font-size: 12px;
  font-weight: 760;
}

.local-book-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.local-book-button,
.local-book-remove,
.local-chapter-button {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.local-book-button {
  display: grid;
  gap: 6px;
  border-color: var(--line);
  background: var(--paper);
  padding: 11px 12px;
  text-align: left;
}

.local-book-row[data-active="true"] .local-book-button,
.local-book-button:hover,
.local-chapter-button:hover,
.local-chapter-button[data-active="true"] {
  border-color: var(--line-strong);
  background: var(--paper);
}

.local-book-row[data-active="true"] .local-book-button {
  box-shadow: inset 3px 0 0 var(--ink);
}

.local-book-button strong {
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.local-book-button span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.local-book-button .local-book-badge {
  width: fit-content;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 820;
}

.local-book-remove {
  padding-inline: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.local-book-remove:hover {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.local-chapter-heading {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.local-chapter-button {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}

.reader-article-panel {
  min-width: 0;
  padding: 52px 62px;
}

.reader-settings-panel {
  position: absolute;
  top: 0;
  right: 52px;
  width: min(360px, calc(100vw - 96px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 14px;
}

.reader-settings-content {
  display: grid;
  gap: 10px;
}

.reader-settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.reader-settings-heading strong {
  font-size: 14px;
  font-weight: 850;
}

.reader-settings-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.reader-control {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 0 10px;
}

.reader-control-name,
.reader-control-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.reader-step-control button,
.reader-mode-button,
.reader-control-reset {
  min-width: 34px;
  min-height: 28px;
  border: 0;
  border-radius: 7px;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.reader-step-control button:hover,
.reader-mode-button:hover,
.reader-mode-button[data-active="true"],
.reader-control-reset:hover {
  background: var(--ink);
  color: #ffffff;
}

.reader-mode-control {
  gap: 4px;
}

.reader-mode-button {
  padding-inline: 10px;
}

.reader-mode-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.reader-range-control input {
  width: 116px;
  accent-color: var(--accent);
}

.reader-control-reset {
  border: 1px solid var(--line);
  padding-inline: 12px;
}

.reader-auto-scroll-button[data-active="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.reader-auto-scroll-button[data-active="false"] .reader-auto-icon-pause,
.reader-auto-scroll-button[data-active="true"] .reader-auto-icon-play {
  display: none;
}

.reader-progress-control {
  gap: 6px;
}

.reader-state {
  display: grid;
  min-height: 430px;
  align-content: center;
  justify-items: start;
}

.reader-state h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 880;
}

.reader-state p {
  margin: 12px 0 0;
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.6;
}

.reader-title {
  margin: 0;
  max-width: var(--reader-content-width, 78ch);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.reader-meta {
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.reader-meta a {
  color: var(--ink);
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reader-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--reader-content-width, 78ch);
  margin-top: 14px;
}

.reader-action-button {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 820;
}

.reader-action-button:hover,
.reader-action-button[data-active="true"] {
  background: var(--ink);
  color: #ffffff;
}

.reader-body {
  display: grid;
  gap: 20px;
  max-width: var(--reader-content-width, 78ch);
  margin-top: 34px;
}

.reader-body h2 {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 560;
}

.reader-local-chapter-title {
  color: var(--ink);
}

.reader-body p,
.reader-body li,
.reader-body blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--reader-font-size, 20px);
  line-height: var(--reader-line-height, 1.86);
}

.reader-body blockquote {
  border-left: 3px solid var(--line-strong);
  padding-left: 18px;
  color: var(--muted);
  font-style: italic;
}

.reader-body ul {
  margin: 0;
  padding-left: 24px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 var(--gutter);
}

.method-grid article {
  min-height: 260px;
  padding: clamp(24px, 3vw, 36px);
}

.method-grid h2 {
  margin: 42px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 500;
}

.method-grid p {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
}

.lexicon-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid var(--line);
  margin-top: 48px;
  margin-bottom: 90px;
  padding-inline: var(--gutter);
}

.lexicon-rail div {
  min-height: 170px;
  border-left: 1px solid var(--line);
  padding: 28px;
}

.lexicon-rail div:first-child {
  border-left: 0;
}

.lexicon-rail strong {
  display: block;
  margin-top: 18px;
  max-width: 320px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.12;
}

.privacy-ledger {
  display: grid;
  border-top: 1px solid var(--line);
  margin-bottom: 90px;
}

.privacy-ledger div {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(20px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.privacy-ledger strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.privacy-ledger span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter);
  color: var(--muted);
  font-size: 13px;
}

.site-footer-brand,
.site-footer-records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.site-footer-link,
.site-footer-record {
  color: var(--muted);
  text-decoration: none;
}

.site-footer-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1120px) {
  :root {
    --gutter: 32px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 70px;
  }

  .hero-product {
    width: min(100%, 760px);
  }

  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curated-strip {
    grid-template-columns: 1fr;
  }

  .strip-copy {
    position: static;
  }

  .archive-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reader-app,
  .reader-app[data-sidebar="collapsed"] {
    width: min(calc(100% - (var(--gutter) * 2)), 980px);
    margin-inline: auto;
  }

  .reader-sidebar-toggle {
    left: min(348px, calc(100vw - 56px));
  }

  .reader-app[data-sidebar="collapsed"] .reader-sidebar-toggle {
    left: 14px;
  }

  .reader-list-panel {
    width: min(320px, calc(100vw - 56px));
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 22px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    padding-top: 58px;
  }

  .hero-copy h1 {
    font-size: 56px;
  }

  .hero-line {
    font-size: 22px;
  }

  .hero-description {
    font-size: 17px;
  }

  .preview-article {
    padding: 34px;
  }

  .reader-preview {
    grid-template-columns: 1fr;
  }

  .preview-notes {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .preview-article h2 {
    font-size: 38px;
  }

  .curated-rows,
  .archive-list,
  .reader-app,
  .method-grid,
  .lexicon-rail,
  .privacy-ledger div {
    grid-template-columns: 1fr;
  }

  .curated-strip h2 {
    font-size: 40px;
  }

  .page-intro h1 {
    font-size: 54px;
  }

  .archive-toolbar {
    display: grid;
  }

  .reader-list-panel {
    top: 70px;
    bottom: 16px;
    left: 16px;
  }

  .reader-floating-tools {
    top: 76px;
    right: 14px;
  }

  .reader-settings-panel {
    top: 0;
    right: 50px;
  }

  .reader-sidebar-toggle {
    top: 76px;
    left: 16px;
  }

  .reader-article-panel {
    padding: 34px;
  }

  .reader-title {
    font-size: 42px;
  }

  .lexicon-rail div,
  .privacy-ledger div {
    border-left: 0;
  }

  .home-article-card {
    grid-template-columns: 1fr;
  }

  .home-card-meta {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

  .site-header {
    min-height: 58px;
    padding: 0 var(--gutter);
  }

  .brand {
    font-size: 20px;
  }

  .brand-logo {
    width: 34px;
    height: 22px;
  }

  .header-action {
    min-height: 38px;
    padding-inline: 13px;
  }

  .header-action span {
    display: none;
  }

  .hero-section,
  .page-intro,
  .archive-toolbar,
  .archive-list,
  .method-grid {
    padding-inline: var(--gutter);
  }

  .hero-section {
    padding-top: 44px;
    padding-bottom: 42px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .preview-article {
    padding: 24px 20px 28px;
  }

  .reader-preview-toolbar {
    padding-inline: 14px;
  }

  .toolbar-title {
    display: none;
  }

  .preview-article h2 {
    font-size: 30px;
  }

  .preview-article p,
  .reader-body p,
  .reader-body li,
  .reader-body blockquote {
    font-size: 18px;
  }

  .curated-strip h2 {
    font-size: 34px;
  }

  .curated-strip {
    padding: 0 var(--gutter) 58px;
  }

  .page-intro {
    padding-top: 48px;
  }

  .page-intro h1 {
    font-size: 40px;
  }

  .reader-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-row {
    grid-template-columns: 1fr;
  }

  .article-favorite-button {
    justify-self: start;
    min-height: 34px;
  }

  .reader-article-panel {
    padding: 72px 20px 20px;
  }

  .reader-list-panel {
    padding: 16px;
  }

  .reader-title {
    font-size: 34px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: var(--gutter);
  }
}
