@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Young+Serif&display=swap");

:root {
  color-scheme: light;
  --cream: #fbf6ea;
  --paper: #fffdf7;
  --ink: #253c32;
  --muted: #526252;
  --green: #284a3b;
  --rust: #8b492b;
  --line: #ddd4bf;
  --heading: "Young Serif", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
figure, p { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #ad632a; outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.small { font-size: .875rem; }
.skip { position: fixed; left: 12px; top: 12px; transform: translateY(-150%); background: white; z-index: 5; padding: 12px; }
.skip:focus { transform: translateY(0); }

.header {
  min-height: 83px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.wordmark { font: 1.15rem/1.1 var(--heading); text-decoration: none; }
.wordmark span { color: var(--rust); }
.header nav, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.header nav a { font-size: .88rem; font-weight: 700; text-decoration: none; }
.header nav a:hover, .text-link:hover { text-decoration: underline; }
.nav-buy span { margin-inline-start: 4px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .85fr);
  align-items: center;
  gap: clamp(36px, 7vw, 115px);
  padding-block: clamp(58px, 7vw, 104px) clamp(68px, 8vw, 114px);
}
.eyebrow { color: var(--rust); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; font-size: .77rem; }
h1, h2 { font-family: var(--heading); font-weight: 400; margin: 0; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 5.3vw, 4.85rem); letter-spacing: -.045em; margin-block: 16px 22px; }
h2 { font-size: clamp(2rem, 3.65vw, 3.2rem); letter-spacing: -.035em; margin-block: 12px 20px; }
.intro { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 14px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 49px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 17px;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.primary { background: var(--green); color: #fffdf5; }
.primary:hover { background: #1d3a2c; }
.secondary { border-color: #a9ac93; }
.secondary:hover { background: #ede8d7; }
.hero-detail, .chapter-copy .small { color: var(--muted); }
.hero-detail span { margin-inline: 6px; }
.hero-art {
  position: relative;
  justify-self: center;
  isolation: isolate;
  width: min(90%, 333px);
  margin-block: 12px;
}
.hero-art::before {
  position: absolute;
  content: "";
  inset: 5% -15%;
  background: radial-gradient(ellipse at center, #ead5a8 0%, #f5ebd4 65%, transparent 74%);
  z-index: -1;
}
.hero-art img {
  border-radius: 4px 8px 8px 4px;
  box-shadow: -4px 0 0 #463c29, 9px 16px 28px #42332442;
  transform: rotate(2deg);
}
.chapter { background: #eee7d6; padding-block: clamp(46px, 7vw, 82px); }
.chapter-grid { display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: clamp(32px, 8vw, 120px); max-width: 960px; }
.chapter-art img { width: 100%; aspect-ratio: 1.13; object-fit: cover; object-position: 50% 44%; border-radius: 8px; }
.chapter-copy p:not(.eyebrow) { max-width: 52ch; }
blockquote { margin: 22px 0 8px; padding-left: 16px; border-left: 3px solid #ad7049; font: 1.3rem/1.45 var(--heading); }
.text-link { display: inline-block; margin-top: 20px; font-weight: 700; text-decoration: none; }
.text-link span { margin-left: 3px; }
.inside { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 7vw, 95px); align-items: center; padding-block: clamp(52px, 8vw, 104px); }
.inside p:not(.eyebrow) { max-width: 49ch; }
.examples { margin: 25px 0 0; }
.examples div { padding-block: 9px; border-top: 1px solid var(--line); }
.examples dt { font-weight: 700; }
.examples dd { margin: 0; color: var(--muted); }
.index-preview { background: var(--paper); padding: 12px; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 7px 20px #49392114; }
.index-preview img { width: 100%; }
.purchase-box { display: grid; grid-template-columns: 1.35fr .75fr; gap: 36px; align-items: center; background: var(--green); color: #fffdf5; border-radius: 11px; padding: clamp(26px, 5.5vw, 72px); }
.purchase-box h2 { color: white; }
.purchase-box .eyebrow { color: #f5cd9c; }
.purchase-box p:not(.eyebrow) { max-width: 43ch; }
.price-box { border-left: 1px solid #f5ebce5c; padding-left: clamp(20px, 4vw, 52px); }
.price { font: 3.4rem/1.1 var(--heading); margin-bottom: 8px; }
.purchase-action { background: #f6dbaf; color: #24392c; margin-top: 16px; }
.purchase-action:hover { background: #ffe7c0; }
.availability { margin-top: 16px; color: #f8f1de; }
.on-dark { margin-top: 9px; color: #ffe2ae; }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; padding-block: clamp(52px, 7vw, 90px); }
.faq h2 { font-size: clamp(1.85rem, 3.4vw, 2.8rem); }
details { border-bottom: 1px solid var(--line); padding: 15px 0; }
details:first-child { border-top: 1px solid var(--line); }
summary { font-weight: 700; cursor: pointer; }
details p { margin-top: 8px; color: var(--muted); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-block: 28px 35px; border-top: 1px solid var(--line); font-size: .88rem; }
.footer p { margin-top: 7px; color: var(--muted); }
.footer-links { gap: 16px; }
.sample { display: grid; grid-template-columns: minmax(220px, .7fr) 1fr; align-items: center; gap: clamp(25px, 7vw, 90px); max-width: 1000px; padding-block: clamp(45px, 7vw, 90px); }
.sample-art { max-height: 520px; border-radius: 8px; }
.sample h1 { font-size: clamp(2.35rem, 5vw, 4rem); }
.sample .button { margin-block: 22px 8px; }
.signup { padding: 26px 0 50px; }
.signup .button { margin-top: 14px; }
.legal { max-width: 750px; padding-block: 36px 65px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.legal h2 { font-size: 1.5rem; margin-top: 26px; }
.legal p + p { margin-top: 18px; }

@media (max-width: 760px) {
  .wrap { width: min(560px, calc(100% - 36px)); }
  .header { min-height: 70px; gap: 14px; }
  .wordmark { font-size: 1rem; }
  .header nav { gap: 11px; }
  .header nav a { font-size: .77rem; }
  .hero, .chapter-grid, .inside, .purchase-box, .faq, .sample { grid-template-columns: 1fr; }
  .hero { gap: 32px; padding-block: 38px 54px; }
  .hero h1 { margin-top: 12px; }
  .hero-art { width: min(66%, 282px); }
  .chapter-art img { max-height: 280px; }
  .purchase-box { gap: 22px; }
  .price-box { border-left: 0; padding: 17px 0 0; border-top: 1px solid #f5ebce5c; }
  .faq { gap: 10px; }
  .sample-art { width: min(52%, 255px); grid-row: 2; }
}
@media (max-width: 345px) {
  .header { align-items: start; flex-direction: column; justify-content: center; padding-block: 13px; }
  .hero h1 { font-size: 2.35rem; }
}
