/*
VOICE  calm, grown-up, a neighbour across the kitchen table; no hype
IDEA   the book itself: cream pages, bottle-green covers, a country-house study
PICTURE Malcolm in real British settings, plus the actual pages of the book
COLOUR paper cream, bottle green fields, brass hairlines, sage and oatmeal boxes
TYPE   Cormorant Garamond for headings, Jost for text, as in the ebook
LAYOUT long single page, full-width bands alternating cream and green, 1180px content
*/
:root {
  color-scheme: light;
  --paper: #F4F0E6; --paper2: #EDE7DA; --deep: #1E3A2E; --deeper: #162C22; --green: #2F5A45; --leaf: #BFD3B2;
  --ink: #23251F; --muted: #5F5E55; --sage: #E3E9DC; --oat: #ECE4D4; --brass: #A88D57; --stone: #E8E0D0; --rule: #D9D1BF;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 17px/1.65 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--green); }
.dark h1 em, .dark h2 em, .dark h3 em { color: var(--leaf); }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(5vw, 18px); }
.band { padding: clamp(56px, 8vw, 110px) 0; }
.band.alt { background: var(--paper2); }
.dark { background: var(--deep); color: #EDE8DB; }
.dark a { color: var(--leaf); }
.label { font: 500 13px/1.3 var(--sans); color: var(--green); margin-bottom: 14px; }
.dark .label { color: var(--leaf); }
.h2 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 18px; }
.lede { font: italic 400 clamp(20px, 2.1vw, 24px)/1.45 var(--serif); color: #3F4038; max-width: 46ch; }
.dark .lede { color: #D9DDCF; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--deep); color: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border-radius: 3px;
  background: var(--deep); color: #F4F0E6; font: 500 17px var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--green); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.btn.light { background: #F4F0E6; color: var(--deep); }
.btn.light:hover { background: #fff; }
.btn.block { width: 100%; }
.trust { font-size: 14px; color: var(--muted); margin-top: 12px; }
.dark .trust { color: #C8CCBF; }

/* header */
header.top { position: sticky; top: 0; z-index: 50; background: rgba(244, 240, 230, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { font: 500 23px var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand em { color: var(--green); }
nav.links { display: flex; gap: 22px; margin-left: auto; }
nav.links a { color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
nav.links a:hover { color: var(--green); }
header .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (max-width: 960px) { nav.links { display: none; } header .btn { margin-left: auto; } }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; padding: clamp(36px, 5vw, 70px) 0 clamp(40px, 5vw, 70px); }
.eyebrow { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.hero h1 { font-size: clamp(50px, 7vw, 86px); line-height: 1; }
.hero h1 em { display: block; }
.hero .sub { font: italic 400 clamp(21px, 2.2vw, 26px)/1.4 var(--serif); color: #3F4038; margin: 18px 0 14px; max-width: 30ch; }
.hero p.plain { max-width: 46ch; }
.price-row { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 18px; flex-wrap: wrap; }
.price { font: 500 46px/1 var(--serif); color: var(--ink); white-space: nowrap; }
.price-note { font-size: 15px; color: var(--muted); }
.hero-pic { position: relative; }
.hero-pic .photo { aspect-ratio: 4/5; width: 100%; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(20, 40, 30, .55); }
.hero-pic .book { position: absolute; left: -38px; bottom: -30px; width: 34%; border-radius: 2px; box-shadow: 0 22px 40px -12px rgba(0, 0, 0, .55); transform: rotate(-4deg); }
.quote { font: italic 400 clamp(26px, 3vw, 36px)/1.3 var(--serif); text-align: center; max-width: 30ch; margin: 0 auto; }
.quote cite { display: block; font: 400 14px var(--sans); font-style: normal; color: var(--muted); margin-top: 14px; }
.dark .quote cite { color: #C8CCBF; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.18); margin-top: 48px; }
.stats div { padding: 22px 10px 4px; text-align: center; border-left: 1px solid rgba(255,255,255,.18); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font: 400 clamp(36px, 4vw, 50px)/1 var(--serif); color: #F4F0E6; }
.stats span { font-size: 14px; color: #C8CCBF; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-pic { order: -1; max-width: 520px; margin: 0 auto; }
  .hero-pic .book { left: auto; right: 10px; width: 30%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { border-left: 0; }
}

/* two column blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split figure { margin: 0; }
.split figure img { width: 100%; border-radius: 4px; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.dark figcaption { color: #C8CCBF; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
ul.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
ul.ticks li { position: relative; padding: 0 0 12px 32px; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.dark ul.ticks li::before { border-color: var(--leaf); }

/* rules */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 34px; counter-reset: r; }
.rule { display: grid; grid-template-columns: 52px minmax(0, 1fr); padding: 20px 0; border-top: 1px solid var(--rule); counter-increment: r; }
.rule::before { content: counter(r); font: italic 400 32px/1 var(--serif); color: var(--green); }
.rule h3 { font-size: 24px; margin-bottom: 4px; }
.rule p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* closet check */
.check { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; margin-top: 30px; align-items: start; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.items label { display: flex; align-items: center; gap: 14px; min-height: 52px; border-bottom: 1px solid var(--rule); cursor: pointer; font-size: 17px; }
.items input { width: 22px; height: 22px; accent-color: var(--deep); flex: none; }
.items img { width: 40px; height: 40px; border-radius: 50%; background: var(--stone); padding: 5px; flex: none; }
.tally { position: sticky; top: 92px; background: var(--deep); color: #EDE8DB; border-radius: 4px; padding: 30px; }
.tally .count { font: 400 76px/1 var(--serif); color: #F4F0E6; }
.tally .count small { font-size: 32px; color: #9DB19A; }
.bands { margin: 22px 0 24px; }
.bands div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.16); font-size: 15px; opacity: .45; transition: opacity .2s; }
.bands div.on { opacity: 1; }
.bands b { font: 400 21px var(--serif); color: #F4F0E6; }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }
@media (max-width: 900px) { .check { grid-template-columns: 1fr; } .tally { position: static; } }
@media (max-width: 560px) { .items { grid-template-columns: 1fr; } }

/* parts */
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 34px; }
.part { background: #FBF8F1; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.part img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.part div { padding: 18px 20px 20px; }
.part small { font-size: 13px; color: var(--green); }
.part h3 { font-size: 26px; margin: 4px 0 8px; }
.part p { font-size: 15.5px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .parts { grid-template-columns: 1fr; } }
details.toc { margin-top: 30px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
details.toc summary { cursor: pointer; padding: 16px 0; font-weight: 500; color: var(--green); min-height: 44px; }
.toc-cols { columns: 3 240px; column-gap: 36px; padding-bottom: 20px; font-size: 15px; }
.toc-cols h4 { font: 500 19px var(--serif); margin: 12px 0 4px; break-after: avoid; }
.toc-cols ul { margin: 0 0 8px; padding-left: 18px; color: var(--muted); }

/* gallery */
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.gnav { display: flex; gap: 10px; }
.gnav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; }
.gnav button:hover { background: var(--deep); color: #fff; }
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px 2px 18px; scrollbar-width: thin; }
.gallery button.pg { flex: 0 0 auto; width: clamp(190px, 22vw, 250px); scroll-snap-align: start; border: 0; padding: 0; background: none; cursor: zoom-in; text-align: left; color: var(--ink); font: inherit; }
.gallery img { width: 100%; border-radius: 2px; box-shadow: 0 16px 30px -16px rgba(30, 40, 30, .45); }
.gallery span { display: block; font-size: 15px; margin-top: 12px; }
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); width: 100%; }
dialog.lb::backdrop { background: rgba(14, 26, 20, .88); }
.lb img { width: 100%; max-height: 82vh; object-fit: contain; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #F4F0E6; padding: 12px 0; }
.lb-bar button { min-height: 44px; padding: 0 16px; background: transparent; color: #F4F0E6; border: 1px solid rgba(255,255,255,.5); border-radius: 3px; cursor: pointer; font: 400 15px var(--sans); }

/* features */
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; margin-top: 26px; }
.feat h3 { font-size: 25px; margin-bottom: 6px; }
.feat p { margin: 0; font-size: 16px; color: var(--muted); }
.dark .feat p { color: #C8CCBF; }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }

/* buy */
.buy { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: center; background: #FBF8F1; border: 1px solid var(--rule); border-radius: 6px; padding: clamp(24px, 4vw, 50px); }
.buy img { width: 100%; max-width: 330px; margin: 0 auto; box-shadow: 0 26px 50px -20px rgba(20, 30, 25, .55); }
.buy .price { font-size: 56px; }
.secure { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 14px; }
@media (max-width: 760px) { .buy { grid-template-columns: 1fr; } .buy img { max-width: 230px; } }
.guarantee { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 26px; align-items: center; max-width: 760px; margin: 50px auto 0; }
.seal { width: 110px; height: 110px; border-radius: 50%; border: 1.5px solid var(--brass); display: grid; place-items: center; text-align: center; color: var(--deep); }
.seal b { display: block; font: 400 44px/0.9 var(--serif); }
.seal span { font-size: 13px; }
.guarantee h3 { font-size: 28px; margin-bottom: 6px; }
@media (max-width: 520px) { .guarantee { grid-template-columns: 1fr; justify-items: start; } }

/* faq */
.faq { max-width: 820px; margin: 30px auto 0; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font: 400 23px/1.25 var(--serif); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 26px/1 var(--sans); color: var(--green); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 18px; color: #3F4038; max-width: 68ch; }

/* footer */
footer { background: var(--deeper); color: #C8CCBF; font-size: 14px; padding: 56px 0 110px; }
footer .brand { color: #F4F0E6; }
footer .brand em { color: var(--leaf); }
footer p { max-width: 80ch; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0; }
footer a { color: #E3E9DC; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--deep); color: #F4F0E6; transform: translateY(110%); transition: transform .3s; box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
.buybar.show { transform: none; }
.buybar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; }
.buybar b { font: 500 26px var(--serif); }
.buybar small { display: block; font-size: 13px; color: #C8CCBF; }
.buybar .btn { min-height: 46px; padding: 0 22px; }

.was { position: relative; display: inline-block; font: 400 26px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--muted); margin-left: 2px; white-space: nowrap; }
.was::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; border-top: 1.5px solid currentColor; }
.tag { display: inline-block; font: 500 12.5px/1 var(--sans); color: var(--deep); background: var(--sage); border-radius: 99px; padding: 6px 10px; white-space: nowrap; }
.buybar .was { color: #C8CCBF; font-size: 17px; margin-left: 6px; }

.btn { white-space: nowrap; }
.buy .was { font-size: 30px; }
@media (max-width: 420px) { .buybar small { font-size: 12px; } .buybar .wrap > div { flex: 1; } .buybar .btn { padding: 0 16px; } header.top .wrap { gap: 10px; } .brand { font-size: 19px; } header .brand em { display: none; } header .btn { padding: 0 12px; font-size: 14px; } }

a[data-site="email"] { overflow-wrap: anywhere; }

.ty .dl { display:flex; flex-direction:column; align-items:flex-start; gap:10px; margin:22px 0 30px; }
.ty .dl small { color: var(--muted); font-size: 14px; }
