:root {
  color-scheme: light;
  --ink: #20362e;
  --muted: #62736b;
  --forest: #193d32;
  --moss: #9bab62;
  --paper: #f7f5eb;
  --white: #fffef9;
  --line: #e3e3d8;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: var(--forest);
  color: #fffef9;
  display: flex;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 6vw, 6rem);
}

.brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 700;
  gap: 0.65rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  color: #d3dd9b;
  font-size: 1.45rem;
}

.header-link {
  color: #e0e8cd;
  font-size: 0.86rem;
  text-decoration: none;
}

.header-link span {
  padding-left: 0.3rem;
}

.hero {
  background: var(--forest);
  color: #fffef9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.8fr);
  min-height: 34rem;
  overflow: hidden;
  padding: 5rem clamp(1.25rem, 10vw, 9.5rem) 2rem;
  position: relative;
}

.hero-copy {
  align-self: center;
  max-width: 39rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: #aab985;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.8vw, 6.1rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.99;
  margin: 0;
  max-width: 10ch;
}

.hero-intro {
  color: #d9e0d4;
  font-size: 1.04rem;
  margin: 1.5rem 0 1.8rem;
  max-width: 34rem;
}

.button {
  align-items: center;
  background: #d3dd9b;
  border-radius: 2rem;
  color: var(--forest);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 1rem;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.button:hover {
  background: #e2e9b9;
  transform: translateY(-2px);
}

.hero-art {
  align-self: center;
  height: 24rem;
  justify-self: center;
  max-width: 100%;
  position: relative;
  width: 23rem;
}

.sun {
  background: #e2d79c;
  border-radius: 50%;
  height: 8rem;
  position: absolute;
  right: 2.5rem;
  top: 0.4rem;
  width: 8rem;
}

.stem {
  background: #8caa68;
  border-radius: 50%;
  height: 19rem;
  left: 11rem;
  position: absolute;
  top: 3rem;
  transform: rotate(13deg);
  width: 0.48rem;
}

.leaf {
  background: #91a965;
  border-radius: 100% 0 100% 0;
  height: 7rem;
  position: absolute;
  width: 3.8rem;
}

.leaf-one {
  left: 3.3rem;
  top: 7.3rem;
  transform: rotate(-17deg);
}

.leaf-two {
  right: 1.1rem;
  top: 9.9rem;
  transform: rotate(68deg) scaleX(-1);
}

.leaf-three {
  left: 4.7rem;
  top: 14.2rem;
  transform: rotate(-25deg);
}

.soil {
  background: #9b7652;
  border-radius: 50% 50% 0 0;
  bottom: 1.2rem;
  height: 5rem;
  left: -1rem;
  position: absolute;
  right: -1rem;
}

.hero-note {
  align-self: end;
  border-top: 1px solid #517064;
  color: #b7c5b7;
  display: flex;
  font-size: 0.7rem;
  justify-content: space-between;
  letter-spacing: 0.08em;
  padding-top: 0.85rem;
  text-transform: uppercase;
  grid-column: 1 / -1;
}

.intro-row {
  align-items: end;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
  margin: 0 auto;
  max-width: 76rem;
  padding: 6rem 2rem 3rem;
}

.intro-row .eyebrow {
  color: #7e8d53;
  margin-bottom: 0.55rem;
}

.intro-row h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.7vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 0;
  max-width: 15ch;
}

.intro-row > p {
  color: var(--muted);
  margin: 0 0 0.25rem;
  max-width: 30rem;
}

.book-list {
  margin: 0 auto;
  max-width: 76rem;
  padding: 0 2rem 6rem;
}

.book {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 3.5rem;
}

.book-heading {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 1.5rem;
}

.book-kicker {
  color: #7e8d53;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.book h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
}

.book-byline {
  color: var(--muted);
  font-size: 0.87rem;
  margin: 0.55rem 0 0;
}

.book-count {
  color: #78845c;
  font-size: 0.8rem;
  padding-bottom: 0.25rem;
  white-space: nowrap;
}

.page-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-card {
  background: var(--white);
  border: 1px solid #ebeadd;
  border-radius: 0.7rem;
  overflow: hidden;
}

.page-card h4 {
  color: #758050;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin: 0;
  padding: 1rem 1.15rem 0.25rem;
  text-transform: uppercase;
}

.page-copy {
  padding: 0 1.15rem 1rem;
}

.page-copy p {
  color: #45554d;
  font-size: 0.92rem;
  margin: 0.55rem 0 0;
}

.page-image {
  background: #eeeee4;
  display: block;
  height: auto;
  max-height: 24rem;
  object-fit: cover;
  width: 100%;
}

.page-card.has-image .page-copy {
  padding-bottom: 1.25rem;
}

.loading,
.error {
  color: var(--muted);
  padding: 1.5rem 0;
}

.site-footer {
  background: #eae9dc;
  color: #5d6a60;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(12rem, 0.75fr) minmax(20rem, 1.25fr);
  padding: 3rem clamp(1.25rem, 10vw, 9.5rem);
}

.site-footer p {
  font-size: 0.82rem;
  margin: 0.35rem 0;
}

.site-footer .footer-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.license strong {
  color: var(--ink);
}

.license a {
  color: #315f48;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 4rem;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-art {
    height: 17rem;
    margin-top: 1.5rem;
    transform: scale(0.82);
    transform-origin: top center;
  }

  .hero-note {
    margin-top: -1.5rem;
  }

  .intro-row,
  .site-footer {
    gap: 1.4rem;
    grid-template-columns: 1fr;
  }

  .intro-row {
    padding-top: 4rem;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .header-link {
    font-size: 0.76rem;
  }

  .book-heading {
    align-items: start;
    gap: 0.6rem;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
