@font-face {
  font-family: Golos;
  src: url("./assets/golos.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --milk: #f8f4eb;
  --flour: #eee6d8;
  --walnut: #302116;
  --ink: #2b2019;
  --muted: #6a5647;
  --clay: #873b29;
  --line: #cfc2b2;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Golos, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--milk); font: 1rem/1.55 var(--sans); }
a { color: inherit; text-underline-offset: .22em; touch-action: manipulation; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.03; text-wrap: balance; }
p { margin: 0; }
.shell { width: min(100% - 3.5rem, 78rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .7rem 1rem; background: var(--milk); translate: 0 -200%; }
.skip:focus { translate: 0 0; }
#books, #sweet-pdf { scroll-margin-top: 1.5rem; }

.header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; justify-content: space-between; align-items: center; min-height: 4.65rem; column-gap: 1rem; }
.wordmark { font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.1; text-decoration: none; white-space: nowrap; letter-spacing: -.06em; }
.wordmark span { color: var(--clay); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem clamp(.8rem, 3vw, 2rem); }
nav a { display: inline-flex; min-height: 2.75rem; align-items: center; text-decoration: none; font-size: .9rem; }
nav a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; margin-top: clamp(1rem, 3.3vw, 2.8rem); background: var(--walnut); color: var(--milk); border-radius: 2rem 2rem .35rem .35rem; overflow: hidden; }
.hero-copy { align-self: center; padding: clamp(2.7rem, 7vw, 6.2rem) clamp(1.7rem, 5.5vw, 5rem); }
.handle { color: #ded0be; font-size: .92rem; margin-bottom: 1.9rem; }
.hero h1 { font-size: clamp(3.65rem, 7.35vw, 7.7rem); letter-spacing: -.057em; }
.intro { font-size: clamp(1rem, 1.7vw, 1.2rem); color: #f0e5d5; margin-top: 1.6rem; max-width: 29ch; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.15rem; padding: .7rem 1.2rem; border: 1px solid transparent; font-weight: 660; text-decoration: none; border-radius: .45rem; text-align: center; line-height: 1.3; }
.hero .button { margin-top: 2rem; }
.button-paper { background: var(--milk); color: var(--walnut); }
.button-paper:hover { background: #e2d1bb; }
.button-paper:focus-visible { outline-color: var(--milk); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }

.catalog { padding-block: clamp(2.3rem, 5.8vw, 5rem); }
.section-title { display: flex; align-items: center; gap: 1.8rem; margin-bottom: clamp(1.1rem, 3vw, 2.15rem); }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-title h2 { font-size: clamp(2.3rem, 5.1vw, 4.75rem); letter-spacing: -.046em; }
.feature { display: grid; grid-template-columns: 1.08fr 1fr; background: var(--flour); border-radius: .5rem 1.8rem 1.8rem .5rem; overflow: hidden; }
.feature-picture img { width: 100%; height: 100%; min-height: 21rem; object-fit: cover; }
.feature-copy { align-self: center; padding: clamp(1.6rem, 4.6vw, 4.3rem); }
.product-status { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.product-status.free { color: var(--clay); font-weight: 720; }
.feature h3 { font-size: clamp(2rem, 4.35vw, 4.25rem); margin: .65rem 0 1rem; letter-spacing: -.046em; }
.feature-copy > p:not(.product-status) { max-width: 34ch; }
.button-clay { background: var(--clay); color: #fff9ef; margin-top: 1.5rem; }
.button-clay:hover { background: #6d2d1e; }
.button-clay:focus-visible { outline-color: var(--clay); }
.download-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.download-actions .button { margin-top: 0; }
.button-outline { border-color: var(--clay); color: var(--clay); }
.button-outline:hover { background: var(--milk); }

.product-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2.3vw, 2rem); margin-top: clamp(1.3rem, 3vw, 2.5rem); }
.product { min-width: 0; border: 1px solid var(--line); border-radius: .85rem .85rem .35rem .35rem; overflow: hidden; }
.product img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; background: var(--flour); }
.product-copy { padding: clamp(1rem, 2.8vw, 1.9rem); }
.product h3 { font-size: clamp(1.55rem, 2.9vw, 2.85rem); letter-spacing: -.036em; margin: .65rem 0 .7rem; }
.product-copy > p:not(.product-status) { font-size: 1rem; color: var(--muted); }
.availability { color: var(--muted); margin-top: 1.2rem; font-size: .93rem; }
.footer { border-top: 1px solid var(--line); background: var(--flour); }
.footer-row { min-height: 5.1rem; padding-bottom: env(safe-area-inset-bottom); }

@media (max-width: 53rem) {
  .hero h1 { font-size: clamp(3.4rem, 9vw, 5.5rem); }
  .hero, .feature { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-copy { padding-inline: 1.65rem; }
  .product-copy { padding: .95rem; }
}

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .header-row { min-height: 4rem; }
  .hero, .feature { grid-template-columns: 1fr; }
  .hero { border-radius: 1.45rem 1.45rem .4rem .4rem; }
  .hero-copy { padding: 2.2rem 1.4rem 2rem; }
  .handle { margin-bottom: 1.05rem; }
  .hero h1 { font-size: clamp(3.2rem, 13vw, 5.85rem); }
  .intro { margin-top: 1.1rem; }
  .hero .button { margin-top: 1.3rem; }
  .desktop { display: none; }
  .hero-photo { height: auto; aspect-ratio: 1.17; object-position: center 15%; }
  .section-title { gap: .7rem; }
  .feature { border-radius: 1rem 1rem .5rem .5rem; }
  .feature-picture img { min-height: 0; aspect-ratio: 1.52; height: auto; }
  .feature-copy { padding: 1.3rem; }
  .product-list { grid-template-columns: 1fr; }
  .product { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); }
  .product img { height: 100%; aspect-ratio: auto; }
  .product h3 { margin-block: .45rem .5rem; }
  .availability { max-width: 38ch; }
}

@media (max-width: 24rem) {
  .wordmark { font-size: 1.3rem; }
  nav { gap: .65rem; }
  nav a { font-size: .88rem; }
  .product { grid-template-columns: 1fr; }
  .product img { height: auto; aspect-ratio: 2; }
}
