:root {
  color-scheme: light;
  --ink: #19382d;
  --text: #42534a;
  --deep: #142e27;
  --cream: #f8f5ed;
  --white: #fdfbf5;
  --line: #d7d7c8;
  --amber: #efc48b;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.66 var(--sans);
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #b66431; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font: 600 2rem/1.06 var(--serif); letter-spacing: -.04em; text-wrap: balance; }
p { margin: 0; color: var(--text); }
.wrap { width: min(1140px, calc(100% - 80px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  padding: 10px 14px;
  color: var(--deep);
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.bar { min-height: 74px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font: 650 1.5rem/1 var(--serif); letter-spacing: -.055em; text-decoration: none; }
.mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--deep); color: var(--amber); font-size: 1.15rem; }
.nav-link, .text-link {
  font-size: .875rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.nav-link:hover, .text-link:hover { color: #8b4928; }
.kicker { font-size: .78rem; font-weight: 800; letter-spacing: .085em; text-transform: uppercase; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 5px;
  background: var(--deep);
  color: var(--cream);
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease;
}
.button:hover { background: #2a5546; }

.hero {
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(ellipse at 85% 30%, #315436 0%, transparent 53%), var(--deep);
}
.hero-grid { min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); padding-block: 58px; }
.hero .kicker { color: var(--amber); }
.hero h1 { max-width: 10ch; margin-block: 13px 22px; font-size: clamp(3.6rem, 6.4vw, 6.1rem); }
.hero h1 em { color: #f2cf9e; font-weight: 500; }
.hero-lead { max-width: 42ch; color: #eef3eabf; font-size: clamp(1rem, 1.45vw, 1.13rem); }
.hero .button { margin-top: 29px; background: var(--amber); color: #222d21; }
.hero .button:hover { background: #f6dcb5; }
.hero-stack { position: relative; isolation: isolate; place-self: stretch; min-height: 370px; }
.hero-stack::before, .hero-stack::after {
  position: absolute;
  z-index: -1;
  inset: 7% 8% 3%;
  content: "";
  border: 1px solid #e3c5994a;
  border-radius: 48% 48% 0 0 / 55% 55% 0 0;
}
.hero-stack::after { inset: 12% 12% 8%; opacity: .65; }
.hero-stack img {
  position: absolute;
  width: 40%;
  bottom: 14%;
  border-radius: 2px;
  box-shadow: 8px 15px 28px #07131085;
}
.hero-stack img:first-child { left: 4%; transform: rotate(-13deg); }
.hero-stack img:nth-child(2) { right: 4%; transform: rotate(12deg); }
.hero-stack img:last-child { z-index: 1; width: 48%; bottom: 7%; left: 50%; transform: translateX(-50%) rotate(-2deg); }

.collection { padding-block: 72px 85px; }
.section-heading { display: grid; gap: 12px; margin-bottom: 31px; }
.section-heading h2, .reading-grid h2 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); }
.section-heading p { max-width: 62ch; }
.catalog-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 38px; }
.catalog-group { scroll-margin-top: 25px; }
.catalog-group + .catalog-group { margin-top: 64px; }
.catalog-group .section-heading h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.book { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--white); }
.mat-sea { --mat: #dce9e3; }
.mat-road { --mat: #eadcc2; }
.mat-table { --mat: #ead8cd; }
.book-image, .product-cover { display: grid; place-items: center; background: var(--mat); }
.book-image { padding: 30px; }
.book-image img, .product-cover img { box-shadow: 7px 12px 23px #32372c42; }
.book-image img { width: min(100%, 176px); transition: transform .22s ease; }
.book-image:hover img { transform: translateY(-4px) rotate(-1deg); }
.book-text { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 21px 19px 22px; }
.book-text .kicker { color: #5d6249; letter-spacing: .05em; }
.book-text h3 { font-size: clamp(1.47rem, 2.7vw, 2.13rem); text-wrap: unset; }
.book-text h3 a { text-decoration: none; }
.book-text h3 a:hover { text-decoration: underline; }
.book-text p:not(.kicker) { font-size: .92rem; }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: auto; padding-top: 8px; }
.book-actions .button { min-height: 41px; padding-inline: 12px; }
.reading-guide, .faq-section { border-block: 1px solid var(--line); background: #edece1; }
.reading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; padding-block: 50px; }
.reading-grid h2 { text-wrap: unset; }
.reading-grid p { max-width: 50ch; }

.product-hero { padding-block: 27px 65px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 9px; margin-bottom: 26px; font-size: .83rem; color: var(--text); }
.breadcrumb a { text-underline-offset: 3px; }
.product-grid { display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: clamp(35px, 7vw, 97px); }
.product-cover { min-height: 466px; padding: 30px; }
.product-cover img { width: min(100%, 244px); }
.product-text .kicker { color: #5b654c; }
.product-text h1 { margin-block: 12px 16px; font-size: clamp(3rem, 5.7vw, 5.2rem); text-wrap: unset; }
.product-lead { max-width: 49ch; }
.format { margin-top: 18px; color: #536043; font-size: .86rem; font-weight: 800; }
.included { display: grid; gap: 3px; margin-block: 20px; padding-inline-start: 1.24em; color: var(--text); font-size: .92rem; }
.included li::marker { color: #8b5630; }
.offer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 13px; }
.payment-note { padding: 13px 16px; border-inline-start: 3px solid #ae784f; background: #f0ebe0; font-size: .86rem; }
.study-content { display: grid; grid-template-columns: .72fr 1.5fr; gap: clamp(26px, 6vw, 77px); align-items: start; padding-block: 68px; }
.contents { padding-top: 12px; }
.contents h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.contents ol { margin-block: 18px 0; padding-inline-start: 25px; color: var(--text); }
.contents li { margin-block: 8px; padding-inline-start: 4px; }
.contents li::marker { color: #80532b; font-weight: 700; font-variant-numeric: tabular-nums; }
.bundle-heading { margin-top: 26px; font-size: 1.3rem; }
.contents ul { padding-inline-start: 20px; }
.sample { padding: clamp(20px, 4.5vw, 50px); scroll-margin-top: 18px; border: 1px solid var(--line); background: var(--white); }
.sample .kicker { color: #5d6249; }
.sample h2 { margin-block: 10px 16px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); text-wrap: unset; }
.sample > p:not(.kicker) { margin-top: 13px; font: 400 1.08rem/1.71 Georgia, serif; }
.faq-section .reading-grid { align-items: start; }
.faq { border-top: 1px solid #c8cabb; }
.faq details { padding-block: 12px; border-bottom: 1px solid #c8cabb; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin: 6px 0 4px 17px; }

.legal-page { max-width: 760px; padding-block: clamp(38px, 7vw, 86px); overflow-wrap: anywhere; }
.legal-page h1 { font-size: clamp(2.5rem, 7vw, 4.55rem); }
.legal-page h2 { font-size: clamp(1.45rem, 4vw, 2rem); line-height: 1.15; text-wrap: pretty; }
.legal-page h3 { margin-top: 23px; font-size: 1.2rem; line-height: 1.3; }
.legal-page section { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 26px; }
.legal-page p, .legal-page ul, .legal-page address { margin-block: 14px 0; }
.legal-page ul { padding-inline-start: 1.35em; color: var(--text); }
.legal-page li + li { margin-top: 6px; }
.legal-page address { font-style: normal; color: var(--text); }
.legal-page a { text-underline-offset: 3px; }
.site-footer {
  background: var(--deep);
  color: #fcfaf3;
  padding-top: clamp(48px, 6.3vw, 88px);
}
.site-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 78px);
  padding-bottom: clamp(42px, 5vw, 72px);
}
.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 20px 24px;
  margin-bottom: 30px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--deep);
  font: 600 1.65rem/1 var(--serif);
  letter-spacing: -.055em;
  text-decoration: none;
}
.site-footer .footer-mark {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: var(--amber);
  font-size: 1.55rem;
}
.site-footer .footer-headline {
  font: 500 clamp(2rem, 3.1vw, 2.8rem)/1.1 var(--serif);
  letter-spacing: -.04em;
  margin: 0 0 24px;
  text-wrap: initial;
}
.site-footer .footer-description {
  max-width: 39ch;
  color: #c5d7cb;
  font-size: .95rem;
  line-height: 1.8;
}
.site-footer .footer-email {
  display: inline-block;
  margin-top: 24px;
  padding-block: 7px;
  color: #fcfaf3;
  font-size: .98rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.site-footer .footer-nav h2 {
  margin: 7px 0 24px;
  color: #bfd2c5;
  font: 700 .75rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.site-footer .footer-nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-nav li + li { margin-top: 10px; }
.site-footer .footer-nav a {
  display: block;
  width: fit-content;
  padding-block: 9px;
  color: #fcfaf3;
  font-size: .95rem;
  line-height: 1.65;
  text-decoration: none;
}
.site-footer .footer-order-note {
  max-width: 29ch;
  margin-top: 23px;
  color: #c5d7cb;
  font-size: .85rem;
  line-height: 1.9;
}
.site-footer .footer-details,
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding-block: 24px;
  border-top: 1px solid #456157;
}
.site-footer .footer-format {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #c5d7cb;
  font-size: .78rem;
}
.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  max-width: 66%;
}
.site-footer .footer-legal a {
  color: #fcfaf3;
  font-size: .78rem;
  line-height: 1.8;
  text-decoration: none;
  padding-block: 4px;
}
.site-footer .footer-bottom { padding-block: 22px 27px; }
.site-footer .footer-bottom p { color: #c5d7cb; font-size: .76rem; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer a:focus-visible { outline: 3px solid var(--amber); outline-offset: 5px; border-radius: 3px; }
.site-footer a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 900px) {
  .site-footer .footer-main { grid-template-columns: 1fr 1fr; gap: 34px 48px; }
  .site-footer .footer-intro { grid-column: 1 / -1; }
  .site-footer .footer-description { max-width: 58ch; }
  .site-footer .footer-details { align-items: flex-start; flex-direction: column; }
  .site-footer .footer-legal { max-width: none; justify-content: flex-start; }
}

@media (max-width: 480px) {
  .site-footer .footer-main { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .site-footer .footer-brand { padding: 18px 21px; font-size: 1.55rem; margin-bottom: 27px; }
  .site-footer .footer-headline { font-size: 2.35rem; }
  .site-footer .footer-nav h2 { margin: 0 0 14px; }
  .site-footer .footer-nav li + li { margin-top: 4px; }
  .site-footer .footer-order-note { margin-top: 15px; max-width: 37ch; }
  .site-footer .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
  .site-footer .footer-format { column-gap: 9px; font-size: .72rem; }
  .site-footer .footer-legal { gap: 6px 18px; }
}

@media (max-width: 940px) {
  .wrap { width: calc(100% - 56px); }
  .hero-grid { min-height: 0; gap: 22px; padding-block: 47px; }
  .hero-stack { min-height: 320px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .book-image { padding: 20px; }
  .book-text { padding-inline: 14px; }
  .product-cover { min-height: 0; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 38px); }
  .site-header .bar { min-height: 63px; }
  .brand { font-size: 1.27rem; }
  .mark { width: 28px; height: 28px; font-size: 1rem; }
  .hero-grid, .product-grid, .study-content, .reading-grid, .shelf { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-block: 43px 33px; }
  .hero h1 { max-width: 11ch; font-size: clamp(3.25rem, 11vw, 4.65rem); }
  .hero-stack { width: min(100%, 460px); min-height: 0; margin-inline: auto; aspect-ratio: 1.35; }
  .hero-stack img { bottom: 10%; }
  .hero-stack img:last-child { width: 44%; bottom: 3%; }
  .collection { padding-block: 53px; }
  .shelf { gap: 20px; }
  .book-image { padding-block: 24px; }
  .book-text { padding-inline: 17px; }
  .reading-grid, .study-content { gap: 24px; padding-block: 43px; }
  .product-hero { padding-block: 20px 46px; }
  .breadcrumb { margin-bottom: 18px; }
  .product-grid { gap: 25px; }
  .product-cover img { width: min(66%, 210px); }
  .product-text h1 { font-size: clamp(2.8rem, 11vw, 4.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .book-image img { transition: none; }
}
