:root {
  --paper: #f7f6f0;
  --ink: #183a35;
  --muted: #67746c;
  --line: #dddfd3;
  --green: #204e43;
  --accent: #d8e89b;
  --white: #fffef9;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b16c34;
  outline-offset: 5px;
}
main {
  flex: 1;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
.cover-title,
.hero-book strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin-bottom: 24px;
}
h2 {
  font-size: 2.3rem;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}
p {
  line-height: 1.7;
}
.page-width {
  max-width: 1280px;
  margin: auto;
  padding-left: 48px;
  padding-right: 48px;
}
.site-header {
  height: 106px;
  display: flex;
  align-items: center;
  gap: 70px;
  border-bottom: 1px solid var(--line);
  padding: 0 48px;
  max-width: 1440px;
  width: 100%;
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 29px;
  letter-spacing: -1.5px;
  gap: 10px;
}
.brand-mark {
  background: var(--green);
  color: var(--paper);
  font: italic 33px Georgia;
  padding: 2px 12px 7px;
  border-radius: 9px;
}
.brand-dot {
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0;
  margin-top: 6px;
  margin-left: -5px;
}
nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
nav a {
  padding: 12px 0;
  color: var(--muted);
}
nav a[aria-current] {
  color: var(--ink);
  box-shadow: 0 2px var(--green);
}
.header-note {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 65px;
  align-items: center;
  padding-top: 65px;
  padding-bottom: 65px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 25px;
}
.hero-description {
  font-size: 16px;
  color: var(--muted);
  max-width: 365px;
  margin-bottom: 30px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 16px 23px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  min-height: 48px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary {
  background: var(--green);
  color: #fffef6;
}
.primary:hover {
  background: #123b30;
  transform: translateY(-1px);
}
.secondary {
  background: transparent;
  border-color: #b9c3b4;
  color: var(--ink);
}
.secondary:hover {
  background: #e9edde;
}
.hero-footnote {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 17px;
}
.hero-art {
  height: 450px;
  background: #e8ebdf;
  border-radius: 48% 48% 8px 8px;
  position: relative;
  overflow: hidden;
}
.orbit {
  border: 1px solid #c4cebb;
  width: 550px;
  height: 240px;
  border-radius: 50%;
  position: absolute;
  top: 150px;
  left: -30px;
  transform: rotate(-30deg);
}
.orbit-two {
  transform: rotate(40deg);
  top: 100px;
}
.art-caption {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 1.5px;
  line-height: 1.6;
}
.art-number {
  position: absolute;
  bottom: 20px;
  right: 25px;
  font-size: 9px;
  letter-spacing: 2px;
}
.hero-book {
  position: absolute;
  width: 190px;
  height: 275px;
  box-shadow: 8px 16px 20px #17372a30;
  border-left: 9px solid #0002;
}
.book-back {
  background: #d9a06e;
  color: #343f31;
  left: 65px;
  top: 100px;
  transform: rotate(-16deg);
  padding: 30px 20px;
  font: 32px Georgia;
  line-height: 1.1;
}
.book-front {
  background: #285546;
  color: #f4f1d8;
  left: 200px;
  top: 120px;
  transform: rotate(12deg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-book small {
  font: 6px Arial;
  letter-spacing: 1.5px;
  z-index: 1;
}
.hero-book strong {
  font-size: 36px;
  line-height: 1.05;
  z-index: 1;
}
.sun {
  width: 125px;
  height: 125px;
  background: #cfdc9a;
  border-radius: 50% 50% 0 0;
  align-self: center;
  position: absolute;
  bottom: 35px;
  background: repeating-linear-gradient(0deg, #d9dfa6 0 3px, #285546 3px 5px);
}
.collection-section {
  border-top: 1px solid var(--line);
  padding-top: 36px;
  padding-bottom: 65px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}
.section-heading .eyebrow {
  margin-bottom: 12px;
}
.text-link {
  font-size: 13px;
  border-bottom: 1px solid #acb6a4;
  padding-bottom: 5px;
}
.text-link:hover {
  color: #8a4d28;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 27px;
}
.book-card {
  min-width: 0;
  display: block;
}
.book-cover {
  aspect-ratio: 0.76;
  background: #d8a777;
  color: #283e32;
  position: relative;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  border-left: 7px solid #0002;
  box-shadow: 3px 4px 0 #0000000a;
  overflow: hidden;
  transition: transform 0.2s;
}
.book-card:hover .book-cover {
  transform: translateY(-5px) rotate(-1deg);
}
.cover-label {
  font-size: 7px;
  letter-spacing: 1.6px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 12px;
  opacity: 0.8;
}
.cover-title {
  font-size: clamp(22px, 2.5vw, 33px);
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-top: 20px;
  z-index: 1;
  overflow-wrap: anywhere;
  max-height: 57%;
  overflow: hidden;
}
.cover-art {
  position: absolute;
  width: 80%;
  height: 40%;
  border: 1px solid currentColor;
  border-radius: 50%;
  bottom: 28px;
  left: 30%;
  box-shadow:
    -20px 15px 0 -1px #ffffff25,
    -40px 30px 0 -1px #ffffff20;
  transform: rotate(-30deg);
}
.cover-bottom {
  font-size: 6px;
  letter-spacing: 1.5px;
  margin-top: auto;
  z-index: 1;
}
.cover-0 {
  background: #d0d9b9;
  color: #283e32;
}
.cover-1 {
  background: #e3b28b;
  color: #4a382b;
}
.cover-2 {
  background: #325a4f;
  color: #f4e9ca;
}
.cover-3 {
  background: #c8cbdc;
  color: #303c54;
}
.cover-4 {
  background: #a64938;
  color: #fff0d6;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
}
.card-meta h3 {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.isbn {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 0;
}
.library-page {
  padding-top: 58px;
  padding-bottom: 70px;
}
.library-heading h1 {
  font-size: 4.2rem;
  margin: 0 0 12px;
}
.heading-dot {
  color: #809c4d;
}
.muted {
  color: var(--muted);
}
.library-heading p:last-child {
  margin-bottom: 0;
  font-size: 14px;
}
.library-toolbar {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 460px;
}
.search-box > span {
  font-size: 26px;
}
.search-box input {
  background: transparent;
  border: 0;
  padding: 10px 2px;
  min-width: 0;
  width: 100%;
  font-size: 13px;
  color: var(--ink);
}
.sort-box {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
select {
  padding: 10px 24px 10px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  max-width: 100%;
}
.results-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}
.results-line p {
  font-size: 12px;
  margin: 0;
}
.results-line > span {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: var(--muted);
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 65px 20px;
}
.empty-state h2 {
  margin-bottom: 14px;
}
.empty-state p {
  color: var(--muted);
}
.empty-symbol {
  font-size: 45px;
  display: block;
  margin-bottom: 20px;
}
.notice {
  padding: 12px 18px;
  background: #e4edce;
  border-radius: 4px;
  font-size: 13px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  max-width: 510px;
  width: calc(100% - 32px);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 25px 100px #16392c40;
}
dialog::backdrop {
  background: #172f286e;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 2.5rem;
  margin: 6px 0 16px;
}
dialog p.muted {
  font-size: 13px;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-heading .eyebrow {
  margin: 0;
  font-size: 8px;
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 27px;
  padding: 0 8px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 22px;
}
.field input {
  border: 1px solid #cdd3c4;
  border-radius: 5px;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field-help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}
.error-message {
  background: #f9e5df;
  color: #8a3026;
  font-size: 12px;
  padding: 12px;
  margin: 18px 0 0;
  border-radius: 4px;
}
.details-page {
  padding-top: 42px;
  padding-bottom: 70px;
}
.details-layout {
  display: grid;
  grid-template-columns: minmax(200px, 340px) 1fr;
  gap: 85px;
  align-items: center;
  margin: 48px 0;
}
.detail-cover .cover-title {
  font-size: 45px;
}
.details-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  overflow-wrap: anywhere;
}
.details-copy .eyebrow {
  color: var(--muted);
}
.intro {
  font: 24px Georgia;
  line-height: 1.5;
  color: var(--muted);
}
dl {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 30px 0;
}
dt {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 10px;
}
dd {
  margin: 0 0 22px;
  font-size: 15px;
}
.about-page {
  padding-top: 70px;
  padding-bottom: 100px;
}
.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 40px;
}
.about-columns h2 {
  font-size: 28px;
  margin-bottom: 18px;
}
.about-columns p {
  font-size: 14px;
  line-height: 1.9;
}
.about-columns .button {
  margin-top: 15px;
}
footer {
  max-width: 1440px;
  width: 100%;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 10px;
}
footer > span:last-child {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 1.5px;
}
.footer-brand {
  color: var(--ink);
  font-size: 24px;
}
.skip-link {
  position: absolute;
  top: -70px;
  left: 20px;
  padding: 14px;
  background: var(--green);
  color: white;
  z-index: 5;
}
.skip-link:focus {
  top: 10px;
}
@media (min-width: 1440px) {
  .hero-art {
    height: 480px;
  }
  .hero-book {
    width: 210px;
    height: 305px;
  }
  .book-front {
    left: 225px;
  }
  .hero-book strong {
    font-size: 40px;
  }
}
@media (max-width: 1000px) {
  .site-header {
    gap: 35px;
  }
  .header-note {
    display: none;
  }
  .hero {
    gap: 30px;
  }
  .hero-art {
    height: 380px;
  }
  .hero-book {
    width: 155px;
    height: 235px;
  }
  .book-back {
    left: 28px;
    top: 90px;
    font-size: 27px;
  }
  .book-front {
    left: 145px;
    top: 110px;
    padding: 18px;
  }
  .hero-book strong {
    font-size: 30px;
  }
  .sun {
    width: 105px;
    height: 105px;
  }
  .book-grid {
    gap: 28px 18px;
  }
  .book-cover {
    padding: 16px 12px;
  }
  .cover-label {
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .cover-bottom {
    font-size: 5px;
  }
  .details-layout {
    gap: 40px;
  }
}
@media (max-width: 700px) {
  .page-width {
    padding-left: 22px;
    padding-right: 22px;
  }
  .site-header {
    height: 82px;
    padding: 0 22px;
    gap: 20px;
    justify-content: space-between;
  }
  .brand {
    font-size: 24px;
    gap: 7px;
  }
  .brand-mark {
    font-size: 26px;
    padding: 1px 9px 5px;
  }
  nav {
    gap: 18px;
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
    padding-bottom: 38px;
    gap: 35px;
  }
  .hero h1 {
    font-size: 4rem;
  }
  .hero-description {
    max-width: 100%;
    font-size: 15px;
  }
  .hero-art {
    height: 330px;
    max-width: 480px;
    width: 100%;
    margin: auto;
  }
  .book-back {
    left: calc(50% - 140px);
    top: 60px;
  }
  .book-front {
    left: calc(50% - 10px);
    top: 80px;
  }
  .art-caption {
    top: 24px;
    left: 28px;
    font-size: 7px;
  }
  .collection-section {
    padding-top: 30px;
    padding-bottom: 40px;
  }
  .section-heading {
    gap: 15px;
    align-items: start;
  }
  .section-heading h2 {
    font-size: 26px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .text-link {
    font-size: 11px;
    white-space: nowrap;
  }
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
  .book-cover {
    padding: 18px 14px;
  }
  .cover-title {
    font-size: 23px;
  }
  .card-meta h3 {
    font-size: 13px;
  }
  .isbn {
    font-size: 9px;
  }
  .library-page {
    padding-top: 35px;
    padding-bottom: 45px;
  }
  .library-heading {
    flex-wrap: wrap;
  }
  .library-heading h1 {
    font-size: 3.4rem;
  }
  .library-heading .button {
    padding: 13px 17px;
  }
  .library-toolbar {
    flex-direction: column;
    gap: 5px;
  }
  .search-box {
    max-width: none;
  }
  .sort-box {
    justify-content: space-between;
  }
  .results-line > span {
    display: none;
  }
  .details-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 30px;
  }
  .detail-cover {
    max-width: 300px;
    width: 100%;
    margin: auto;
  }
  .details-copy h1 {
    font-size: 3rem;
  }
  .about-page {
    padding-top: 40px;
    padding-bottom: 50px;
  }
  .about-columns {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .about-page h1 {
    font-size: 3.6rem;
  }
  footer {
    padding: 23px 22px;
    gap: 16px;
    flex-wrap: wrap;
  }
  footer > span:last-child {
    display: none;
  }
  footer > span {
    font-size: 9px;
  }
  dialog {
    padding: 24px;
  }
  .dialog-actions .button {
    gap: 10px;
    padding: 13px 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
