:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --surface: #ebe7dc;
  --ink: #292d29;
  --muted: #62685f;
  --line: #d6d5c9;
  --gold: #826228;
  --button-text: #f7f3e9;
  --reading-size: 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1d231f;
  --surface: #272e28;
  --ink: #eeeade;
  --muted: #b0b7a9;
  --line: #404b40;
  --gold: #d5b16e;
  --button-text: #202720;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
button, input {
  font: inherit;
}
button, a, input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: .4;
  cursor: default;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1160px, calc(100% - 96px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus {
  top: 16px;
}
.site-header {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 750;
}
.brand-secondary {
  font-weight: 450;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header nav a {
  text-decoration: none;
  font-size: 13px;
}
.site-header nav a:hover {
  text-decoration: underline;
}
.theme-button {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background: none;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  min-height: 590px;
  align-items: center;
  padding-block: 72px 80px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .18em;
  line-height: 1.6;
  margin: 0 0 20px;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.small-rule {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}
h1, h2, h3, p {
  overflow-wrap: anywhere;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.8vw, 66px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0 0 26px;
}
.hero h1 em {
  color: var(--gold);
  font-weight: 400;
}
.intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0 0 30px;
}
.primary-link {
  display: inline-flex;
  gap: 32px;
  align-items: center;
  padding: 15px 20px;
  background: var(--ink);
  color: var(--button-text);
  text-decoration: none;
  font-size: 12px;
  border-radius: 2px;
}
.primary-link:hover {
  transform: translateY(-2px);
}
.primary-link span {
  font-size: 18px;
}
.book-art {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 355px;
  height: 355px;
}
.orbit-two {
  width: 395px;
  height: 395px;
  border-style: dashed;
  opacity: .55;
}
.book-cover {
  position: relative;
  width: 234px;
  height: 326px;
  transform: rotate(-8deg);
  background: #293c33;
  color: #dbc69a;
  box-shadow: 14px 14px 0 -8px #dfd9c9, 18px 16px 0 -8px #647060, 14px 26px 30px #111a122b;
  border: 1px solid #6d7a66;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 27px 15px;
}
.book-cover::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #b59f6660;
}
.cover-studio {
  font-size: 7px;
  letter-spacing: .25em;
}
.cover-symbol {
  margin: 46px 0 30px;
  width: 74px;
  height: 74px;
  border: 1px solid #bba56b;
  transform: rotate(45deg);
  display: grid;
  place-items: center;
}
.cover-symbol::after {
  content: "";
  width: 46px;
  height: 46px;
  border: 1px solid #bba56b;
  border-radius: 50%;
}
.cover-symbol span {
  position: absolute;
  width: 1px;
  height: 118px;
  background: #bba56b;
  transform: rotate(-45deg);
}
.cover-title {
  font-family: Georgia, serif;
  font-size: 22px;
  letter-spacing: .1em;
}
.cover-note {
  margin-top: 14px;
  font-size: 6px;
  letter-spacing: .23em;
}
.art-caption {
  position: absolute;
  bottom: -28px;
  font-size: 8px;
  letter-spacing: .22em;
  color: var(--muted);
}
.chapter-section {
  border-top: 1px solid var(--line);
  padding-block: 48px 68px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-heading .eyebrow {
  margin-bottom: 9px;
  color: var(--gold);
}
h2 {
  font-family: Georgia, serif;
  font-size: 33px;
  font-weight: 400;
  letter-spacing: -.025em;
  margin: 0;
}
.count-label {
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 5px;
}
.empty-state {
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 145px;
  padding: 30px;
}
.empty-number {
  font-family: Georgia, serif;
  font-size: 46px;
  color: var(--gold);
  opacity: .5;
}
.empty-state h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 10px;
}
.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 470px;
}
.empty-label {
  margin-left: auto;
  white-space: nowrap;
  font-size: 8px;
  letter-spacing: .14em;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--muted);
}
.search-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-block: 0 24px;
}
.search-row label {
  font-size: 12px;
}
.search-row input {
  width: min(400px, 100%);
  padding: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px;
}
.chapter-card {
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  gap: 22px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  text-decoration: none;
}
.chapter-card:last-child {
  border-bottom: 1px solid var(--line);
}
.chapter-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.chapter-number {
  font-family: Georgia, serif;
  font-size: 28px;
  color: var(--gold);
}
.chapter-card h3 {
  margin: 0 0 7px;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}
.chapter-card p, .chapter-card small {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.chapter-card small {
  display: block;
  margin-top: 8px;
}
.search-status {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}
.projects-section {
  padding-block: 42px 76px;
  border-top: 1px solid var(--line);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
}
.project-card .eyebrow {
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 8px;
}
.project-card h3 {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 12px;
}
.project-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 360px;
}
.project-card .project-link {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.project-card:hover .project-link {
  text-decoration: underline;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-block: 30px;
  font-size: 10px;
  color: var(--muted);
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  text-decoration: none;
}
.footer-name {
  font-family: Georgia, serif;
  font-size: 18px;
  color: var(--ink);
}
.reader {
  max-width: 750px;
  padding-block: 44px 80px;
}
.back-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.reader-heading {
  padding-block: 58px 24px;
}
.reader-heading .eyebrow {
  color: var(--gold);
}
.reader-heading h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.18;
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -.03em;
  margin: 0 0 20px;
}
.reader-meta {
  font-size: 12px;
  color: var(--muted);
}
.reader-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.reader-tools span {
  color: var(--muted);
  font-size: 11px;
  margin-right: 8px;
}
.reader-tools button {
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  min-width: 40px;
  min-height: 36px;
}
.prose {
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--reading-size);
  line-height: 1.85;
  padding-block: 30px;
}
.prose p {
  margin: 0 0 1.4em;
}
.prose hr {
  border: 0;
  text-align: center;
  height: 30px;
  margin: 40px 0;
}
.prose hr::after {
  content: "✦";
  color: var(--gold);
  font-size: 16px;
}
.reader-pagination {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.reader-pagination a {
  font-size: 13px;
  max-width: 48%;
  line-height: 1.6;
}
.reader-pagination .next {
  margin-left: auto;
  text-align: right;
}
.notice {
  padding: 30px 0;
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    grid-template-columns: 1.2fr 1fr;
    gap: 15px;
    min-height: 520px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .book-cover {
    width: 180px;
    height: 264px;
    padding-top: 24px;
  }
  .cover-symbol {
    margin: 32px 0 25px;
    width: 56px;
    height: 56px;
  }
  .cover-symbol::after {
    width: 35px;
    height: 35px;
  }
  .cover-title {
    font-size: 17px;
  }
  .orbit {
    width: 225px;
    height: 225px;
  }
  .orbit-two {
    width: 270px;
    height: 270px;
  }
  .art-caption {
    bottom: 16px;
  }
  .empty-label {
    display: none;
  }
}
@media (max-width: 580px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    height: 84px;
  }
  .brand {
    gap: 8px;
    font-size: 10px;
  }
  .brand-secondary {
    display: block;
    margin-top: 4px;
    font-size: 8px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .site-header nav {
    gap: 17px;
  }
  .site-header nav a {
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 48px 35px;
    gap: 10px;
  }
  .hero h1 {
    font-size: 47px;
  }
  .hero .intro {
    font-size: 14px;
  }
  .book-art {
    min-height: 340px;
    margin-top: 20px;
  }
  .art-caption {
    bottom: 4px;
  }
  .chapter-section {
    padding-block: 34px 46px;
  }
  h2 {
    font-size: 29px;
  }
  .section-heading {
    gap: 12px;
  }
  .count-label {
    font-size: 10px;
    white-space: nowrap;
  }
  .empty-state {
    align-items: flex-start;
    padding: 22px;
    gap: 18px;
  }
  .empty-number {
    font-size: 34px;
  }
  .empty-state h3 {
    font-size: 21px;
  }
  .empty-state p {
    font-size: 12px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .projects-section {
    padding-block: 32px 48px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 16px;
  }
  .site-footer p {
    margin-left: auto;
  }
  .site-footer > a:last-child {
    width: 100%;
  }
  .search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
  .chapter-card {
    grid-template-columns: 32px 1fr 16px;
    gap: 14px;
  }
  .reader-heading {
    padding-top: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .primary-link:hover {
    transform: none;
  }
}
