/* Peter Emmanuel book site
   Layout: deep teal hero with two framed book cards, cream reading sections, coral buy buttons.
   Single committed look (teal / cream / coral), so every colour is set explicitly. */
:root {
  --teal-950: #062b2d;
  --teal-900: #0a3c3e;
  --teal-800: #0f5052;
  --teal-600: #1c7c79;
  --teal-200: #bfdcd6;
  --teal-100: #dcebe6;
  --cream: #fbf6ea;
  --cream-2: #f3ebd8;
  --sand: #e4d8bd;
  --ink: #112a2b;
  --ink-soft: #3d5455;
  --coral: #ff7557;
  --coral-deep: #e85a3c;
  --white: #ffffff;
  --line: rgba(17, 42, 43, 0.14);
  --line-light: rgba(251, 246, 234, 0.2);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 84px; }
.section--tint { background: var(--cream-2); }
.section--teal { background: var(--teal-900); color: var(--cream); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; }
.section--teal .section-head p { color: var(--teal-200); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--coral); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent; text-decoration: none;
  cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn--coral { background: var(--coral); color: var(--ink); }
.btn--coral:hover { background: #ff8a70; transform: translateY(-1px); }
.btn--ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn--ghost:hover { background: rgba(127, 127, 127, 0.14); }
.btn--small { padding: 10px 18px; font-size: 0.975rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 234, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.wordmark svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.98rem; color: var(--ink-soft); }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { background: var(--teal-900); color: var(--cream); padding-block: 72px 84px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--teal-100); max-width: 34rem; margin-top: 22px; }
.hero .btn-row { margin-top: 32px; }
.hero small { display: block; margin-top: 18px; color: var(--teal-200); font-size: 0.95rem; }
.frames { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.frames .frame:nth-child(2) { margin-top: 44px; }
.frame {
  background: linear-gradient(165deg, var(--teal-800), var(--teal-950));
  border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 10px;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.6);
}
.frame img { border-radius: 18px; width: 100%; }
.frame figcaption { padding: 10px 8px 4px; font-size: 0.9rem; color: var(--teal-100); }
.frame figcaption strong { color: var(--cream); font-weight: 600; }

/* Trust strip */
.trust { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 20px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.trust li { display: flex; gap: 12px; align-items: baseline; font-size: 0.98rem; color: var(--ink-soft); }
.trust strong { color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; white-space: nowrap; }

/* Main book cards */
.book-cards { display: grid; gap: 28px; }
.book-card {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
}
.book-card .frame { padding: 14px; }
.book-card .frame img { border-radius: 8px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }
.book-card h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.book-card .tag { display: inline-block; background: var(--teal-100); color: var(--teal-900); font-weight: 600; font-size: 0.9rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.book-card p.desc { color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.buy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.price small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); margin-left: 6px; }

/* Compare */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.compare > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; display: grid; gap: 12px; align-content: start; }
.compare h3 span { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--teal-600); margin-bottom: 6px; }
.compare p { color: var(--ink-soft); }
.compare .pick { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; color: var(--ink); font-weight: 600; }

/* Gallery */
.gallery-block + .gallery-block { margin-top: 44px; }
.gallery-block h3 { margin-bottom: 6px; }
.gallery-block > p { color: var(--ink-soft); margin-bottom: 16px; }
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x proximity; align-items: flex-start; -webkit-overflow-scrolling: touch; }
.shot { flex: none; width: min(78vw, 340px); scroll-snap-align: start; margin: 0; display: grid; gap: 10px; }
.shot button { all: unset; cursor: zoom-in; display: block; border-radius: var(--radius-sm); }
.shot button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.shot img { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 14px 30px -18px rgba(17, 42, 43, 0.5); width: 100%; }
.shot figcaption { font-size: 0.92rem; color: var(--ink-soft); }
.gallery-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 4px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(6, 43, 45, 0.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: min(94vw, 980px); width: auto; border-radius: 8px; background: var(--white); }
.lightbox button { position: absolute; background: var(--cream); color: var(--ink); border: 0; border-radius: 999px; width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer; font-weight: 700; }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 12px; top: 50%; }
.lightbox .lb-next { right: 12px; top: 50%; }
.lightbox .lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--cream); font-size: 0.95rem; padding-inline: 70px; }

/* Reviews */
.review-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.review-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.review-col h3 { margin-bottom: 2px; }
.review-col img { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); width: 100%; }
.review-col .link { font-weight: 600; }
.review-note { margin-top: 28px; color: var(--ink-soft); font-size: 0.98rem; }
.review-grid { columns: 2 340px; column-gap: 24px; }
.review-grid img { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); width: 100%; margin-bottom: 16px; break-inside: avoid; }
.rating-head img { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); max-width: 640px; width: 100%; margin-bottom: 18px; }

/* More tools */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tool { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; display: grid; gap: 12px; align-content: start; }
.tool img { border-radius: 6px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); width: 100%; }
.tool h3 { font-size: 1.12rem; }
.tool p { font-size: 0.95rem; color: var(--ink-soft); }
.tool .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.tool .row .price { font-size: 1.5rem; }
.tool a.more { font-weight: 600; font-size: 0.95rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 56px; align-items: center; }
.about .frame img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.about p + p { margin-top: 16px; }
.about blockquote { margin: 26px 0 0; padding: 18px 22px; border-left: 4px solid var(--coral); background: var(--cream-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.3; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 52rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq summary { cursor: pointer; font-weight: 650; padding: 18px 22px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--teal-600); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 22px 20px; color: var(--ink-soft); }
.faq .ans a { color: var(--ink); font-weight: 600; }

/* Closing CTA */
.cta-band { text-align: left; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta-band p { color: var(--teal-100); margin-top: 12px; max-width: 36rem; }

/* Footer */
.site-footer { background: var(--teal-950); color: var(--teal-200); padding-block: 56px 40px; font-size: 0.98rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--font-display); color: var(--cream); font-size: 1.05rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--teal-100); }
.site-footer .fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-light); font-size: 0.9rem; }

/* Book page */
.crumbs { font-size: 0.95rem; color: var(--teal-200); margin-bottom: 18px; }
.crumbs a { color: var(--teal-100); }
.book-hero .sub { font-size: 1.2rem; color: var(--teal-100); margin-top: 18px; max-width: 34rem; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { background: rgba(251, 246, 234, 0.1); border: 1px solid var(--line-light); border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; color: var(--cream); }
.book-hero .buy-line { margin-top: 30px; }
.book-hero .price { color: var(--cream); }
.book-hero .price small { color: var(--teal-200); }
.book-hero .refund { margin-top: 16px; font-size: 0.95rem; color: var(--teal-200); }
.book-hero .refund a { color: var(--teal-100); }
.book-hero .frames { grid-template-columns: 1fr; max-width: 440px; justify-self: end; }
.book-hero .frames .frame:nth-child(2) { margin-top: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.inside-list { display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
.inside-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 22px; }
.inside-list strong { display: block; font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 4px; }
.inside-list span { color: var(--ink-soft); font-size: 1rem; }
.fit { display: grid; gap: 20px; }
.fit > div { border-radius: var(--radius-md); padding: 26px; }
.fit .yes { background: var(--teal-100); }
.fit .no { background: var(--cream-2); border: 1px solid var(--line); }
.fit h3 { margin-bottom: 12px; font-size: 1.2rem; }
.fit ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.buy-box { background: var(--white); border: 2px solid var(--teal-900); border-radius: var(--radius-lg); padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.buy-box p { color: var(--ink-soft); margin-top: 8px; }
.buy-box .right { display: grid; gap: 12px; justify-items: start; }
.others { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.others a { text-decoration: none; display: grid; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.others img { border-radius: 6px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5); width: 100%; transition: transform 0.15s ease; }
.others a:hover img { transform: translateY(-3px); }
.others span { color: var(--ink-soft); font-weight: 500; }
.buybar { display: none; }

@media (max-width: 960px) {
  .hero .wrap, .about, .two-col { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .book-hero .frames { justify-self: start; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about .frame { max-width: 380px; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .section { padding-block: 60px; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .trust ul { grid-template-columns: minmax(0, 1fr); }
  .book-card { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 24px; }
  .book-card .frame { max-width: 260px; }
  .compare, .review-cols { grid-template-columns: minmax(0, 1fr); }
  .cta-band .wrap, .buy-box { grid-template-columns: minmax(0, 1fr); }
  .site-footer .cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .frames .frame:nth-child(2) { margin-top: 24px; }
  .review-grid { columns: 1; }
  .buybar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--teal-950); color: var(--cream); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-light);
  }
  .buybar .price { font-size: 1.5rem; color: var(--cream); }
  .buybar .t { font-size: 0.85rem; color: var(--teal-200); line-height: 1.2; }
  body.has-buybar { padding-bottom: 72px; }
}
@media (max-width: 520px) {
  .tools { grid-template-columns: minmax(0, 1fr); }
  .others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frames { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .others img { transition: none; }
}

/* Email signup */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup[hidden] { display: none; }
.signup-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.signup h2 { margin-bottom: 12px; }
.signup p { color: var(--ink-soft); }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-row input[type="email"] { flex: 1 1 240px; min-width: 0; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--teal-900); border-radius: 999px; padding: 14px 20px; }
.signup-row input[type="email"]::placeholder { color: #6b7f80; }
.signup-row input[type="email"]:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.signup-note { margin-top: 12px; font-size: 0.9rem; }
.signup-msg { margin-top: 10px; font-weight: 600; color: var(--ink) !important; min-height: 1.4em; }
.signup-msg.err { color: #9a2a12 !important; }
@media (max-width: 760px) { .signup-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; } .signup-row .btn { width: 100%; } }
