:root {
  color-scheme: light;
  --pine: #12372f;
  --deep: #102b24;
  --paper: #fcf7ed;
  --ink: #1d2d26;
  --muted: #4d5950;
  --ochre: #e8b979;
  --line: #cfc1a6;
  --serif: 'Baskervville', 'Baskerville', 'Georgia', serif;
  font-family: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #a05b26; outline-offset: 5px; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; inset: .5rem auto auto .5rem; padding: .65rem 1rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.top, .hero, footer { background: var(--pine); color: var(--paper); }
.top-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .65rem 2rem; flex-wrap: wrap; }
.top-inner { border-bottom: 1px solid #618074; min-height: 4.6rem; padding-block: .75rem; }
.brand { text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: .045em; }
nav { display: flex; gap: 1.4rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero-inner { display: grid; grid-template-columns: minmax(18rem, .78fr) minmax(0, 1.22fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3.1rem, 7vw, 7rem); }
.overline { font-size: .88rem; font-weight: 700; letter-spacing: .115em; text-transform: uppercase; color: var(--ochre); }
h1, h2, .price { font-family: var(--serif); font-weight: 400; }
h1 { margin: 1.15rem 0 1.45rem; font-size: clamp(4.1rem, 8.9vw, 8.25rem); line-height: .89; letter-spacing: -.055em; }
h1 em { color: var(--ochre); font-weight: 400; }
.lede { max-width: 33ch; color: #F2E8D6; font-size: 1.12rem; }
.hero .button { margin-top: 1.8rem; }
.hero-photo { border: 1px solid #8f6b4c; box-shadow: 0 15px 50px #04191077; }
.hero-photo img { width: 100%; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.1rem; font-weight: 700; border-radius: .3rem; border: 1px solid transparent; text-decoration: none; }
.button:hover { text-decoration: underline; text-underline-offset: .2em; }
.button-gold { color: var(--deep); background: var(--ochre); }
.button-dark { color: var(--paper); background: var(--pine); }
.button-outline { border-color: var(--pine); }
.obra { color: var(--deep); background: #efcca0; border-block: 1px solid #b68956; }
.obra-inner { display: flex; align-items: center; gap: 1.35rem; padding-block: 1.6rem; }
.obra-inner svg { flex: 0 0 2.65rem; }
.obra-inner p { font-family: var(--serif); font-size: clamp(1.32rem, 2.8vw, 2rem); line-height: 1.28; }
.obra-inner strong { font-weight: 700; }
.section { padding-block: clamp(3rem, 7vw, 5.7rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.08; letter-spacing: -.035em; }
.section-intro { font-size: 1.08rem; margin-top: .75rem; max-width: 65ch; color: var(--muted); }
.offers { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
.offer { border: 1px solid var(--line); padding: clamp(1.35rem, 4vw, 2.6rem); display: grid; align-content: start; justify-items: start; gap: .35rem; }
.digital { background: #e8eee2; border-color: #a8b79c; }
.impressa { background: #f9eddb; }
.offer h3 { font-size: 1rem; letter-spacing: .09em; text-transform: uppercase; }
.price { font-size: clamp(3.05rem, 6vw, 5.15rem); color: var(--pine); line-height: 1.25; font-variant-numeric: lining-nums; white-space: nowrap; }
.price span { font-size: .54em; vertical-align: .2em; }
.format { font-weight: 700; }
.offer .button { margin-top: .95rem; }
.prelaunch { margin-top: 1rem; color: var(--muted); }
.catalog { background: #f2eadb; border-block: 1px solid var(--line); }
.book-grid { padding: 0; margin: 2rem 0 0; list-style: none; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1.75rem 1.2rem; }
.book-grid li { min-width: 0; font-size: .95rem; font-weight: 650; }
.book-grid img { width: 100%; aspect-ratio: 16 / 23; object-fit: cover; margin-bottom: .7rem; box-shadow: 0 5px 13px #2a211b2c; }
.faq { max-width: 53rem; }
.faq h2 { margin-bottom: 1.6rem; }
details { border-top: 1px solid var(--line); padding-block: .85rem; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding-block: .35rem; cursor: pointer; font-weight: 700; }
details p { color: var(--muted); max-width: 65ch; padding: .25rem 0 .55rem 1rem; }
.footer-inner { padding-block: 1.65rem; }
.footer-inner span { color: #f0c994; }
@media (max-width: 890px) {
  .book-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero-inner { gap: 1.7rem; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 2rem); }
  nav { gap: .9rem; font-size: .9rem; }
  .hero-inner, .offers { grid-template-columns: 1fr; }
  h1 { font-size: clamp(4rem, 13vw, 6rem); }
  .hero-photo { margin-top: .6rem; }
  .book-grid { gap: 1.1rem .8rem; }
  .book-grid li { font-size: .88rem; line-height: 1.35; }
}
@media (max-width: 360px) {
  .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.sample-link { display: inline-block; margin-top: .45rem; padding-block: .45rem; font-size: .92rem; color: var(--pine); text-underline-offset: .2em; }
.sample-link:hover { text-decoration-thickness: 2px; }
body:has(.reader[open]) { overflow: hidden; }
.reader {
  width: min(calc(100% - 1.25rem), 50rem);
  max-height: calc(100dvh - 1.25rem);
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: .45rem;
}
.reader[open] { display: flex; flex-direction: column; }
.reader::backdrop { background: #0a1e19d9; }
.reader-header, .reader-controls { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .65rem clamp(.65rem,3vw,1.25rem); }
.reader-header h2 { font-size: clamp(1.35rem, 4vw, 2rem); letter-spacing: -.015em; }
.reader-label { color: var(--muted); font-size: .88rem; }
.reader button {
  min-height: 2.7rem;
  font: inherit;
  line-height: 1.15;
  color: var(--pine);
  background: #e8eee2;
  border: 1px solid #a8b79c;
  border-radius: .25rem;
  padding: .38rem .65rem;
  cursor: pointer;
}
.reader button:disabled { color: #68726a; background: transparent; cursor: default; }
.reader button:focus-visible { outline: 3px solid #a05b26; outline-offset: 2px; }
.reader-view { min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #ded6c6; padding: .65rem; border-block: 1px solid var(--line); }
.reader-image { width: min(100%, 37rem); height: auto; margin: 0 auto; }
.reader-image[hidden] { display: none; }
.reader-error { padding: 1rem; }
.reader-counter { font-size: .88rem; text-align: center; }
.reader-pdf { align-self: center; margin-bottom: .7rem; font-size: .9rem; text-underline-offset: .2em; }
