/*
Theme Name: Bold & Bright Books
Theme URI: https://boldandbrightbooks.com/
Author: JB by Design
Author URI: https://jbbydesign.com.au/
Description: Custom block theme for Bold & Bright Books, built from Stage 1 concept B1 "Cover Teal" with the L1 logo (22 November 2026), the colours of the book covers.
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: bold-and-bright-books
*/

/* ---- tokens: Paper palette, Sans headlines (signed off 22 November 2026) ---- */
:root {
  --bg: #F6F1E6;
  --bg-raise: #EFE8D9;
  --card: #FBF8F1;
  --line: rgba(20,53,42,0.14);
  --fg: #14352A;
  --fg-2: #465A50;          /* 6.6:1 on the page */
  --brown-1: #6B4529;
  --brown-2: #96663C;
  --brown-3: #845C36;       /* accent: 5.2:1 on the page, 4.8:1 on the strip */
  --on-accent: #F6F1E6;
  --tile: #14352A;
  --shadow: 0 30px 50px -28px rgba(20,53,42,0.45);
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --display: var(--sans);
  --max: 1120px;
  --gutter: clamp(16px, 5vw, 56px);
  color-scheme: light;
}

/* ---- base ------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brown-3); margin: 0; }
.muted { color: var(--fg-2); }
.intro { max-width: 40rem; margin: 14px 0 0; color: var(--fg-2); font-size: 1.05rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 1.5px solid transparent; font-family: inherit; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--brown-3); outline-offset: 3px; }
.btn-solid { background: var(--brown-3); color: var(--on-accent); }
.btn-line { border-color: var(--line); color: var(--fg); }
.btn-line:hover { border-color: var(--brown-3); }
.btn[aria-disabled="true"] { border-style: dashed; border-color: var(--line); color: var(--fg-2); cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---- nav ------------------------------------------------------------- */
.nav { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand svg { width: 40px; height: 40px; flex: none; }
.wordmark { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.16em; white-space: nowrap; }
.wordmark b { color: var(--brown-3); font-weight: 800; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.nav ul a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--fg-2); }
.nav ul a:hover { color: var(--fg); }
.nav ul .btn { padding: 10px 18px; min-height: 44px; gap: 0.3em; color: var(--on-accent); }

/* ---- hero ------------------------------------------------------------ */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 104px); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 18px 0 22px; }
.hero .lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); max-width: 33rem; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fan { margin: 0; justify-self: center; width: min(100%, 470px); }
.fan .stack { position: relative; aspect-ratio: 470 / 430; }
.fan img { position: absolute; width: 56%; border-radius: 5px; box-shadow: var(--shadow); }
.fan .l { left: 0; top: 9%; transform: rotate(-7deg); }
.fan .r { right: 0; top: 9%; transform: rotate(7deg); }
.fan .c { left: 22%; top: 0; z-index: 2; }
.fan figcaption { margin-top: 22px; font-size: 0.88rem; color: var(--fg-2); text-align: center; }

/* ---- promise strip --------------------------------------------------- */
.strip { background: var(--bg-raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip .item { padding: 32px 28px 34px 0; border-right: 1px solid var(--line); min-width: 0; }
.strip .item + .item { padding-left: 28px; }
.strip .item:last-child { border-right: 0; }
.strip .num { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--brown-3); line-height: 1; letter-spacing: -0.02em; height: 2rem; display: flex; align-items: flex-end; }
.strip .num small { font-size: 1rem; margin-left: 2px; }
.strip .num svg { width: 30px; height: 30px; }
.strip b { display: block; margin: 12px 0 6px; font-size: 1.05rem; }
.strip p { margin: 0; font-size: 0.94rem; color: var(--fg-2); }

/* ---- sections -------------------------------------------------------- */
.section .wrap { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
section[id], article[id] { scroll-margin-top: 76px; }

/* feature: the Christmas book */
.feature { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 40px; padding: clamp(24px, 4vw, 44px); background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.feature .cover img { border-radius: 5px; box-shadow: var(--shadow); }
.feature h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 10px 0 12px; }
.feature > div > p { margin: 0; color: var(--fg-2); }
.spec { margin: 22px 0 26px; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.spec dt { color: var(--fg-2); margin: 0; }
.spec dd { margin: 0; font-variant-numeric: tabular-nums; }
.status { margin: 12px 0 0; font-size: 0.88rem; color: var(--fg-2); }

/* the shelves */
.shelf { margin-top: 56px; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 14px; border-bottom: 2px solid var(--brown-2); }
.shelf-head h3 { font-size: 1.35rem; }
.shelf-head span { font-size: 0.9rem; color: var(--fg-2); }
.books { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); margin-top: 28px; }
.book { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; min-width: 0; }
.book img { border-radius: 4px; box-shadow: var(--shadow); }
.book h4 { font-family: var(--display); font-size: 1.18rem; line-height: 1.2; letter-spacing: -0.01em; margin: 6px 0 10px; }
.book p { margin: 0; font-size: 0.96rem; color: var(--fg-2); }
.meta { list-style: none; margin: 14px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.meta li { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.book .btn { min-height: 44px; padding: 10px 18px; font-size: 0.92rem; }
.allbooks { margin: 44px 0 0; font-size: 0.98rem; }
.allbooks a { color: var(--brown-3); font-weight: 700; }

/* printables */
.printables { background: var(--bg-raise); }
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); margin-top: 40px; }
.dl { display: grid; grid-template-columns: 88px 1fr; gap: 22px; padding: clamp(22px, 3vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: 18px; min-width: 0; }
.sheet { position: relative; width: 88px; height: 114px; border-radius: 6px; background: #FBF8F1; color: #14352A; box-shadow: 6px 6px 0 -1px var(--brown-2); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.05; }
.sheet b { font-size: 2rem; font-weight: 800; }
.sheet span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.sheet i { position: absolute; top: 8px; left: 8px; font-style: normal; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; color: #96663C; }
.dl h3 { font-size: 1.3rem; margin: 6px 0 10px; }
.dl p { margin: 0 0 12px; font-size: 0.96rem; color: var(--fg-2); }
.dl .btn { margin-top: 6px; }
.fine { margin: 28px 0 0; font-size: 0.92rem; color: var(--fg-2); max-width: 44rem; }

/* care homes */
.care { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: p; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); counter-increment: p; }
.points li::before { content: counter(p); font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--brown-3); line-height: 1.2; }
.points b { display: block; margin-bottom: 4px; }
.points p { margin: 0; color: var(--fg-2); font-size: 0.96rem; }
.care .cta { margin-top: 28px; }

/* about */
.about-photo { margin: 28px 0 0; width: min(100%, 280px); }
.about-photo img { border-radius: 18px; background: var(--bg-raise); }
.about-photo figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--fg-2); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-grid > div > p { margin: 0 0 16px; color: var(--fg-2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- footer ---------------------------------------------------------- */
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 32px 96px; font-size: 0.88rem; color: var(--fg-2); }
footer .brand svg { width: 28px; height: 28px; }
footer .wordmark { font-size: 0.8rem; color: var(--fg); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer .links a { text-decoration: none; }
footer .links a:hover { color: var(--fg); text-decoration: underline; }
.base { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 18px; border-top: 1px solid var(--line); }
/* JB by Design credit: Build Master section 6a markup, wordmark follows the footer text colour */
.fcredit { display: inline-flex; align-items: center; gap: 8px; }
.footer-credit { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--fg); }
.footer-credit svg { flex: none; }
.footer-credit span { font-family: "Sora", var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: 0.95rem; }
.footer-credit b { font-weight: 800; }


/* ---- WordPress ------------------------------------------------------- */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.notfound .wrap { padding-block: clamp(72px, 12vw, 160px); }
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 18px 0 18px; }

/* ---- phone and tablet menu (added 22 Nov 2026 for the mobile sweep) ---- */
.nav ul .show-s { display: none; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--fg); font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle[aria-expanded="true"] .bars, .menu-toggle .cross { display: none; }
.menu-toggle[aria-expanded="true"] .cross { display: block; }
.menu-panel { position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--wp-admin--admin-bar--height, 0px) + 77px); z-index: 4; background: var(--bg); padding: 8px var(--gutter) 32px; overflow-y: auto; overscroll-behavior: contain; }
.menu-panel[hidden] { display: none; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 1.3rem; }
html.menu-open, html.menu-open body { overflow: hidden; }

/* ---- responsive ------------------------------------------------------ */
@media (max-width: 900px) {
  .nav ul li.hide-s { display: none; }
  .nav ul .show-s { display: block; }
  .hero .wrap { grid-template-columns: 1fr; }
  .fan { order: -1; width: min(100%, 360px); }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .strip .item { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .strip .item + .item { padding-left: 0; }
  .strip .item:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
  .strip .item:nth-child(even) { padding-left: 24px; }
  .strip .item:nth-last-child(-n+2) { border-bottom: 0; }
  .feature { grid-template-columns: 1fr; }
  .feature .cover { width: min(100%, 240px); }
  .books, .downloads, .care, .about-grid { grid-template-columns: 1fr; }
  }
@media (max-width: 640px) { .nav ul .nav-cta { display: none; } }
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wordmark { font-size: 0.8rem; letter-spacing: 0.12em; }
  .brand svg { width: 34px; height: 34px; }
  .nav ul .btn { padding: 8px 14px; font-size: 0.88rem; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip .item, .strip .item:nth-child(odd), .strip .item:nth-child(even) { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .strip .item:last-child { border-bottom: 0; }
  .book { grid-template-columns: 104px 1fr; gap: 16px; }
  .dl { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .cta .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .nav .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .wordmark { font-size: 0.7rem; letter-spacing: 0.06em; }
  .nav ul .btn { padding: 8px 12px; font-size: 0.8rem; }
  .fan { width: min(100%, 300px); }
}
@media (prefers-reduced-motion: reduce) { .btn, html { transition: none; scroll-behavior: auto; } }

/* ---- Direction B1 "Cover Teal" with the L1 logo (Jeff, 22 November 2026) ---- */

:root { --bg:#FBF7EE; --bg-raise:#F8E7B0; --card:#FFFFFF; --fg:#14352A; --fg-2:#3F5249; --brown-3:#B4472A; --on-accent:#FFFFFF; --line:rgba(20,53,42,.16); --brown-2:#E2663F; }
.nav { background:#1E4B5A; border-top:8px solid #E9B63B; border-bottom:0; }
.nav .wordmark, .nav ul a { color:#F7F1E1; } .nav .wordmark b { color:#E9B63B; }
.nav .btn-solid { background:#E9B63B; color:#14352A; } .menu-toggle { color:#F7F1E1; border-color:rgba(247,241,225,.4); }
.brand svg rect:nth-child(1){fill:#163A46} .brand svg rect:nth-child(2){fill:#E2663F} .brand svg rect:nth-child(3){fill:#E9B63B} .brand svg rect:nth-child(4){fill:#F7F1E1}
.hero { background:#1E4B5A; color:#F7F1E1; } .hero .label { color:#E9B63B; } .hero .lede { color:#D6E4DF; }
.hero .btn-solid { background:#E9B63B; color:#14352A; } .hero .btn-line { border-color:rgba(247,241,225,.5); color:#F7F1E1; }
.hero figcaption { color:#D6E4DF; }
.strip { background:#E9B63B; border:0; } .strip .num { color:#14352A; } .strip p { color:#2B3F36; } .strip .item { border-color:rgba(20,53,42,.2); }
.feature { background:#B8322A; border:0; color:#F7F1E1; } .feature .label { color:#E9B63B; }
.feature > div > p, .feature .spec dt, .feature .status { color:#F3DCD6; }
.feature .spec, .feature .spec div { border-color:rgba(247,241,225,.25); } .feature .btn { color:#F7F1E1; border-color:rgba(247,241,225,.5); }
.shelf-head { border-bottom-color:#E2663F; }
.printables { background:#1E4B5A; color:#F7F1E1; } .printables .label { color:#E9B63B; } .printables .intro, .printables .fine { color:#D6E4DF; }
.printables .dl { background:#F7F1E1; color:#14352A; border:0; } .printables .dl p { color:#3F5249; } .printables .dl .label { color:#B4472A; }
#care-homes { background:#F8E7B0; }
footer{background:#163A46;color:#F7F1E1} footer .wrap, footer a{color:#D6E4DF} footer .wordmark, footer .footer-credit{color:#F7F1E1}
/* footer logo on the deep teal footer: L1 on a teal tile so it does not vanish */
footer .brand svg rect:nth-child(1){fill:#1E4B5A}
/* footer wordmark: mustard, as in the header */
footer .wordmark b { color:#E9B63B; }
/* the About photo sits on cream */
.about-photo img { background:#EFE8D9; }

/* ---- Christmas lights on the Christmas book panel (seasonal; delete the .xmas-lights list to switch off) ---- */
.feature { position: relative; overflow: hidden; padding-top: clamp(64px, 7vw, 76px); }
.feature::before { content: ""; position: absolute; inset: 44px 0 0; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22220%22%20height%3D%22220%22%20viewBox%3D%220%200%20220%20220%22%3E%3Cg%20transform%3D%22translate%2824%2030%29%20scale%281.00%29%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23F7F1E1%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0-9V9M-7.8-4.5%207.8%204.5M-7.8%204.5%207.8-4.5%22/%3E%3Cpath%20d%3D%22M0-9-2.5-6.5M0-9%202.5-6.5M0%209-2.5%206.5M0%209%202.5%206.5%22/%3E%3C/g%3E%3C/g%3E%3Cg%20transform%3D%22translate%28120%2018%29%20scale%280.70%29%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23F7F1E1%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0-9V9M-7.8-4.5%207.8%204.5M-7.8%204.5%207.8-4.5%22/%3E%3Cpath%20d%3D%22M0-9-2.5-6.5M0-9%202.5-6.5M0%209-2.5%206.5M0%209%202.5%206.5%22/%3E%3C/g%3E%3C/g%3E%3Cg%20transform%3D%22translate%28190%2070%29%20scale%281.20%29%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23F7F1E1%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0-9V9M-7.8-4.5%207.8%204.5M-7.8%204.5%207.8-4.5%22/%3E%3Cpath%20d%3D%22M0-9-2.5-6.5M0-9%202.5-6.5M0%209-2.5%206.5M0%209%202.5%206.5%22/%3E%3C/g%3E%3C/g%3E%3Cg%20transform%3D%22translate%2870%20110%29%20scale%280.80%29%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23F7F1E1%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0-9V9M-7.8-4.5%207.8%204.5M-7.8%204.5%207.8-4.5%22/%3E%3Cpath%20d%3D%22M0-9-2.5-6.5M0-9%202.5-6.5M0%209-2.5%206.5M0%209%202.5%206.5%22/%3E%3C/g%3E%3C/g%3E%3Cg%20transform%3D%22translate%28160%20150%29%20scale%281.00%29%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23F7F1E1%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0-9V9M-7.8-4.5%207.8%204.5M-7.8%204.5%207.8-4.5%22/%3E%3Cpath%20d%3D%22M0-9-2.5-6.5M0-9%202.5-6.5M0%209-2.5%206.5M0%209%202.5%206.5%22/%3E%3C/g%3E%3C/g%3E%3Cg%20transform%3D%22translate%2830%20180%29%20scale%280.70%29%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23F7F1E1%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0-9V9M-7.8-4.5%207.8%204.5M-7.8%204.5%207.8-4.5%22/%3E%3Cpath%20d%3D%22M0-9-2.5-6.5M0-9%202.5-6.5M0%209-2.5%206.5M0%209%202.5%206.5%22/%3E%3C/g%3E%3C/g%3E%3Cg%20transform%3D%22translate%28110%20200%29%20scale%281.10%29%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23F7F1E1%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0-9V9M-7.8-4.5%207.8%204.5M-7.8%204.5%207.8-4.5%22/%3E%3Cpath%20d%3D%22M0-9-2.5-6.5M0-9%202.5-6.5M0%209-2.5%206.5M0%209%202.5%206.5%22/%3E%3C/g%3E%3C/g%3E%3Cg%20transform%3D%22translate%28205%20205%29%20scale%280.60%29%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23F7F1E1%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M0-9V9M-7.8-4.5%207.8%204.5M-7.8%204.5%207.8-4.5%22/%3E%3Cpath%20d%3D%22M0-9-2.5-6.5M0-9%202.5-6.5M0%209-2.5%206.5M0%209%202.5%206.5%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); background-size: 220px 220px; opacity: .10; pointer-events: none; }
.feature > * { position: relative; z-index: 1; }
.feature > .xmas-lights { position: absolute; left: 0; right: 0; top: 0; height: 46px; margin: 0; padding: 0; list-style: none; display: flex; overflow: hidden; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2244%22%20height%3D%2224%22%20viewBox%3D%220%200%2044%2024%22%3E%3Cpath%20d%3D%22M0%205%20Q22%2019%2044%205%22%20fill%3D%22none%22%20stroke%3D%22%232A1F1A%22%20stroke-width%3D%222%22/%3E%3C/svg%3E"); background-repeat: repeat-x; background-size: 44px 24px; pointer-events: none; z-index: 2; }
.xmas-lights li { flex: 0 0 44px; position: relative; height: 46px; }
.xmas-lights li::before { content: ""; position: absolute; left: 19px; top: 10px; width: 6px; height: 6px; border-radius: 1px; background: #2A1F1A; }
.xmas-lights li::after { content: ""; position: absolute; left: 16px; top: 15px; width: 12px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--bulb); box-shadow: 0 0 6px 2px var(--bulb), 0 0 16px 5px var(--glow); animation: bulb-twinkle 2.8s ease-in-out infinite alternate; }
.xmas-lights li:nth-child(4n+1) { --bulb: #FFD24A; --glow: rgba(255,210,74,.55); }
.xmas-lights li:nth-child(4n+2) { --bulb: #6FD39B; --glow: rgba(111,211,155,.5); }
.xmas-lights li:nth-child(4n+3) { --bulb: #7CC7FF; --glow: rgba(124,199,255,.5); }
.xmas-lights li:nth-child(4n+4) { --bulb: #FFF6DE; --glow: rgba(255,246,222,.55); }
.xmas-lights li:nth-child(3n+2)::after { animation-delay: -0.9s; animation-duration: 3.4s; }
.xmas-lights li:nth-child(3n+3)::after { animation-delay: -1.8s; animation-duration: 2.4s; }
.xmas-lights li:nth-child(even)::after { top: 17px; }
@keyframes bulb-twinkle { 0%, 35% { opacity: 1; filter: brightness(1.15); } 100% { opacity: .38; filter: brightness(.7); box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .xmas-lights li::after { animation: none; } }

.contact-line { margin: 22px 0 0; font-size: 1rem; color: var(--fg-2); }
.contact-line a { color: var(--fg); font-weight: 700; }

/* ---- 1.1.1 tidy-up ---- */
/* links on the teal header and footer stay light on hover */
.nav ul a:not(.btn):hover, .nav ul a:not(.btn):focus-visible { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
footer .links a:hover, footer .links a:focus-visible { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
footer .footer-credit:hover span { text-decoration: underline; }
/* book cards: description takes the slack, so pills and Buy buttons sit level across a row */
.books { align-items: stretch; }
.book { align-items: stretch; }
.book img { align-self: start; }
.book > div { display: flex; flex-direction: column; min-width: 0; }
.book .meta { margin-top: auto; padding-top: 14px; }
.book .btn { align-self: flex-start; }
/* no orphan words: better line breaks for running text */
p, li, dd, figcaption, .status, .fine { text-wrap: pretty; }

/* ---- 1.1.2 tidy-up ---- */
/* printables: the Download buttons sit level across the two cards */
.downloads { align-items: stretch; }
.dl > div { display: flex; flex-direction: column; min-width: 0; }
.dl > div > p:not(.label) { margin-bottom: 18px; }
.dl .btn { margin-top: auto; align-self: flex-start; }

/* ---- 3D books: spine, page edges and shadow on every cover ---- */
.b3d { position: relative; display: block; border-radius: 2px 6px 6px 2px; }
.b3d img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 2px 5px 5px 2px; box-shadow: none; }
.b3d::before { content: ""; position: absolute; z-index: 0; top: 3px; left: 3px; right: -7px; bottom: -5px; border-radius: 2px 6px 6px 3px;
  background: repeating-linear-gradient(90deg, #FBF7EE 0 1px, #DDD4C2 1px 2px), #F1EBDD;
  box-shadow: 0 26px 36px -16px rgba(12,32,26,.62), 0 8px 12px -6px rgba(12,32,26,.40), 1px 1px 0 rgba(0,0,0,.18); }
.b3d::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, rgba(0,0,0,.34) 0, rgba(0,0,0,.10) 1.4%, rgba(255,255,255,.30) 2.6%, rgba(0,0,0,.16) 4.6%, rgba(255,255,255,.10) 6.8%, rgba(255,255,255,0) 10%),
              linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 22%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(0,0,0,.20); }
.fan .b3d { position: absolute; width: 56%; }
.fan .b3d img { width: 100%; position: relative; }
.book .b3d { align-self: start; }

/* option B: the single covers turn a little, as if standing on a shelf */
.feature .b3d, .book .b3d { transform: perspective(900px) rotateY(-14deg); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) { .feature .b3d, .book .b3d { transition: transform .35s ease; }
  .feature .b3d:hover, .book .b3d:hover { transform: perspective(900px) rotateY(-4deg); } }

/* ---- 1.1.6: nothing under 16px, card copy at full body size; mustard Buy on the Christmas panel ---- */
.label { font-size: max(16px, 0.9rem); letter-spacing: 0.12em; }
.book p, .dl p, .points p, .strip p, .spec div { font-size: 1rem; }
.book .label, .dl .label { font-size: max(16px, 0.9rem); }
.meta { gap: 6px; } .meta li { font-size: max(16px, 0.9rem); padding: 5px 10px; }
.fan figcaption, .about-photo figcaption, .shelf-head span, .fine, .allbooks, footer .wrap { font-size: max(16px, 0.92rem); }
.feature .btn-solid { background:#E9B63B; color:#14352A; border-color:#E9B63B; }

/* ---- 1.1.7: a plain page (Privacy) ---- */
.pagebody .wrap { max-width: 46rem; }
.pagebody h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 24px; }
.pagebody h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.pagebody p, .pagebody li { color: var(--fg-2); }
.pagebody a { color: inherit; font-weight: 700; }

/* ---- 1.1.8: pages from inside the books ---- */
.inside .wrap { padding-bottom: 0; }
.pages { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.pages figure { margin: 0; }
.pages img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(20,53,42,.14); }
.pages figcaption { margin-top: 12px; font-size: max(16px, 0.92rem); color: var(--fg-2); }
.inside .fine { margin-top: 24px; }
@media (max-width: 760px) { .pages { grid-template-columns: 1fr; } }

/* ---- 1.1.9: a page for each printable ---- */
.pr-hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pr-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 14px 0 18px; }
.pr-hero .btn { margin-top: 26px; }
.pr-hero .fine { margin-top: 14px; }
.pr-cover { margin: 0; }
.pr-cover img, .sheets img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(20,53,42,.14); }
.pr-cover img { max-width: 340px; margin-inline: auto; transform: rotate(2deg); }
.pr-hero .wrap { padding-bottom: clamp(40px, 5vw, 64px); }
.pr-body .wrap { padding-top: clamp(40px, 5vw, 64px); }
.pr-body h2 { margin-top: clamp(48px, 7vw, 80px); }
.pr-body h2:first-child { margin-top: 0; }
.pr-body .points { margin-top: 24px; max-width: 46rem; }
.sheets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; max-width: 60rem; }
.sheets figure { margin: 0; }
.sheets figcaption { margin-top: 10px; font-size: max(16px, 0.92rem); color: var(--fg-2); }
.tips { margin: 20px 0 0; padding-left: 1.2em; max-width: 46rem; color: var(--fg-2); }
.tips li { margin: 8px 0; }
.book h3 { font-family: var(--display); font-size: 1.18rem; line-height: 1.2; letter-spacing: -0.01em; margin: 6px 0 10px; }
.pr-next { margin: 44px 0 0; }
.dl p a, .pr-next a, .pr-hero .fine a { color: inherit; font-weight: 700; }
@media (max-width: 860px) { .pr-hero .wrap { grid-template-columns: 1fr; } .sheets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sheets { grid-template-columns: 1fr; } }

/* ---- 1.2.0: printable pages in the menu; cards lead to their pages ---- */
.nav .has-sub { position: relative; }
.nav .sub { display: none; position: absolute; right: 0; top: 100%; padding-top: 10px; z-index: 6; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: block; }
.nav .sub ul { display: block; min-width: 290px; padding: 8px; background: #F7F1E1; border-radius: 14px; box-shadow: 0 16px 36px rgba(10,30,36,.28); }
.nav .has-sub .sub a, .nav .has-sub .sub a:hover, .nav .has-sub .sub a:focus-visible { display: block; padding: 12px 14px; border-radius: 8px; color: #14352A; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.nav .has-sub .sub a:hover, .nav .has-sub .sub a:focus-visible { background: rgba(20,53,42,.09); }
.menu-panel li.sub a { padding: 14px 0 14px 20px; font-size: 1.1rem; font-weight: 600; }
.dl h3 a { color: inherit; text-decoration: none; }
.dl h3 a:hover, .dl h3 a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
