:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #292b25;
  background: #faf8f3;
  font-synthesis: none;
  --paper: #faf8f3;
  --ink: #292b25;
  --muted: #66685f;
  --line: #dddcd2;
  --green: #33483b;
  --accent: #a44931;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
a:hover {
  color: var(--accent);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  padding: 12px 21px;
  border-radius: 2px;
}
button:hover {
  background: #26362c;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input,
select,
textarea {
  max-width: 100%;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid #aaa99e;
  border-radius: 2px;
  padding: 11px 12px;
}
textarea {
  resize: vertical;
}
input[type='checkbox'] {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
}
label {
  font-size: 13px;
  line-height: 1.5;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #a44931;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3,
.wordmark,
.footer-brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -2.5px;
}
h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.8px;
}
h3 {
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.3px;
}
p {
  line-height: 1.65;
}
main,
.site-header,
.site-footer {
  max-width: 1256px;
  padding-left: 48px;
  padding-right: 48px;
  margin: auto;
}
.site-header {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: 30px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 40px;
  text-decoration: none;
  letter-spacing: -2px;
}
.wordmark-dot {
  color: var(--accent);
}
.site-header nav {
  display: flex;
  gap: 29px;
  font-size: 14px;
}
.site-header nav a {
  text-decoration: none;
}
.site-header nav a[aria-current='page'] {
  text-decoration: underline;
}
.site-owner {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  padding: 76px 0 66px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  margin-bottom: 25px;
}
.hero h1 em {
  font-weight: 400;
  color: var(--green);
}
.hero-description {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 27px;
}
.text-link {
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  white-space: nowrap;
}
.text-link span {
  padding-left: 17px;
}
.hero-book {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-book > a {
  width: 178px;
  flex-shrink: 0;
  text-decoration: none;
  transform: rotate(-4deg);
}
.hero-book > div {
  padding-bottom: 8px;
  max-width: 160px;
}
.hero-book h2 {
  font-size: 25px;
  margin-bottom: 10px;
}
.hero-book h2 a {
  text-decoration: none;
}
.hero-book p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
}
.hero-book .eyebrow {
  margin-bottom: 12px;
}
.cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  position: relative;
  background: #dedbcc;
  border-left: 4px solid #00000012;
  box-shadow: 3px 5px 8px #292b250b;
}
.cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper);
}
.type-cover {
  height: 100%;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  color: inherit;
}
.type-cover:before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid currentColor;
  opacity: 0.15;
  pointer-events: none;
}
.type-cover > span {
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 18px;
}
.type-cover > strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(17px, 1.9vw, 25px);
  line-height: 1.17;
  overflow-wrap: anywhere;
}
.type-cover > i {
  font-family: Georgia, serif;
  font-size: 35px;
  line-height: 1;
  margin-top: auto;
  padding-top: 10px;
}
.type-cover > small {
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 9px;
}
.tone-0 {
  background: #345047;
  color: #f7f0d9;
}
.tone-1 {
  background: #d8bda5;
  color: #442f24;
}
.tone-2 {
  background: #e4d5a9;
  color: #423b28;
}
.tone-3 {
  background: #963e31;
  color: #fff0d7;
}
.tone-4 {
  background: #455261;
  color: #f4ead8;
}
.home-search {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.home-search > label {
  font-family: Georgia, serif;
  font-size: 21px;
}
.home-search > div {
  display: flex;
  gap: 9px;
  flex: 0 1 440px;
}
.home-search input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #aaa99e;
}
.home-search button {
  white-space: nowrap;
}
.shelf {
  padding: 51px 0 49px;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px;
}
.cover-link {
  text-decoration: none;
  display: block;
  margin-bottom: 20px;
}
.book-card h3 {
  margin-bottom: 8px;
}
.book-card h3 a {
  text-decoration: none;
}
.book-card .eyebrow {
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: 1px;
}
.author {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.rating {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
}
.rating span {
  color: #7d786d;
}
.editorial-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.editorial-card {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 19px;
}
.editorial-card .type-cover {
  padding: 14px 10px;
}
.editorial-card .type-cover > strong {
  font-size: 13px;
}
.editorial-card .type-cover > span {
  font-size: 8px;
  margin-bottom: 10px;
}
.editorial-card .type-cover > small,
.editorial-card .type-cover > i {
  display: none;
}
.card-comment {
  font-family: Georgia, serif;
  font-size: 16px;
  white-space: pre-wrap;
  margin: 14px 0;
}
.quiet-note {
  max-width: 560px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.7;
}
.archive-note {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  padding: 45px 0 25px;
}
.archive-note h2 {
  font-size: 27px;
}
.archive-note p {
  font-size: 14px;
  color: var(--muted);
  max-width: 540px;
}
.small-stats {
  display: flex;
  gap: 35px;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0 46px;
}
.small-stats strong {
  font-weight: 500;
  color: var(--ink);
  margin-right: 5px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  padding-bottom: 35px;
  color: var(--muted);
  font-size: 11px;
  gap: 25px;
}
.footer-brand {
  font-size: 26px;
  text-decoration: none;
  color: var(--ink);
}
.site-footer p {
  margin: 9px 0 0;
}
.site-footer > span {
  white-space: nowrap;
}
.page-section {
  padding: 60px 0 80px;
  min-height: 65vh;
}
.page-section h1 {
  font-size: 58px;
  margin-bottom: 20px;
}
.page-intro {
  color: var(--muted);
  font-size: 17px;
  max-width: 660px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 18px 15px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 32px 0 22px;
}
.filters label:not(.check) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 150px;
}
.filters label.search-field {
  flex: 1 1 300px;
}
.filters .check {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
}
.filters > a {
  font-size: 12px;
  padding-bottom: 12px;
}
.result-count {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 25px;
}
.empty {
  padding: 36px 0;
  font-family: Georgia, serif;
  font-size: 20px;
}
.muted {
  color: var(--muted);
}
.empty .muted {
  font-family: Arial, sans-serif;
  font-size: 14px;
}
.book-page {
  padding: 38px 0 80px;
}
.back-link {
  font-size: 12px;
  text-decoration: none;
}
.book-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  padding: 40px 0 0;
}
.book-detail h1 {
  font-size: 54px;
  margin: 0 0 18px;
}
.book-detail .eyebrow {
  margin-bottom: 16px;
}
.detail-author {
  font-family: Georgia, serif;
  font-size: 24px;
  margin-bottom: 19px;
}
.subtitle {
  font-size: 20px;
  color: var(--muted);
}
.bibliography {
  font-size: 12px;
  color: var(--muted);
}
.cover-large .type-cover {
  padding: 38px 28px;
}
.cover-large .type-cover > strong {
  font-size: 38px;
}
.cover-large .type-cover > span {
  font-size: 14px;
  margin-bottom: 35px;
}
.cover-large .type-cover > small {
  font-size: 9px;
}
.synopsis {
  font-size: 14px;
  line-height: 1.7;
  margin: 25px 0;
}
.synopsis summary {
  cursor: pointer;
}
.synopsis p {
  white-space: pre-wrap;
  margin-top: 18px;
}
.reading-memory {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 26px;
}
.reading-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  margin-bottom: 16px;
}
.reading-tags span {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 5px 9px;
}
.reading-memory > .muted {
  font-size: 13px;
}
.reading-memory blockquote {
  font-family: Georgia, serif;
  font-size: 27px;
  line-height: 1.5;
  border-left: 2px solid var(--accent);
  margin: 28px 0;
  padding-left: 25px;
  white-space: pre-wrap;
}
.memory-section {
  margin-top: 32px;
}
.memory-section h2 {
  font-size: 25px;
  margin-bottom: 14px;
}
.memory-section p {
  white-space: pre-wrap;
  font-size: 16px;
}
.collection-list {
  list-style: none;
  padding: 0;
}
.collection-list li {
  border-top: 1px solid var(--line);
  padding: 25px 0;
}
.collection-list h2 {
  margin-bottom: 10px;
}
.dev-banner {
  font-size: 11px;
  background: #eae5d8;
  text-align: center;
  padding: 9px 15px;
  color: #514b3c;
}
.skip-link {
  position: fixed;
  left: 10px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
@media (min-width: 1400px) {
  .hero {
    padding-top: 90px;
    padding-bottom: 80px;
  }
}
@media (max-width: 1000px) {
  main,
  .site-header,
  .site-footer {
    padding-left: 30px;
    padding-right: 30px;
  }
  .site-header {
    gap: 35px;
  }
  .hero {
    gap: 25px;
  }
  .hero-book {
    gap: 20px;
  }
  .hero-book > a {
    width: 145px;
  }
  .hero-book h2 {
    font-size: 22px;
  }
  .book-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
  }
  .editorial-list {
    grid-template-columns: 1fr 1fr;
  }
  .book-detail {
    grid-template-columns: 230px 1fr;
    gap: 40px;
  }
  .book-detail h1 {
    font-size: 44px;
  }
}
@media (max-width: 700px) {
  main,
  .site-header,
  .site-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .site-header {
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 18px;
    flex-wrap: wrap;
  }
  .wordmark {
    font-size: 34px;
  }
  .site-header nav {
    gap: 17px;
    font-size: 12px;
    margin-left: auto;
  }
  .site-owner {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 43px 0 35px;
    gap: 36px;
  }
  .hero h1 {
    font-size: 57px;
    letter-spacing: -2px;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-book {
    justify-content: flex-start;
    gap: 27px;
    padding-left: 10px;
  }
  .hero-book > a {
    width: 112px;
  }
  .hero-book > div {
    max-width: 220px;
  }
  .hero-book .type-cover > strong {
    font-size: 19px;
  }
  .hero-book .type-cover > span {
    font-size: 9px;
  }
  .hero-book .type-cover {
    padding: 18px 12px;
  }
  .hero-book .type-cover > small {
    font-size: 6px;
  }
  .home-search {
    display: block;
  }
  .home-search > label {
    font-size: 18px;
  }
  .home-search > div {
    margin-top: 15px;
  }
  .home-search input {
    min-width: 0;
    font-size: 14px;
  }
  .home-search button {
    font-size: 13px;
    padding: 10px 14px;
  }
  .shelf {
    padding: 34px 0;
  }
  .section-heading {
    align-items: start;
    gap: 15px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .section-heading > a {
    font-size: 11px;
    white-space: normal;
    align-self: end;
    text-align: right;
  }
  .section-heading > a span {
    padding-left: 5px;
  }
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }
  .book-grid > .book-card:nth-child(5):last-child {
    display: block;
  }
  .type-cover > strong {
    font-size: 23px;
  }
  .type-cover > span {
    font-size: 10px;
  }
  .book-card h3 {
    font-size: 21px;
  }
  .editorial-list {
    grid-template-columns: 1fr;
  }
  .editorial-card {
    grid-template-columns: 95px 1fr;
  }
  .archive-note {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 35px;
  }
  .archive-note h2 {
    font-size: 25px;
  }
  .small-stats {
    gap: 23px;
    flex-wrap: wrap;
    padding-bottom: 32px;
  }
  .site-footer {
    display: block;
  }
  .site-footer > span {
    display: block;
    margin-top: 20px;
  }
  .page-section {
    padding: 38px 0 55px;
  }
  .page-section h1 {
    font-size: 46px;
  }
  .filters label:not(.check) {
    min-width: 0;
    flex-basis: calc(50% - 15px);
  }
  .filters label.search-field {
    flex-basis: 100%;
  }
  .filters input,
  .filters select {
    width: 100%;
    font-size: 14px;
  }
  .filters input[type='checkbox'] {
    width: 18px;
  }
  .book-detail {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 28px;
  }
  .book-art {
    max-width: 190px;
    margin: auto;
    width: 100%;
  }
  .cover-large .type-cover {
    padding: 24px 20px;
  }
  .cover-large .type-cover > strong {
    font-size: 26px;
  }
  .cover-large .type-cover > span {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .cover-large .type-cover > small {
    font-size: 7px;
  }
  .book-detail h1 {
    font-size: 42px;
  }
  .book-detail .detail-author {
    font-size: 21px;
  }
  .reading-memory blockquote {
    font-size: 23px;
    padding-left: 18px;
  }
  .dev-banner {
    font-size: 10px;
  }
  .quiet-note {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin-top: 30px;
}
.login-form button {
  align-self: start;
}
.login-form [role='alert'] {
  color: #8a281d;
}
