:root {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  color: #192b57;
  background: #f5f7ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --paper: #f5f7ff;
  --surface: #fff;
  --ink: #192b57;
  --muted: #56658b;
  --accent: #4263eb;
  --accent2: #8059e8;
  --rule: #d8dff2;
  --subtle: #ecebff;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button,
input,
select {
  color: var(--ink);
}
button {
  min-height: 40px;
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 14px;
  background: var(--ink);
  color: white;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  max-width: 1800px;
  min-height: 100vh;
  margin: auto;
}
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule);
  background: linear-gradient(165deg, #edf2ff, #eee9ff);
  z-index: 5;
}
.brand {
  font:
    700 33px/1 Georgia,
    serif;
  letter-spacing: -1.6px;
  display: block;
  margin: 0 12px 45px;
}
.brand span {
  display: block;
  font:
    11px/1.5 "Segoe UI",
    sans-serif;
  letter-spacing: 0.3px;
  margin-top: 12px;
  color: var(--muted);
}
.rail-nav {
  display: grid;
  gap: 9px;
}
.rail-link {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 12px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 8px;
  border-left: 3px solid transparent;
}
.rail-link.active {
  background: #e1e4ff;
  color: #304ad4;
}
.rail-link:hover {
  background: #e0e5fc;
  text-decoration: none;
}
.nav-count {
  font-size: 12px;
  margin-left: auto;
}
.rail-bottom {
  margin: auto 12px 0;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.rail-bottom .icon {
  color: var(--accent);
}
.rail-bottom p {
  font:
    italic 20px/1.5 Georgia,
    serif;
  margin: 10px 0 18px;
}
.rail-bottom a {
  font-size: 12px;
  color: var(--muted);
}
.main-content {
  min-width: 0;
  padding: 26px clamp(24px, 3.5vw, 60px) 24px;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.quiet-link {
  font-size: 12px;
  color: var(--muted);
}
.mode-switch {
  display: flex;
  border: 1px solid #cbd3ee;
  border-radius: 30px;
  padding: 3px;
  background: #fff;
  gap: 2px;
}
.mode-button {
  border: 0;
  border-radius: 24px;
  background: transparent;
  padding: 8px 20px;
  font-size: 13px;
  white-space: nowrap;
  min-height: 36px;
}
.mode-button.selected {
  background: #4263eb;
  color: white;
  box-shadow: 0 2px 7px #4263eb22;
}
.intro-header h1 {
  font:
    600 clamp(34px, 3.5vw, 55px)/1.12 Georgia,
    serif;
  letter-spacing: -1.9px;
  margin: 0 0 25px;
}
.intro-header em {
  font-style: normal;
}
.finder {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 11px;
}
.searchbox {
  position: relative;
  display: block;
}
.searchbox > .icon,
.searchbox > span > .icon {
  position: absolute;
  left: 16px;
  top: 16px;
}
.searchbox input,
.finder select,
.advanced select {
  width: 100%;
  height: 54px;
  background: var(--surface);
  border: 1px solid #c7d0ee;
  border-radius: 9px;
  font-size: 14px;
  min-width: 0;
}
.searchbox input {
  padding: 0 46px 0 47px;
}
.searchbox input::placeholder {
  color: #65759a;
  opacity: 1;
}
.searchbox kbd {
  position: absolute;
  right: 15px;
  top: 17px;
  font: 12px monospace;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 2px 5px;
  border-radius: 3px;
}
.finder select {
  padding: 0 12px;
  cursor: pointer;
}
.select-wrap {
  min-width: 0;
}
.finder-secondary {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  margin: 10px 0 19px;
  min-height: 32px;
}
.advanced {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}
.advanced summary {
  cursor: pointer;
  min-height: 32px;
  display: list-item;
  margin-left: 14px;
  padding: 6px 0;
}
.advanced-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  padding: 12px 0;
  max-width: 790px;
}
.advanced-fields label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.advanced select {
  height: 43px;
  font-size: 12px;
  padding: 0 8px;
}
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.4;
  padding: 4px 0;
  min-height: 32px;
}
.text-action:hover {
  text-decoration: underline;
}
.featured {
  background: #eae9ff;
  border: 1px solid #e1dffd;
  border-radius: 12px;
  padding: 28px 34px 25px;
  margin-bottom: 24px;
}
.featured blockquote {
  font:
    30px/1.38 Georgia,
    serif;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  max-width: 1000px;
  white-space: pre-line;
}
.featured-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.featured-bottom strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.featured-bottom cite {
  display: block;
  font:
    italic 14px/1.5 Georgia,
    serif;
  color: var(--muted);
  margin-top: 4px;
}
.featured .text-action {
  white-space: nowrap;
}
.topic-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.topic-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 30px;
  padding: 9px 15px;
  color: var(--ink);
  min-height: 42px;
  font-size: 12px;
  line-height: 1.3;
}
.topic-tile.active {
  background: #e0eaff;
  border-color: #afbff3;
  color: #2542b7;
}
.topic-tile:hover {
  border-color: var(--accent);
}
.topic-count {
  color: var(--muted);
  font-size: 11px;
}
.topic-tile .icon {
  height: 16px;
  width: 16px;
  color: var(--topic-color, var(--accent));
}
.collection-head,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
h2 {
  font:
    normal 29px/1.2 Georgia,
    serif;
  letter-spacing: -0.7px;
  margin: 0;
}
.collection-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.clear-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 5px;
}
.filter-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.filter-tabs {
  display: flex;
  gap: 22px;
}
.scope {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 9px 0;
  color: var(--muted);
  font-size: 13px;
}
.scope.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.scope span {
  margin-left: 4px;
  font-size: 11px;
}
.active-filter {
  font-size: 12px;
  color: var(--muted);
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.quote-card {
  background: var(--surface);
  border: 1px solid #e0e5f3;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  padding: 22px 23px 16px;
  min-height: 255px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.card-classification {
  font-size: 11px;
  color: var(--muted);
}
.favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 8px;
  color: var(--muted);
  min-height: 36px;
  min-width: 36px;
  margin: -8px -9px -3px 0;
}
.favorite[aria-pressed="true"] {
  color: var(--accent);
}
.favorite[aria-pressed="true"] .icon {
  fill: var(--subtle);
  stroke-width: 2;
}
.quote-excerpt {
  font:
    22px/1.38 Georgia,
    serif;
  letter-spacing: -0.2px;
  white-space: pre-line;
  display: block;
  margin-bottom: 20px;
  flex: 1;
}
.card-author {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.card-source {
  font:
    italic 13px/1.5 Georgia,
    serif;
  color: var(--muted);
  margin-top: 4px;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin-top: 18px;
}
.card-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  min-height: 30px;
}
.card-copy .icon {
  width: 16px;
  height: 16px;
}
.card-foot a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  min-height: 30px;
}
.card-foot a .icon {
  width: 16px;
  height: 16px;
}
.source-chip {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  display: block;
}
.more-wrap {
  text-align: center;
  margin: 24px 0;
}
.show-more,
.empty-state button,
.notebook-tools button {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 13px;
  background: var(--surface);
  color: var(--ink);
}
.empty-state {
  text-align: center;
  border: 1px dashed var(--rule);
  padding: 40px 20px;
}
.empty-state h3 {
  font:
    27px Georgia,
    serif;
}
.empty-state p {
  font-size: 14px;
  color: var(--muted);
}
.notebook-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 0 20px;
  border-top: 1px solid var(--rule);
}
.notebook-tools span {
  font-size: 12px;
  color: var(--muted);
  flex-basis: 100%;
  line-height: 1.5;
}
.authors-section {
  border-top: 1px solid var(--rule);
  padding: 34px 0;
  margin-top: 30px;
}
.section-head > a {
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.author-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 25px;
}
.author-link {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.author-link span {
  font-size: 12px;
  color: var(--muted);
}
.about-block {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 36px;
  background: #edeeff;
  padding: 30px;
  border-radius: 10px;
  margin: 25px 0 35px;
}
.about-block h2 {
  font-size: 35px;
  margin-bottom: 20px;
}
.about-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
}
.about-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 13px;
}
.about-block p:last-child {
  margin: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding: 23px 0;
  font-size: 12px;
  color: var(--muted);
}
.notice {
  font-size: 13px;
  line-height: 1.7;
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 13px 16px;
  margin-bottom: 18px;
}
.notice a {
  text-decoration: underline;
}
.notice button {
  font: inherit;
  border: 1px solid var(--rule);
  background: var(--subtle);
  padding: 5px 10px;
  margin: 7px 8px 0 0;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  max-width: min(90vw, 550px);
  transform: translate(-50%, 10px);
  background: var(--ink);
  color: var(--surface);
  padding: 14px 20px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.5;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid var(--rule);
  border-radius: 12px;
  max-width: min(740px, 94vw);
  max-height: 90dvh;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 25px 90px #192b5730;
}
dialog::backdrop {
  background: #16224399;
  backdrop-filter: blur(3px);
}
.dialog-card {
  padding: clamp(22px, 4vw, 40px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.close-dialog {
  border: 0;
  background: transparent;
  padding: 10px;
  display: flex;
  align-items: center;
  margin-right: -10px;
}
.dialog-card blockquote {
  font:
    clamp(25px, 3vw, 35px)/1.4 Georgia,
    serif;
  letter-spacing: -0.4px;
  white-space: pre-line;
  margin: 28px 0 18px;
}
.dialog-author {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 23px;
}
.dialog-meta {
  border-top: 1px solid var(--rule);
  padding-top: 15px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 15px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.dialog-meta dt {
  color: var(--muted);
}
.dialog-meta dd {
  margin: 0;
}
.dialog-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.dialog-actions > * {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--paper);
  padding: 10px 13px;
  font-size: 12px;
  color: var(--ink);
  min-height: 42px;
}
.dialog-actions > a {
  background: var(--accent);
  color: white;
}
.dialog-actions .icon {
  width: 16px;
  height: 16px;
}
.source-notice {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 20px;
}
#importDialog p {
  font-size: 14px;
  line-height: 1.7;
}
.static-page {
  max-width: 900px;
  margin: auto;
  padding: 40px 24px;
}
.static-page h1 {
  font:
    42px Georgia,
    serif;
}
.static-page p,
.static-page li {
  line-height: 1.8;
}
.static-page blockquote {
  font:
    25px/1.5 Georgia,
    serif;
  white-space: pre-line;
  margin: 20px 0;
}
.static-page article {
  border-top: 1px solid var(--rule);
  padding: 25px 0;
}
.static-page a {
  text-decoration: underline;
  color: var(--accent);
}
.static-page .meta {
  font-size: 13px;
  color: var(--muted);
}
.browse-index {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0 32px;
}
.author-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 13px;
}
.author-heading {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid var(--rule);
  font: 28px Georgia, serif;
}
body[data-mode="journal"] {
  --paper: #f6f5f0;
  --surface: #fdfcf8;
  --ink: #183f3a;
  --muted: #52665c;
  --accent: #a84228;
  --accent2: #a84228;
  --rule: #cbd2c8;
  --subtle: #e5e8dd;
  --radius: 4px;
}
body[data-mode="journal"] .shell {
  grid-template-columns: 236px minmax(0, 1fr);
}
body[data-mode="journal"] .rail {
  background: #183f3a;
  border-color: #31554d;
  color: #f6f5f0;
  padding: 35px 16px;
}
body[data-mode="journal"] .brand {
  font-weight: normal;
  letter-spacing: -0.7px;
  margin-bottom: 47px;
}
body[data-mode="journal"] .brand span {
  color: #c5d2c3;
}
body[data-mode="journal"] .rail-link {
  border-radius: 2px;
  color: #ecf1e7;
}
body[data-mode="journal"] .rail-link.active {
  border-left-color: #db805c;
  background: #35564e;
  color: #fff;
}
body[data-mode="journal"] .rail-link:hover {
  background: #35564e;
}
body[data-mode="journal"] .rail-bottom {
  border-color: #5c7b70;
}
body[data-mode="journal"] .rail-bottom a,
body[data-mode="journal"] .rail-bottom .icon {
  color: #c5d2c3;
}
body[data-mode="journal"] .mode-switch {
  border-color: #cbd2c8;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  gap: 0;
}
body[data-mode="journal"] .mode-button {
  border-radius: 3px;
  min-height: 40px;
}
body[data-mode="journal"] .mode-button.selected {
  background: #a84228;
  color: #fff;
  box-shadow: none;
}
body[data-mode="journal"] .topline {
  margin-bottom: 34px;
}
body[data-mode="journal"] .intro-header h1 {
  font-weight: normal;
  font-size: clamp(42px, 4.1vw, 64px);
  letter-spacing: -2px;
  margin-bottom: 28px;
}
body[data-mode="journal"] .intro-header em {
  color: #a84228;
  font-style: italic;
}
body[data-mode="journal"] .searchbox input,
body[data-mode="journal"] .finder select,
body[data-mode="journal"] .advanced select {
  border-color: #bdc8be;
  background: transparent;
  border-radius: 3px;
}
body[data-mode="journal"] .searchbox input::placeholder {
  color: #58675f;
}
body[data-mode="journal"] .featured {
  background: #e5e8dd;
  border: 0;
  border-radius: 4px;
  padding: 33px 36px 29px;
  margin-bottom: 26px;
}
body[data-mode="journal"] .featured blockquote {
  font-size: clamp(30px, 3.3vw, 47px);
  line-height: 1.25;
  max-width: 1000px;
  margin-bottom: 23px;
}
body[data-mode="journal"] .featured-bottom {
  align-items: center;
}
body[data-mode="journal"] .featured-bottom strong {
  font:
    20px Georgia,
    serif;
}
body[data-mode="journal"] .featured-bottom cite {
  font-size: 16px;
}
body[data-mode="journal"] .topic-grid {
  gap: 0;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 20px;
}
body[data-mode="journal"] .topic-tile {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--rule);
  border-radius: 0;
  padding: 8px 13px;
  font:
    15px Georgia,
    serif;
}
body[data-mode="journal"] .topic-tile .icon {
  display: none;
}
body[data-mode="journal"] .topic-tile.active {
  color: #a84228;
  background: #e5e8dd;
}
body[data-mode="journal"] .topic-count {
  font:
    11px "Segoe UI",
    sans-serif;
}
body[data-mode="journal"] .quote-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}
body[data-mode="journal"] .quote-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  padding: 24px 0 20px;
  min-height: 290px;
}
body[data-mode="journal"] .quote-excerpt {
  font-size: 28px;
  line-height: 1.4;
}
body[data-mode="journal"] .card-classification {
  color: #a84228;
}
body[data-mode="journal"] .card-author {
  font:
    17px Georgia,
    serif;
}
body[data-mode="journal"] .card-source {
  font-size: 15px;
}
body[data-mode="journal"] .about-block {
  border-radius: 3px;
  background: #e5e8dd;
}
body[data-mode="journal"] dialog {
  border-radius: 4px;
}
@media (min-width: 1650px) {
  .main-content {
    padding-left: 65px;
    padding-right: 65px;
  }
  .quote-excerpt {
    font-size: 25px;
  }
}
@media (max-width: 1150px) {
  .shell,
  body[data-mode="journal"] .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .brand {
    font-size: 29px;
  }
  .main-content {
    padding: 25px;
  }
  .finder {
    grid-template-columns: minmax(220px, 1fr) 145px 145px;
    gap: 8px;
  }
  .searchbox input,
  .finder select {
    font-size: 12px;
  }
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quote-excerpt {
    font-size: 23px;
  }
  .author-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .shell,
  body[data-mode="journal"] .shell {
    display: block;
  }
  .rail,
  body[data-mode="journal"] .rail {
    position: static;
    height: auto;
    padding: 18px 22px 11px;
    border-right: 0;
    gap: 15px;
  }
  .brand,
  body[data-mode="journal"] .brand {
    margin: 0;
    font-size: 30px;
  }
  .brand span {
    display: none;
  }
  .rail-nav {
    display: flex;
    justify-content: space-between;
    gap: 3px;
  }
  .rail-link {
    flex-direction: column;
    gap: 5px;
    padding: 9px 7px 7px;
    font-size: 11px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    position: relative;
  }
  .rail-link.active {
    border-bottom-color: var(--accent);
  }
  body[data-mode="journal"] .rail-link.active {
    border-bottom-color: #db805c;
  }
  .rail-link .icon {
    width: 20px;
    height: 20px;
  }
  .nav-count {
    position: absolute;
    top: 4px;
    right: 0;
    font-size: 10px;
  }
  .rail-bottom {
    display: none;
  }
  .topline {
    margin-bottom: 26px;
  }
  .main-content {
    padding: 22px;
  }
  .finder {
    grid-template-columns: 1fr 1fr;
  }
  .searchbox {
    grid-column: 1/-1;
  }
  .searchbox input,
  .finder select {
    font-size: 14px;
  }
  .featured blockquote {
    font-size: 29px;
  }
  .quote-grid {
    gap: 14px;
  }
  .quote-excerpt {
    font-size: 23px;
  }
  .about-block {
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
    padding: 24px;
  }
  .intro-header h1 {
    font-size: 43px;
  }
}
@media (max-width: 530px) {
  html {
    scroll-padding-top: 14px;
  }
  .rail,
  body[data-mode="journal"] .rail {
    padding: 19px 16px 8px;
    gap: 15px;
  }
  .rail-nav {
    gap: 0;
  }
  .rail-link {
    font-size: 10px;
    padding: 8px 6px 7px;
    min-width: 44px;
    line-height: 1.4;
  }
  .main-content {
    padding: 19px 18px;
  }
  .topline,
  body[data-mode="journal"] .topline {
    margin-bottom: 25px;
    gap: 12px;
    align-items: center;
  }
  .topline > .quiet-link {
    font-size: 11px;
    line-height: 1.4;
    max-width: 75px;
  }
  .mode-button {
    font-size: 11px;
    padding: 8px 13px;
    min-height: 36px;
  }
  .intro-header h1,
  body[data-mode="journal"] .intro-header h1 {
    font-size: 38px;
    letter-spacing: -1.5px;
    margin-bottom: 23px;
    line-height: 1.13;
  }
  .finder {
    gap: 9px;
  }
  .searchbox input,
  .finder select {
    height: 48px;
    font-size: 12px;
  }
  .searchbox input {
    padding-left: 40px;
    padding-right: 30px;
  }
  .searchbox > .icon,
  .searchbox > span > .icon {
    left: 12px;
    top: 14px;
    width: 19px;
    height: 19px;
  }
  .searchbox kbd {
    right: 11px;
    top: 14px;
  }
  .finder-secondary {
    margin: 10px 0 15px;
  }
  .text-action {
    font-size: 12px;
    gap: 6px;
  }
  .advanced {
    font-size: 11px;
  }
  .advanced-fields {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .featured,
  body[data-mode="journal"] .featured {
    padding: 24px 23px 23px;
    margin-bottom: 20px;
  }
  .featured blockquote,
  body[data-mode="journal"] .featured blockquote {
    font-size: 29px;
    line-height: 1.32;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
  }
  .featured-bottom,
  body[data-mode="journal"] .featured-bottom {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
  .featured-bottom strong {
    font-size: 13px;
  }
  .featured-bottom cite {
    font-size: 13px;
  }
  .topic-grid {
    gap: 7px;
    margin-bottom: 29px;
  }
  .topic-tile {
    padding: 8px 11px;
    font-size: 11px;
    gap: 6px;
    min-height: 38px;
  }
  .topic-count {
    font-size: 10px;
  }
  .topic-tile .icon {
    display: none;
  }
  body[data-mode="journal"] .topic-grid {
    gap: 4px 0;
    padding-bottom: 18px;
    margin-bottom: 25px;
  }
  body[data-mode="journal"] .topic-tile {
    font-size: 14px;
    padding: 8px 10px;
  }
  h2 {
    font-size: 27px;
  }
  .collection-head,
  .section-head {
    align-items: start;
    gap: 15px;
  }
  .collection-head p {
    font-size: 11px;
  }
  .clear-button {
    font-size: 11px;
    white-space: nowrap;
    margin-top: 0;
  }
  .filter-line {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }
  .filter-tabs {
    gap: 20px;
  }
  .scope {
    font-size: 12px;
  }
  .active-filter {
    font-size: 11px;
  }
  .quote-grid,
  body[data-mode="journal"] .quote-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .quote-card {
    padding: 20px 22px;
    min-height: 0;
  }
  .quote-excerpt {
    font-size: 25px;
  }
  .card-foot {
    margin-top: 15px;
  }
  .card-classification {
    font-size: 11px;
  }
  body[data-mode="journal"] .quote-card {
    min-height: 0;
    padding: 24px 0;
  }
  body[data-mode="journal"] .quote-excerpt {
    font-size: 28px;
  }
  .notebook-tools button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .notebook-tools span {
    font-size: 11px;
  }
  .author-directory {
    grid-template-columns: 1fr;
  }
  .author-link {
    font-size: 13px;
    padding: 13px 0;
  }
  .section-head > a {
    font-size: 11px;
    max-width: 120px;
    line-height: 1.5;
  }
  .about-block {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 22px;
    margin-top: 10px;
  }
  .about-block h2 {
    font-size: 34px;
  }
  .about-block p {
    font-size: 13px;
  }
  .dialog-meta {
    grid-template-columns: 1fr;
    gap: 3px;
    font-size: 12px;
  }
  .dialog-meta dd {
    margin-bottom: 10px;
  }
  .dialog-card blockquote {
    font-size: 27px;
  }
  .dialog-actions > * {
    font-size: 11px;
    padding: 9px 10px;
  }
  .dialog-card {
    padding: 23px;
  }
  .toast {
    bottom: 15px;
    font-size: 12px;
  }
  footer {
    font-size: 11px;
  }
  footer span:last-child {
    flex-basis: 100%;
  }
  .static-page {
    padding: 25px 20px;
  }
  .static-page h1 {
    font-size: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .rail,
  .topline,
  .finder,
  .finder-secondary,
  .topic-grid,
  .notebook-tools,
  .favorite,
  .card-foot,
  .filter-line,
  .more-wrap,
  .clear-button,
  .toast,
  dialog,
  .authors-section,
  .about-block,
  footer {
    display: none !important;
  }
  .shell {
    display: block !important;
  }
  .main-content {
    padding: 0;
  }
  .quote-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .quote-card {
    break-inside: avoid;
    box-shadow: none;
  }
  .quote-excerpt {
    font-size: 18px;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .featured {
    border: 1px solid #bbb !important;
    background: white !important;
  }
  .source-chip {
    color: #333;
  }
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 10px;
  }
}
