:root { --paper: #f6f4ed; --ink: #172d43; --muted: #516172; --line: #cbd1d3; --white: #fffefa; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 0.94rem/1.65 Verdana, sans-serif; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.13em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #ac570c; outline-offset: 4px; }
img { display: block; width: 100%; height: auto; max-width: 100%; }
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.masthead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.wordmark { font: bold 1.5rem Georgia, serif; letter-spacing: -0.04em; text-decoration: none; }
.wordmark span, .header-note { color: var(--muted); }
.header-note { font-size: 0.72rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.16; font-family: Georgia, serif; font-weight: normal; }
h1 { font-size: clamp(2rem, 5vw, 4.8rem); letter-spacing: -0.035em; margin-bottom: 1.4rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 0; }
h3 { font-size: 1.35rem; }
.intro { padding-block: clamp(2.5rem, 7vw, 5rem); }
.eyebrow { font-size: 0.71rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.lead { max-width: 39rem; color: var(--muted); font-size: 1rem; }
.category-nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 1.6rem; }
.catalog-section { margin-bottom: 4rem; scroll-margin-top: 1rem; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; padding-block: 1.3rem; border-top: 2px solid var(--ink); }
.section-title span { font-size: 0.75rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.cover-link { display: block; }
.cover-link img { aspect-ratio: 1; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem; }
.card h3 a { text-decoration: none; }
.card-detail { color: var(--muted); font-size: 0.78rem; }
.card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem; margin-top: auto; padding-top: 1rem; }
.price { font-weight: bold; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 1.2rem; }
.button { display: inline-block; max-width: 100%; border: 1px solid var(--ink); background: var(--ink); color: white; padding: 0.85rem 1.2rem; font: bold 0.85rem/1.5 Verdana, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: #294961; }
.compact { padding: 0.65rem 1rem; }
.back { display: inline-block; margin-block: 1.8rem; font-size: 0.82rem; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 5vw, 4rem); margin-bottom: 4rem; }
.product-layout h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.gallery { display: grid; gap: 1rem; }
.gallery a { border: 1px solid var(--line); display: block; }
.benefits { padding-left: 1.2rem; margin-block: 1.7rem; }
.benefits li { margin-bottom: 0.55rem; }
.description { color: var(--muted); }
.purchase-panel { margin-top: 2rem; padding-block: 1.5rem; border-block: 1px solid var(--line); }
.large-price { font-size: 1.8rem; margin-bottom: 1rem; }
label { display: block; margin-bottom: 0.4rem; }
input { width: 100%; min-width: 0; padding: 0.8rem; border: 1px solid var(--muted); border-radius: 0; background: var(--white); color: var(--ink); font: 1rem Verdana, sans-serif; }
.field-note { font-size: 0.76rem; color: var(--muted); margin-block: 0.8rem; }
.purchase-panel .button { width: 100%; }
.error { border-left: 3px solid #9d271c; padding-left: 0.8rem; color: #8c251b; }
.order-panel { max-width: 38rem; margin: 3rem auto; }
.order-panel h1 { font-size: clamp(2rem, 5vw, 3rem); }
.save-note { padding-block: 1rem; border-block: 1px solid var(--line); }
.payment-qr { width: 18rem; max-width: 100%; margin-block: 1.5rem; image-rendering: pixelated; }
#payment-status { margin-block: 1.5rem; }
.footer { padding-block: 2rem; border-top: 1px solid var(--line); font-size: 0.74rem; color: var(--muted); }
.footer p { max-width: 50rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 48rem) { .product-layout { grid-template-columns: minmax(0, 1fr); } .product-copy { grid-row: 1; } .intro h1 { font-size: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
