:root {
  --bg: #f6f7f4; --surface: #ffffff; --ink: #1d231f; --muted: #535c55; --line: #d8dcd5;
  --accent: #24523b; --on-accent: #fbfcfa;
  --serif: "EB Garamond", Georgia, serif;
  --sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151a17; --surface: #1d2420; --ink: #eef1ec; --muted: #aab3ab; --line: #333c36; --accent: #8fcbaa; --on-accent: #10231a; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--sans); padding-bottom: 76px; }
@media (min-width: 768px) { body { padding-bottom: 0; } }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 58px); }
h2 { font-size: clamp(28px, 4vw, 36px); }
h3 { font-size: 23px; margin-bottom: 4px; }
p { margin: 0 0 14px; }

.top, .foot { max-width: 1120px; margin: 0 auto; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font: italic 500 29px/1 var(--serif); text-decoration: none; }
.top nav, .foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 16px; }
.top nav a, .foot nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot { border-top: 1px solid var(--line); margin-top: 56px; flex-wrap: wrap; padding-block: 28px; }
main > section { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }

.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font: 600 18px var(--sans); text-decoration: none; text-align: center; white-space: nowrap; padding: 14px 28px; border: 2px solid var(--accent); border-radius: 4px; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.btn:hover { opacity: .9; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn[disabled] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }

.cover { aspect-ratio: 2 / 3; width: 100%; padding: 9% 9% 8%; display: flex; flex-direction: column; color: #f7f3e6; border-radius: 2px 4px 4px 2px; box-shadow: inset 5px 0 0 rgb(0 0 0 / .16), 0 12px 26px rgb(20 30 24 / .26); container-type: inline-size; }
.c-title { font: 700 13.5cqw/1.08 var(--serif); }
.c-rule { width: 28%; height: 2px; background: currentColor; margin-top: 9cqw; opacity: .8; }
.c-author { margin-top: auto; font: 500 7.4cqw/1.2 var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.mustard { background: #9c7414; }
.burgundy { background: #5e1a2c; }
.emerald { background: #12523f; }

.hero { display: grid; gap: 36px; padding-block: 28px 56px; align-items: center; }
.hero p { color: var(--muted); max-width: 44ch; font-size: 20px; }
.fan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 520px; width: 100%; margin-inline: auto; padding-block: 12px; }
.fan .cover:nth-child(1) { transform: rotate(-3deg) translateY(8px); }
.fan .cover:nth-child(3) { transform: rotate(3deg) translateY(8px); }
@media (min-width: 768px) { .hero { grid-template-columns: 1.05fr 1fr; padding-top: 48px; } }

.list { display: grid; gap: 44px; padding-block: 16px 56px; }
.row { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 20px; align-items: start; }
.row > a { text-decoration: none; }
.row h2 a { text-decoration: none; }
.row h2 a:hover { text-decoration: underline; }
.subject { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.by { color: var(--muted); }
.price { font: 700 30px/1.1 var(--serif); margin-bottom: 12px; }
.sale { color: var(--accent); font-weight: 600; font-size: 16px; }
.sticky s, .also s { font: 500 .75em var(--serif); color: var(--muted); }
.price s { font-size: 20px; font-weight: 500; color: var(--muted); }
@media (min-width: 768px) { .row { grid-template-columns: 210px minmax(0, 600px); gap: 40px; } }

.band { display: grid; gap: 16px; padding-block: 36px !important; border-block: 1px solid var(--line); }
.band .promise { align-self: center; }
@media (min-width: 768px) { .band { grid-template-columns: 1fr 1fr; } }
.promise { color: var(--muted); font-size: 16px; margin: 14px 0 0; }

.product { display: grid; gap: 28px; padding-block: 16px 40px; }
.p-cover { max-width: 260px; width: 72%; margin-inline: auto; }
.p-cover.big { max-width: 480px; width: 100%; margin-bottom: 0; }
.sub { font-size: 20px; color: var(--muted); }
.rating { display: block; margin-bottom: 14px; color: var(--muted); font-size: 16px; }
.fmt { color: var(--muted); font-size: 16px; }
@media (min-width: 768px) {
  .product { grid-template-columns: 340px minmax(0, 580px); gap: 56px; padding-top: 32px; }
  .p-cover { width: 100%; max-width: none; margin: 0; }
  .product:has(.big) { grid-template-columns: minmax(0, 620px); gap: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .55s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

.prose { padding-block: 26px; }
.prose > p, .notice { max-width: 66ch; }
.narrow { max-width: 720px !important; padding-top: 32px; }
.inside { display: grid; gap: 20px; margin-top: 20px; max-width: 760px; }
.inside p { color: var(--muted); margin: 0; }
.details { margin: 0 0 18px; display: grid; gap: 12px; max-width: 760px; }
.details dt { font-weight: 600; }
.details dd { margin: 0; color: var(--muted); }
@media (min-width: 768px) { .details { grid-template-columns: repeat(3, 1fr); } }
.notice { font-size: 15px; color: var(--muted); }

.together { background: var(--surface); border-block: 1px solid var(--line); padding-block: 32px; margin-block: 20px; }
@media (min-width: 1152px) { .together { border: 1px solid var(--line); border-radius: 4px; padding-inline: 32px; } }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 360px; margin-bottom: 18px; }
.also-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 620px; margin-top: 14px; }
.also { display: flex; flex-direction: column; gap: 2px; text-decoration: none; font-size: 16px; }
.also .cover { margin-bottom: 10px; }
.also strong { line-height: 1.3; }
.also span:not([class]) { color: var(--muted); }
.also:hover strong { text-decoration: underline; }

.leave { margin-top: 18px; max-width: 66ch; }
.leave summary { cursor: pointer; font-weight: 600; }
.leave p { margin-top: 10px; color: var(--muted); }
.review { padding-block: 16px; border-bottom: 1px solid var(--line); max-width: 66ch; }
.review h3 { font-size: 21px; }
.review small { color: var(--muted); }

.sticky { position: fixed; inset: auto 0 0 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); font: 700 26px var(--serif); }
.sticky .btn { font-family: var(--sans); padding-block: 10px; }
@media (min-width: 768px) { .sticky { display: none; } }

.order-book { padding-block: 20px; border-bottom: 1px solid var(--line); }
form.rev { display: grid; gap: 14px; margin-top: 14px; max-width: 520px; }
form.rev label { display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
form.rev input, form.rev textarea, form.rev select { font: 18px var(--sans); padding: 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--muted); border-radius: 4px; width: 100%; }
.err { color: #a12b2b; }
@media (prefers-color-scheme: dark) { .err { color: #f0a0a0; } }
