/* The Busy Book Shop
   Brand: deep green, gold, red on warm cream. Poppins headings, Inter body.
   No JavaScript anywhere on the site. */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --green-900: #14532d;
  --green-700: #1c6644;
  --gold: #f2b705;
  --gold-deep: #b08300;
  --red: #c8372d;
  --cream: #fff6dc;
  --paper: #fffdf6;
  --ink: #16271c;
  --ink-soft: #3d4f41;
  --line: #e4d6a8;
  --on-green-soft: #e9e3c6;
  --gutter: clamp(1rem, 4vw, 2rem);
  --head: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.14; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 7.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 4.8vw, 2.1rem); }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; }
p, ul, ol, dl, table { margin: 0; }
a { color: var(--green-700); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--green-900); }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--green-900); outline-offset: 3px; border-radius: 4px; }
.on-green :focus-visible { outline-color: var(--gold); }

.wrap { width: min(100% - 2 * var(--gutter), 68rem); margin-inline: auto; }
.measure { max-width: 42rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--green-900); padding: 0.75rem 1rem; font-weight: 700; z-index: 20; }
.skip:focus { left: 0; }
.price, .amt { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wide-only { display: none; }
@media (min-width: 54rem) { .wide-only { display: grid; } }
.fine { font-size: 0.925rem; line-height: 1.5; color: var(--ink-soft); }
.on-green .fine { color: var(--on-green-soft); }

/* Buttons: a gold shop tag with a hard edge, not a soft shadow */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0.55rem 1.4rem; border-radius: 0.6rem; background: var(--gold); color: var(--green-900); font: 700 1.0625rem/1.2 var(--body); text-align: center; text-decoration: none; box-shadow: 0 4px 0 var(--gold-deep); transition: transform 80ms ease, box-shadow 80ms ease; }
.btn:hover { color: var(--green-900); transform: translateY(1px); box-shadow: 0 3px 0 var(--gold-deep); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--gold-deep); }
.btn--wide { display: flex; width: 100%; }
.btn--small { min-height: 2.75rem; padding: 0.4rem 1rem; font-size: 1rem; }
.btn--green { background: var(--green-900); color: var(--cream); box-shadow: 0 4px 0 #0b3319; }
.btn--green:hover { color: #fff; box-shadow: 0 3px 0 #0b3319; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Header */
.site-header { background: var(--green-900); color: var(--cream); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; color: var(--cream); text-decoration: none; font: 700 1.02rem/1.1 var(--head); }
.brand:hover { color: #fff; }
.brand img { width: 2.1rem; height: 2.1rem; border-radius: 0.5rem; box-shadow: 0 0 0 1.5px rgba(255, 246, 220, 0.4); }
.site-nav { display: flex; gap: 0.15rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.65rem; border-radius: 0.5rem; color: var(--cream); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav .nav-wide { display: none; }
@media (min-width: 36rem) { .site-nav .nav-wide { display: inline-flex; } }

/* The shelf: real covers standing on a gold board. Used in the hero and on the bundle page. */
.shelf-books { display: flex; align-items: flex-end; justify-content: center; gap: 3.5%; padding-inline: 5%; }
.book { display: block; flex: 1 1 0; max-width: 13rem; }
.book img { width: 100%; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16), 3px 1px 0 #efe6c6, 4px 2px 0 rgba(0, 0, 0, 0.28); }
.shelf-books .book:first-child { transform: rotate(-2.2deg); transform-origin: bottom left; }
.shelf-books .book:last-child { transform: rotate(2.2deg); transform-origin: bottom right; }
.shelf-books .book--lead { flex-grow: 1.14; max-width: 14.8rem; position: relative; z-index: 1; transform: none; }
.shelf-board { height: 0.85rem; background: var(--gold); border-bottom: 0.4rem solid var(--gold-deep); border-radius: 2px; }
.on-green .shelf-board { box-shadow: 0 1rem 1.2rem -0.6rem rgba(0, 0, 0, 0.5); }

/* Home hero */
.hero { background: var(--green-900); color: var(--cream); padding-block: clamp(1.75rem, 5vw, 3.5rem) clamp(2.5rem, 7vw, 4.5rem); }
.hero-grid { display: grid; gap: 1.9rem; }
.hero-promise { margin-top: 0.9rem; max-width: 31ch; font-size: clamp(1.1rem, 3.6vw, 1.3rem); line-height: 1.45; color: var(--on-green-soft); }
.hero-offer-head { font: 700 clamp(1.3rem, 4.6vw, 1.65rem)/1.2 var(--head); }
.hero-offer-sub { margin-top: 0.35rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 1.15rem; }
.hero-actions a:not(.btn) { color: var(--cream); font-weight: 600; min-height: 2.75rem; display: inline-flex; align-items: center; }
.hero-actions a:not(.btn):hover { color: var(--gold); }
.hero-offer .fine { margin-top: 1rem; max-width: 40ch; }
@media (min-width: 54rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "copy shelf" "offer shelf"; column-gap: 3.5rem; row-gap: 2.25rem; }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-offer { grid-area: offer; }
  .hero .shelf { grid-area: shelf; align-self: center; }
}

/* Sections */
.section { padding-block: clamp(2.5rem, 7vw, 4.25rem); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section-intro { margin-top: 0.7rem; max-width: 40rem; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 54rem) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 3.5rem; align-items: start; } }

/* Receipt: the bundle sum, shown the way a shop shows it */
.receipt { position: relative; max-width: 26rem; padding: 0.9rem 1.25rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; margin-bottom: 0.6rem; }
.section--paper .receipt { background: var(--cream); }
.receipt::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -8px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8'%3E%3Cpath d='M0 0h16L8 8z' fill='%23fffdf6'/%3E%3C/svg%3E") repeat-x 0 0 / 16px 8px; }
.section--paper .receipt::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8'%3E%3Cpath d='M0 0h16L8 8z' fill='%23fff6dc'/%3E%3C/svg%3E"); }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt th { text-align: left; font-weight: 400; padding: 0.5rem 0.75rem 0.5rem 0; }
.receipt td { text-align: right; white-space: nowrap; font-weight: 600; padding: 0.5rem 0; font-variant-numeric: tabular-nums; }
.receipt tbody tr + tr > * { border-top: 2px dotted var(--line); }
.receipt tfoot tr:first-child > * { border-top: 2px dashed #cdbd87; }
.receipt tfoot th, .receipt tfoot td { color: var(--ink-soft); }
.receipt tfoot .receipt-total > * { color: var(--ink); font-weight: 700; font-size: 1.2rem; padding-top: 0.2rem; }
.receipt tfoot .receipt-save > * { padding-top: 0.2rem; }
.save-flag { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 4px; background: var(--red); color: #fff; font-weight: 700; }
.receipt .btn { margin-top: 1.15rem; }
.receipt .fine { margin-top: 0.9rem; }

/* Product bays: each product stands on its own length of shelf */
.bays { display: grid; gap: 2.25rem; margin-top: 2rem; }
.bay { display: grid; grid-template-columns: 8.25rem minmax(0, 1fr); column-gap: 1.1rem; align-items: start; }
.bay-cover { display: block; padding-inline: 5%; }
.bay-cover img { width: 100%; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14), 3px 1px 0 #efe6c6, 4px 2px 0 rgba(0, 0, 0, 0.22); }
.bay h3 a { color: var(--ink); text-decoration: none; }
.bay h3 a:hover { color: var(--green-700); text-decoration: underline; }
.bay-line { margin-top: 0.35rem; font-size: 0.97rem; line-height: 1.5; color: var(--ink-soft); }
.bay-note { margin-top: 0.3rem; font-size: 0.85rem; color: var(--ink-soft); }
.bay-price { margin-top: 0.55rem; font-weight: 700; font-size: 1.25rem; }
.bay-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.7rem; }
.bay-actions a:not(.btn) { font-weight: 600; min-height: 2.75rem; display: inline-flex; align-items: center; }
@media (min-width: 48rem) {
  .bays { grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 2.75rem 2rem; }
  .bay { display: block; }
  .bay-cover { padding-inline: 13%; }
  .bay-body { margin-top: 1.1rem; }
}

/* Steps: a real sequence, so it is numbered */
.steps { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: 1.2rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; align-content: start; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.9rem; align-items: start; }
.steps li::before { content: counter(step); width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--green-900); color: var(--gold); font: 700 1.2rem/2.6rem var(--head); text-align: center; }
.steps h3 { padding-top: 0.5rem; }
.steps p { grid-column: 2; margin-top: 0.2rem; color: var(--ink-soft); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.after-steps { margin-top: 1.6rem; max-width: 42rem; }

/* Product page */
.backlink { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; font-size: 0.95rem; }
.product-top { padding-block: 0.5rem clamp(2.25rem, 6vw, 3.75rem); }
.product-grid { display: grid; gap: 1.6rem; }
.product-cover { max-width: 13rem; }
.product-cover .bay-cover { padding-inline: 6%; }
.product-info .lead { margin-top: 0.7rem; font-size: clamp(1.1rem, 3.4vw, 1.25rem); line-height: 1.5; }
.facts { list-style: none; padding: 0; margin-top: 1.1rem; display: grid; gap: 0.45rem; }
.facts li { position: relative; padding-left: 1.5rem; }
.facts li::before { content: ""; position: absolute; left: 0.15rem; top: 0.52em; width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--gold); box-shadow: 0 0 0 1.5px var(--green-900); }
.notice { margin-top: 1.25rem; padding: 0.95rem 1.1rem; background: var(--paper); border: 1.5px solid var(--green-900); border-radius: 0.5rem; display: grid; gap: 0.55rem; }
.buybox { margin-top: 1.4rem; max-width: 26rem; }
.buybox .price-now { font: 700 clamp(2.1rem, 8vw, 2.6rem)/1 var(--body); letter-spacing: -0.01em; }
.buybox .price-label { display: block; margin-top: 0.3rem; font-size: 0.925rem; color: var(--ink-soft); }
.buybox .btn { margin-top: 0.95rem; }
.buybox .fine { margin-top: 0.9rem; }
@media (min-width: 54rem) {
  .product-grid { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); column-gap: 4rem; align-items: start; }
  .product-cover { max-width: none; }
  .product-cover .bay-cover { padding-inline: 9%; }
}

/* What is inside: group on the left, contents on the right */
.inside { margin-top: 1.5rem; border-top: 2px solid var(--green-900); }
.inside > div { padding-block: 0.95rem; border-bottom: 1px solid var(--line); }
.inside dt { font: 700 1.05rem/1.35 var(--head); }
.inside dd { margin: 0.2rem 0 0; }
@media (min-width: 44rem) { .inside > div { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); column-gap: 2rem; } .inside dd { margin: 0; } }
.inside-notes { margin-top: 1.25rem; max-width: 46rem; display: grid; gap: 0.7rem; }
.doc-block { margin-top: 2.5rem; }
.doc-block h2 + p { margin-top: 0.8rem; }
.doc-block p + p { margin-top: 0.8rem; }
.h2-gap { margin-top: 2rem; }

.pair { display: grid; gap: 2.5rem; }
.pair h2 + p, .pair h2 + .steps { margin-top: 0.9rem; }
.pair p + p { margin-top: 0.8rem; }
.pair .steps { grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 54rem) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }

/* Green band: the bundle offer on single-product pages */
.band { background: var(--green-700); color: var(--cream); padding-block: clamp(1.9rem, 5vw, 2.75rem); }
.band-inner { display: grid; gap: 1.1rem; }
.band p { margin-top: 0.4rem; max-width: 40rem; color: var(--on-green-soft); }
@media (min-width: 48rem) { .band-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2.5rem; } }

/* Bundle page */
.bundle-top { padding-block: 0.5rem clamp(2.25rem, 6vw, 3.75rem); }
.bundle-grid { display: grid; gap: 2rem; }
.bundle-top .lead { margin-top: 0.7rem; font-size: clamp(1.1rem, 3.4vw, 1.25rem); line-height: 1.5; max-width: 36rem; }
.bundle-top .shelf { margin-top: 1.6rem; max-width: 34rem; }
@media (min-width: 54rem) { .bundle-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); column-gap: 3.5rem; align-items: start; } }

/* Text pages */
.doc { padding-block: 0.5rem clamp(2.75rem, 7vw, 4.5rem); }
.doc h1 { margin-top: 0.4rem; }
.doc .updated { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.95rem; }
.doc h2 { margin-top: 2.2rem; font-size: clamp(1.25rem, 3.8vw, 1.5rem); }
.doc h1 + p, .doc h2 + p, .doc h2 + ul, .doc h2 + ol { margin-top: 0.75rem; }
.doc p + p, .doc p + ul, .doc ul + p, .doc ol + p, .doc p + ol { margin-top: 0.85rem; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.4rem; }
.doc .contact-list { list-style: none; padding: 0; }
.doc .contact-list li + li { margin-top: 0.8rem; }
.doc .links-row { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 1.6rem; font-weight: 600; }
.links-row a, a.tap { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Download page (thank-you pages). assets/js/delivery.js shows one data-state block at a time. */
.doc #delivery { margin-top: 0.8rem; }
.doc #delivery > div > p + p, .doc #delivery > div > p + .downloads { margin-top: 0.85rem; }
.doc .downloads { list-style: none; padding: 0; margin-top: 1.1rem; display: grid; gap: 0.9rem; max-width: 26rem; }
.doc .downloads li + li { margin-top: 0; }
.doc .notice { margin-top: 1.25rem; }
.doc .notice p + p { margin-top: 0; }
.copy-row, .ref-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; max-width: 30rem; }
.copy-row input, .ref-row input { flex: 1 1 12rem; min-width: 0; min-height: 2.75rem; padding: 0.4rem 0.7rem; border: 1.5px solid var(--green-900); border-radius: 0.5rem; background: var(--paper); color: var(--ink); font: 400 1rem/1.3 var(--body); }
.ref-row input { min-height: 3.25rem; }
.ref-form { margin-top: 1.25rem; }
.ref-form label { font-weight: 600; }
.doc #copy-done { margin-top: 0.4rem; min-height: 1.4em; }
.doc button.btn { border: 0; cursor: pointer; }

/* Placeholders that must be resolved before launch. Deliberately loud. */
.todo { background: #fff; color: #8b1e16; border: 2px dashed var(--red); border-radius: 4px; padding: 0.05rem 0.4rem; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 2; }
.build-note { margin-block: 1rem 1.75rem; padding: 0.9rem 1.1rem; background: #fff; color: #8b1e16; border: 2px dashed var(--red); border-radius: 0.5rem; }

/* Mobile buy bar: stays at the bottom of the screen while the page scrolls. Not a pop-up. */
.buybar { position: sticky; bottom: 0; z-index: 5; background: var(--green-900); color: var(--cream); padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom)); box-shadow: 0 -0.5rem 1rem -0.5rem rgba(0, 0, 0, 0.4); }
.buybar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.9rem; }
.buybar-name { font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.buybar .btn { flex: none; }
@media (min-width: 54rem) { .buybar { display: none; } }

/* Footer */
.site-footer { background: var(--green-900); color: var(--on-green-soft); padding-block: 2.5rem 2.75rem; font-size: 0.97rem; }
.footer-grid { display: grid; gap: 1.75rem; }
.footer-name { color: var(--cream); font: 700 1.1rem/1.2 var(--head); }
.footer-grid p + p { margin-top: 0.45rem; }
.footer-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 1.25rem; }
.footer-links a { color: var(--cream); display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer-links a:hover { color: var(--gold); }
.footer-legal { margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 246, 220, 0.22); font-size: 0.9rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
