:root {
  --ink: #0d0905;
  --ink-2: #1a140e;
  --ink-3: #26211b;
  --line: #3a3128;
  --cream: #f3efe8;
  --paper: #faf8f4;
  --text: #d9d0c2;
  --muted: #b9b0a3;
  --muted-dark: #6b6155;
  --yellow: #ffc21a;
  --orange: #f2683c;
  --rust: #b4430f;
  --green: #2f9e63;
  --red: #d64545;
  --radius: 18px;
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); color: #fff; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-weight: 900; font-size: clamp(36px, 6vw, 64px); }
h2 { font-weight: 900; font-size: clamp(28px, 4vw, 44px); }
h3 { font-weight: 800; font-size: 20px; }
.hl { color: var(--yellow); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font: 800 13px/1 var(--head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; display: block; }
.section { padding: 88px 0; }
.section.light { background: var(--cream); color: #3d362e; }
.section.light h2, .section.light h3 { color: var(--ink); }
.section.light .eyebrow { color: var(--rust); }
.lead { font-size: 19px; max-width: 640px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; border-radius: 999px; padding: 14px 26px; font: 700 15px/1 var(--body); transition: transform .15s, background .15s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #ffd04d; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 9, 5, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(58, 49, 40, .6); height: 70px; }
.site-header .wrap { display: flex; align-items: center; height: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font: 900 17px/1 var(--head); color: #fff; letter-spacing: .02em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span b { color: var(--yellow); font-weight: 900; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { color: var(--text); }
.nav a:hover { color: #fff; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 14px; }
.cart-link svg { width: 18px; height: 18px; }
.cart-count { background: var(--ink); color: var(--yellow); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }
.menu-btn { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--ink); flex-direction: column; gap: 0; padding: 8px 20px 18px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--ink-3); }
  .menu-btn { display: block; margin-left: auto; }
  .cart-link .cart-label { display: none; }
  .brand span { font-size: 15px; }
}

/* Hero */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 720px; height: 720px; right: -200px; top: -240px; background: radial-gradient(circle, rgba(242, 104, 60, .28), transparent 65%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--ink-2); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--text); margin-bottom: 24px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 194, 26, .2); }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stack { position: relative; height: 480px; }
.hero-stack img { position: absolute; width: 52%; height: auto; border-radius: 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); background: #fff; transition: transform .4s; }
.hero-stack img:nth-child(1) { left: 0; top: 60px; transform: rotate(-8deg); }
.hero-stack img:nth-child(2) { right: 0; top: 50px; transform: rotate(7deg); }
.hero-stack img:nth-child(3) { left: 24%; top: 0; z-index: 2; }
.hero-stack:hover img:nth-child(1) { transform: rotate(-11deg) translateX(-10px); }
.hero-stack:hover img:nth-child(2) { transform: rotate(10deg) translateX(10px); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stack { height: 360px; max-width: 460px; margin: 0 auto; width: 100%; }
}

/* Trust strip */
.trust { border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); background: var(--ink-2); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust div { padding: 22px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.trust div + div { border-left: 1px solid var(--ink-3); }
.trust b { display: block; color: #fff; font-family: var(--head); font-size: 15px; }
.trust svg { width: 28px; height: 28px; flex: none; color: var(--yellow); }
@media (max-width: 860px) {
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust div:nth-child(3) { border-left: 0; }
  .trust div:nth-child(n+3) { border-top: 1px solid var(--ink-3); }
}

/* Book grid */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .books { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .books { grid-template-columns: 1fr; } }
.book-card { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; color: #3d362e; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); transition: transform .2s, box-shadow .2s; }
.book-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(13, 9, 5, .14); }
.book-card .cover { background: var(--paper); aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; }
.book-card .cover img { width: 100%; height: 100%; object-fit: contain; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--orange); color: #fff; font: 800 12px/1 var(--head); padding: 7px 10px; border-radius: 999px; }
.book-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.book-card h3 { color: var(--ink); font-size: 19px; }
.book-card .sub { font-size: 14px; color: var(--muted-dark); line-height: 1.45; }
.book-card .exams { font-size: 12px; font-weight: 700; color: var(--rust); letter-spacing: .04em; text-transform: uppercase; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font: 900 26px/1 var(--head); color: var(--ink); }
.mrp { text-decoration: line-through; color: var(--muted-dark); font-size: 15px; }
.off { color: var(--green); font-weight: 700; font-size: 14px; }
.book-card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.book-card .actions .btn { padding: 13px 10px; }
.btn-outline-dark { background: transparent; border: 1.5px solid #d8d0c3; color: var(--ink); }
.btn-outline-dark:hover { border-color: var(--ink); }

/* Method */
.method { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.method div { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 22px 18px; }
.method b { font: 900 15px/1 var(--head); letter-spacing: .08em; color: var(--yellow); display: block; margin-bottom: 10px; }
.method p { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .method { grid-template-columns: 1fr 1fr; } }

/* Author */
.author { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; max-width: 1040px; }
.author-photo { border-radius: 28px; overflow: hidden; background: var(--orange); position: relative; box-shadow: 14px 14px 0 var(--yellow); }
.author-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.author h2 { margin-bottom: 6px; }
.creds { font-weight: 700; color: var(--rust); margin-bottom: 18px; }
.author p + p { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { background: #fff; border: 1px solid #e3dbcd; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .author { grid-template-columns: 1fr; gap: 36px; } .author-photo { max-width: 300px; } }

/* App CTA */
.app-cta { background: linear-gradient(135deg, var(--orange), var(--rust)); border-radius: 32px; padding: 52px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; color: #fff; }
.app-cta h2 { margin-bottom: 12px; }
.app-cta p { color: #ffe9de; }
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.store-btn { background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 18px; display: flex; flex-direction: column; font-size: 11px; line-height: 1.2; min-width: 160px; }
.store-btn b { font: 800 17px/1.2 var(--head); }
@media (max-width: 800px) { .app-cta { grid-template-columns: 1fr; padding: 32px 24px; } .store-btns { justify-content: flex-start; } }

/* FAQ */
.faq { max-width: 820px; margin-top: 32px; }
.faq details { border-bottom: 1px solid #ddd4c6; padding: 20px 0; }
.faq summary { cursor: pointer; font: 700 18px/1.3 var(--head); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--rust); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 12px; }

/* Footer */
.site-footer { background: #080503; border-top: 1px solid var(--ink-3); padding: 56px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-grid h4 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot-grid a, .foot-grid li { color: var(--muted); display: block; padding: 4px 0; list-style: none; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid var(--ink-3); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-dark); font-size: 13px; }
.pay-icons { display: flex; gap: 8px; align-items: center; }
.pay-icons span { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 700; color: var(--muted); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Product page */
.crumbs { font-size: 14px; color: var(--muted); padding: 24px 0 0; }
.crumbs a:hover { color: #fff; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 28px 0 72px; align-items: start; }
.gallery { position: sticky; top: 94px; }
.gallery .main { background: #fff; border-radius: 24px; aspect-ratio: 1 / 1; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs button { flex: none; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #fff; cursor: pointer; padding: 0; }
.thumbs button.on { border-color: var(--yellow); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.product .subtitle { font-size: 19px; color: var(--text); margin-bottom: 14px; }
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 15px; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; }
.byline b { color: #fff; }
.buybox { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 22px; padding: 24px; margin-bottom: 28px; }
.buybox .price-row { padding: 0; margin-bottom: 6px; }
.buybox .price { color: #fff; font-size: 38px; }
.buybox .mrp { color: var(--muted); }
.buybox .off { color: #5fd394; }
.buybox .note { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.qty-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { background: none; border: 0; width: 42px; height: 46px; font-size: 20px; cursor: pointer; color: #fff; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; color: #fff; }
.qty-row .btn { flex: 1; min-width: 150px; }
.pin-check { display: flex; gap: 8px; margin-top: 18px; }
.pin-check input { flex: 1; min-width: 0; }
.pin-result { font-size: 14px; margin-top: 8px; min-height: 20px; }
.stock-low { color: var(--orange); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14px; margin-top: 18px; }
.perks span { display: flex; gap: 8px; align-items: center; }
.perks svg { width: 18px; height: 18px; color: var(--yellow); flex: none; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0905' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.block { margin-top: 32px; }
.block h3 { margin-bottom: 14px; }
.toc { columns: 2; column-gap: 28px; list-style: none; counter-reset: c; font-size: 15px; }
.toc li { counter-increment: c; padding: 7px 0; border-bottom: 1px solid var(--ink-3); break-inside: avoid; }
.toc li::before { content: counter(c, decimal-leading-zero); color: var(--yellow); font-weight: 700; margin-right: 10px; font-family: var(--head); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { color: #fff; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 28px; } .gallery { position: static; } .toc { columns: 1; } }

/* Mobile sticky buy bar */
.buybar { display: none; }
@media (max-width: 900px) {
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(13, 9, 5, .96); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; }
  .buybar .price { color: #fff; font-size: 22px; }
  .buybar .btn { margin-left: auto; }
  body.has-buybar { padding-bottom: 80px; }
}

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.input, select.input, textarea.input { background: var(--ink-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 16px; color: #fff; width: 100%; outline: none; transition: border-color .15s; }
.input:focus { border-color: var(--yellow); }
.input::placeholder { color: #776c5f; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.form-stack { display: grid; gap: 14px; }
.error { color: #ff8a7a; font-size: 14px; }
.ok { color: #5fd394; font-size: 14px; }

/* Cart & checkout */
.page-head { padding: 44px 0 24px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; padding-bottom: 80px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 22px; padding: 24px; }
.panel h3 { margin-bottom: 18px; }
.summary { position: sticky; top: 94px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--ink-3); }
.line:first-child { padding-top: 0; }
.line img { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 12px; }
.line .t { color: #fff; font-weight: 700; font-family: var(--head); font-size: 16px; line-height: 1.25; }
.line .s { font-size: 14px; color: var(--muted); margin-top: 4px; }
.line .qty button { width: 34px; height: 36px; }
.line .controls { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: #fff; }
.mini-line { display: flex; gap: 12px; align-items: center; padding: 10px 0; font-size: 14px; }
.mini-line img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.mini-line .t { flex: 1; color: #fff; font-weight: 600; line-height: 1.3; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font: 900 22px/1.2 var(--head); color: #fff; }
.coupon { display: flex; gap: 8px; margin: 16px 0 6px; }
.coupon .input { text-transform: uppercase; }
.coupon .btn { padding: 12px 18px; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.secure svg { width: 16px; height: 16px; }
.empty { text-align: center; padding: 80px 20px; }
.empty h2 { margin-bottom: 12px; }
.empty p { margin-bottom: 24px; }

/* Order status */
.status-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font: 800 13px/1 var(--head); background: var(--ink-3); color: var(--yellow); }
.status-badge.delivered { background: rgba(47, 158, 99, .18); color: #5fd394; }
.status-badge.cancelled, .status-badge.refunded { background: rgba(214, 69, 69, .18); color: #ff8a7a; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 28px 0 8px; }
.steps div { text-align: center; position: relative; font-size: 13px; color: var(--muted); padding-top: 34px; }
.steps div::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--ink-3); border: 3px solid var(--ink-2); z-index: 1; }
.steps div::after { content: ''; position: absolute; top: 16px; left: -50%; right: 50%; height: 3px; background: var(--ink-3); }
.steps div:first-child::after { display: none; }
.steps div.on { color: #fff; font-weight: 700; }
.steps div.on::before { background: var(--yellow); }
.steps div.on::after { background: var(--yellow); }
.timeline { list-style: none; margin-top: 12px; }
.timeline li { padding: 10px 0 10px 22px; border-left: 2px solid var(--ink-3); position: relative; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.timeline small { color: var(--muted); display: block; }
.success-hero { text-align: center; padding: 56px 0 32px; }
.success-hero .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; margin: 0 auto 20px; }
.success-hero .tick svg { width: 36px; height: 36px; color: var(--ink); }

/* Policy pages */
.prose { max-width: 780px; padding-bottom: 88px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose p, .prose li { margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--yellow); text-decoration: underline; }
.prose .updated { color: var(--muted); font-size: 14px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: #fff; color: var(--ink); padding: 14px 20px; border-radius: 14px; font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); z-index: 100; transition: transform .25s; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast a { color: var(--rust); font-weight: 800; white-space: nowrap; }

.skeleton { background: linear-gradient(90deg, var(--ink-2), var(--ink-3), var(--ink-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 24px; min-height: 420px; }
@keyframes sk { to { background-position: -200% 0; } }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
/* Grid children must be allowed to shrink below their content (thumb strip, long titles). */
.product > *, .two-col > *, .hero .wrap > *, .author > * { min-width: 0; }
.product h1, .product .subtitle { overflow-wrap: anywhere; }
section[id] { scroll-margin-top: 70px; }
