:root {
  color-scheme: light;
  --paper: #fbf7f0;
  --sand: #f2e7d7;
  --ink: #3b2f21;
  --muted: #685443;
  --rule: #ded1bf;
  --accent: #6b4e3b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 var(--sans); }
h1, h2, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--ink); background: #e7cfb2; }

.shell { width: min(100% - 48px, 1080px); margin-inline: auto; }
.skip-link { position: absolute; top: -7rem; left: 16px; z-index: 1; padding: 10px 14px; background: var(--paper); }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--rule); }
.nav, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav { min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 20px/1.2 var(--serif); text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links, .footer-inner nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.nav-links a, .footer-inner a { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav-links a:hover, .footer-inner a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1fr minmax(0, .9fr); align-items: center; gap: clamp(52px, 8vw, 96px); padding-block: 64px; }
.hero h1 { font: 400 clamp(3.05rem, 5.2vw, 4.65rem)/1.02 var(--serif); letter-spacing: -.034em; text-wrap: balance; }
.hero-description { max-width: 43ch; margin-top: 22px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 23px; margin-top: 24px; }
.collection-link, .text-link { font-weight: 650; }
.collection-link span, .text-link span { margin-inline-start: .35em; }
.primary-action { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 650; }
.primary-action:hover { background: var(--accent); }
.release-status { margin-top: 12px; color: var(--muted); font-size: .875rem; }

.hero-visual { display: grid; place-items: center; min-width: 0; background: var(--sand); border-radius: 16px; padding: 24px 22px 16px; }
.hero-visual .phone { width: min(100%, 245px); height: auto; border: 1px solid var(--rule); border-radius: 14px; }
figcaption { margin-top: 10px; color: var(--muted); font-size: .8125rem; }
.cover-feature { min-height: 366px; padding-block: 46px; }
.cover-feature > img { width: 180px; height: auto; box-shadow: 0 12px 26px rgba(59, 47, 33, .14); }

.habit { border-top: 1px solid var(--rule); padding-block: 38px 46px; }
.reading-access { margin-top: 14px; color: var(--muted); font-size: .9rem; font-weight: 650; }
.library { border-block: 1px solid var(--rule); padding-block: 50px 37px; }
h2 { font: 400 clamp(2.05rem, 4vw, 3.25rem)/1.1 var(--serif); letter-spacing: -.027em; }
.section-intro { max-width: 66ch; color: var(--muted); margin-top: 10px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 122px; overflow-x: auto; gap: 18px; list-style: none; padding: 0 0 16px; margin: 26px 0 0; scrollbar-color: #ab8d74 var(--sand); scroll-snap-type: x proximity; }
.gallery-item { min-width: 0; scroll-snap-align: start; }
.gallery-item > a { display: block; text-decoration: none; }
.gallery-item > a:hover .book-title { text-decoration: underline; }
.gallery-item img, .typeset-cover { width: 122px; height: 176px; border-radius: 6px; object-fit: cover; }
.typeset-cover { display: grid; place-items: center; background: var(--cover-color); padding: 12px; color: var(--paper); font: 600 .92rem/1.25 var(--serif); text-align: center; }
.book-title { margin-top: 10px; font-weight: 650; font-size: .9rem; line-height: 1.3; }
.book-author { color: var(--muted); font-size: .78rem; margin-top: 4px; }

.reading { display: grid; grid-template-columns: minmax(0, .75fr) 1fr; align-items: center; gap: clamp(32px, 8vw, 90px); padding-block: 55px; }
.reading .hero-visual { padding: 20px 20px 14px; }
.reading .phone { width: min(100%, 215px); }
.journal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; padding-block: 44px 52px; }
.reading + .journal { border-top: 1px solid var(--rule); }
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { min-height: 72px; padding-block: 16px; }
.footer-inner > span { font: 700 18px/1.2 var(--serif); }

@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .nav { min-height: 62px; }
  .nav-links { gap: 10px 14px; }
  .hero, .reading { grid-template-columns: 1fr; gap: 26px; padding-block: 34px; }
  .hero h1 { font-size: clamp(2.65rem, 10.8vw, 3.6rem); }
  .hero-description { margin-top: 16px; }
  .hero-actions { margin-top: 18px; }
  .hero-visual .phone { width: min(100%, 216px); }
  .reading-copy { order: -1; }
  .habit { padding-block: 28px 34px; }
  .gallery { grid-auto-columns: 105px; gap: 13px; }
  .gallery-item img, .typeset-cover { width: 105px; height: 152px; }
  .library { padding-block: 34px 22px; }
  .footer-inner { flex-wrap: wrap; }
}
