/* Board packet in the Case Studies Deck format (Dec 1 2026).
   Same type, colors and slide layouts as the deck Keevin sends.
   Desktop: each section is a 1280 x 720 slide, scaled to fit by packet.js.
   Phone (under 960px): slides stack as normal sections.
   Print: one slide per 1280 x 720 page. */

:root {
  --cream: #FBF7F0;
  --ink: #0F0E0C;
  --body: #2A251F;
  --muted: #6E655A;
  --rule: #DCD3C6;
  --rule-dark: rgba(251, 247, 240, 0.16);
  --terra: #A4562A;
  --amber: #F2B26B;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #1C1A17;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- Top bar ---------- */
.bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: rgba(251, 247, 240, 0.72);
  font-size: 14.5px;
}
.bar-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.bar a, .bar button {
  font: 500 14.5px/1.2 var(--font-body);
  color: var(--cream);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(251, 247, 240, 0.35);
  text-underline-offset: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.bar a.bar-book {
  background: var(--amber);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0 18px;
  border-radius: 4px;
}

/* ---------- Deck ---------- */
.deck {
  display: flex;
  flex-direction: column;
  align-items: safe center;
  overflow-x: auto; /* if packet.js or CSS zoom is unavailable, slides scroll instead of clipping */
  gap: 28px;
  padding: 20px 0 56px;
}

.slide {
  position: relative;
  width: 1280px;
  height: 720px;
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
  flex-shrink: 0;
}
.slide.dark { background: var(--ink); color: var(--cream); }

h1, h2, h3, .serif {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.accent { color: var(--terra); }
.slide.dark .accent { color: var(--amber); }

.page-num { position: absolute; bottom: 22px; right: 64px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.slide.dark .page-num { color: rgba(251, 247, 240, 0.45); }
.page-num.left { right: auto; left: 64px; }

/* Cover and close */
.pad-slide { padding: 60px 76px 48px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.boon-logo { height: 28px; width: auto; align-self: flex-start; }
.cover-center { max-width: 980px; }
.cover-title { font-size: 68px; line-height: 1.05; color: var(--cream); margin-bottom: 22px; }
.cover-sub { font-size: 23px; line-height: 1.42; color: rgba(251, 247, 240, 0.74); font-weight: 400; max-width: 900px; }
.cover-quote { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--rule-dark); max-width: 680px; }
.cover-quote p { font-family: var(--font-display); font-variation-settings: "opsz" 72, "SOFT" 30; font-size: 22px; line-height: 1.38; color: var(--cream); margin-bottom: 8px; }
.cover-quote .attr { font-size: 13.5px; color: rgba(251, 247, 240, 0.56); }
.quiet-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid var(--rule-dark); font-size: 14px; color: rgba(251, 247, 240, 0.58); }

/* What Boon is */
.about-grid { display: grid; grid-template-columns: 400px 1fr; gap: 72px; height: 100%; padding: 64px 76px 60px; }
.about-left { display: flex; flex-direction: column; justify-content: space-between; }
.about-title { font-size: 64px; line-height: 1.02; color: var(--ink); margin: 14px 0 22px; }
.about-lead { font-family: var(--font-display); font-variation-settings: "opsz" 144, "SOFT" 30; font-size: 27px; line-height: 1.25; color: var(--terra); }
.about-terms { padding-top: 20px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.55; color: var(--body); }
.about-terms strong { color: var(--ink); }
.about-rows { display: flex; flex-direction: column; justify-content: center; }
.about-row { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.about-row:first-child { border-top: 1px solid var(--rule); }
.val-num { font-family: var(--font-display); font-size: 28px; line-height: 1.1; color: var(--terra); }
.val-heading { font-family: var(--font-display); font-variation-settings: normal; letter-spacing: normal; font-size: 24px; line-height: 1.2; color: var(--ink); margin-bottom: 8px; }
.val-body { font-size: 16px; line-height: 1.58; color: var(--body); max-width: 600px; }

/* Results across our clients */
.overview-grid { display: grid; grid-template-columns: 430px 1fr; gap: 64px; height: 100%; padding: 68px 76px 64px; align-items: center; }
.overview-left { display: flex; flex-direction: column; gap: 18px; }
.giant-num { font-family: var(--font-display); font-variation-settings: "opsz" 144, "SOFT" 30; font-size: 106px; line-height: 0.94; letter-spacing: -0.035em; color: var(--terra); }
.overview-lead { font-size: 23px; line-height: 1.38; color: var(--ink); max-width: 360px; }
.overview-sub { font-size: 15.5px; line-height: 1.56; color: var(--muted); max-width: 370px; margin-top: 4px; }
.org-list { list-style: none; display: flex; flex-direction: column; }
.org-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.org-row:first-child { border-top: 1px solid var(--rule); }
.org-name { font-size: 18px; font-weight: 700; color: var(--ink); flex-shrink: 0; }
.org-result { font-size: 15.5px; color: var(--muted); text-align: right; }

/* Story layout A: full-bleed split */
.split { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.split.photo-narrow-right { grid-template-columns: 60% 40%; }
.split-text { padding: 58px 64px 70px; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.split-photo { position: relative; width: 100%; height: 100%; overflow: hidden; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.org-kicker { font-size: 15px; font-weight: 600; color: var(--muted); }
.slide.dark .org-kicker { color: rgba(251, 247, 240, 0.58); }

.hero-stat { font-family: var(--font-display); font-variation-settings: "opsz" 144, "SOFT" 30; font-size: 82px; line-height: 0.98; letter-spacing: -0.03em; color: var(--terra); margin-bottom: 12px; }
.hero-stat.medium { font-size: 62px; line-height: 1.03; }
.slide.dark .hero-stat { color: var(--amber); }
.hero-subhead { font-family: var(--font-display); font-variation-settings: "opsz" 144, "SOFT" 30; font-size: 29px; line-height: 1.22; color: var(--ink); margin-bottom: 22px; }
.slide.dark .hero-subhead { color: var(--cream); }

.plain-copy { font-size: 16.5px; line-height: 1.6; color: var(--body); max-width: 520px; }
.slide.dark .plain-copy { color: rgba(251, 247, 240, 0.8); }

.open-quote { padding-top: 22px; border-top: 1px solid var(--rule); }
.slide.dark .open-quote { border-top-color: var(--rule-dark); }
.open-quote p { font-family: var(--font-display); font-variation-settings: "opsz" 72, "SOFT" 30; font-size: 19px; line-height: 1.42; color: var(--ink); margin-bottom: 10px; }
.slide.dark .open-quote p { color: var(--cream); }
.open-quote .attr { font-size: 13.5px; color: var(--muted); }
.slide.dark .open-quote .attr { color: rgba(251, 247, 240, 0.56); }

/* Story layout B: big type top, two columns below */
.editorial-slide { padding: 56px 76px 56px; height: 100%; display: flex; flex-direction: column; }
.ed-top { padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.slide.dark .ed-top { border-bottom-color: var(--rule-dark); }
.ed-headline-row { display: flex; align-items: baseline; gap: 28px; margin-top: 10px; }
.ed-big { font-family: var(--font-display); font-variation-settings: "opsz" 144, "SOFT" 30; font-size: 64px; line-height: 1.02; letter-spacing: -0.03em; color: var(--terra); flex-shrink: 0; }
.slide.dark .ed-big { color: var(--amber); }
.ed-sub { font-family: var(--font-display); font-variation-settings: "opsz" 144, "SOFT" 30; font-size: 25px; line-height: 1.28; color: var(--ink); }
.slide.dark .ed-sub { color: var(--cream); }
.ed-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; flex: 1; padding-top: 34px; min-height: 0; }
.ed-col-text { display: flex; flex-direction: column; justify-content: space-between; }
.ed-col-photo { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.ed-col-photo img { width: 100%; flex: 1; min-height: 0; object-fit: cover; display: block; }

/* How the board helps */
.value-slide { padding: 64px 76px 56px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.value-header { padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.value-title { font-size: 56px; line-height: 1.06; color: var(--ink); margin-bottom: 12px; }
.value-lead { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 760px; }
.three-cols { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; flex: 1; padding-top: 42px; }
.val-col { display: flex; flex-direction: column; gap: 14px; }
.val-col .val-heading { margin-bottom: 0; }
.value-note { font-size: 16.5px; line-height: 1.5; color: var(--body); padding-bottom: 18px; }
.value-note strong { color: var(--terra); }
.value-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.value-footer img { height: 16px; width: auto; }

/* Close */
.close-title { font-size: 56px; line-height: 1.07; margin-bottom: 20px; }
.close-copy { font-size: 18px; line-height: 1.5; color: var(--cream); max-width: 610px; margin-bottom: 26px; }
.cta {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 4px;
  text-decoration: none;
}
.close-meta { margin-top: 18px; font-size: 13.5px; line-height: 1.6; color: rgba(251, 247, 240, 0.62); }
.close-meta a { color: rgba(251, 247, 240, 0.82); }
.close-print-link { display: none; }

/* ---------- Phone and small tablet: stack the slides ---------- */
@media screen and (max-width: 959px) {
  .deck { gap: 14px; padding: 12px 0 40px; }
  .slide { width: 100%; height: auto; }
  .page-num { display: none; }

  .pad-slide { padding: 32px 22px 26px; gap: 40px; }
  .boon-logo { height: 24px; }
  .cover-title { font-size: 38px; }
  .cover-sub { font-size: 18px; }
  .cover-quote { margin-top: 28px; }
  .cover-quote p { font-size: 19px; }
  .quiet-bar { font-size: 13px; flex-wrap: wrap; }

  .about-grid, .overview-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 22px; }
  .about-title { font-size: 42px; }
  .about-lead { font-size: 22px; }
  .about-left { gap: 24px; }
  .about-row { grid-template-columns: 40px 1fr; padding: 20px 0; }
  .val-num { font-size: 22px; }
  .val-heading { font-size: 21px; }

  .giant-num { font-size: 72px; }
  .overview-lead { font-size: 20px; }
  .org-row { flex-direction: column; gap: 4px; padding: 14px 0; }
  .org-name { font-size: 17px; }
  .org-result { text-align: left; font-size: 15px; }

  .split, .split.photo-narrow-right { grid-template-columns: 1fr; height: auto; }
  .split-text { padding: 32px 22px 30px; gap: 28px; height: auto; }
  .split-photo { height: 280px; order: -1; }
  .hero-stat { font-size: 54px; }
  .hero-stat.medium { font-size: 42px; }
  .hero-subhead { font-size: 23px; }
  .plain-copy { font-size: 16px; }
  .open-quote p { font-size: 18px; }

  .editorial-slide { padding: 32px 22px 30px; height: auto; }
  .ed-headline-row { flex-direction: column; gap: 8px; }
  .ed-big { font-size: 44px; flex-shrink: 1; }
  .ed-sub { font-size: 21px; }
  .ed-bottom { grid-template-columns: 1fr; gap: 26px; padding-top: 24px; }
  .ed-col-photo { order: -1; }
  .ed-col-photo img { height: 260px; flex: none; }
  .ed-col-text { gap: 26px; }

  .value-slide { padding: 36px 22px 26px; gap: 26px; }
  .value-title { font-size: 40px; }
  .value-lead { font-size: 17px; }
  .three-cols { grid-template-columns: 1fr; gap: 26px; padding-top: 28px; }

  .close-split .split-photo { height: 340px; }
  .close-split .split-photo img { object-position: 64% 18% !important; }
  .close-title { font-size: 38px; }
  .close-copy { font-size: 17px; }
}

/* ---------- Print and PDF: exact 16:9 slides ---------- */
@page { size: 1280px 720px; margin: 0; }

@media print {
  html, body { background: none !important; }
  .bar, #boon-book-fab, .bkc, .bkc-fab { display: none !important; }
  .deck { zoom: 1 !important; overflow: visible !important; gap: 0 !important; padding: 0 !important; display: block !important; }
  .slide { width: 1280px !important; height: 720px !important; margin: 0 !important; break-after: page; page-break-after: always; }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  .close-print-link { display: block; }
}

@media screen and (max-width: 959px) {
  .close-split .split-photo { order: 0; }
}

.close-text { padding: 56px 64px 46px; }
.close-bar { padding-top: 18px; }
@media screen and (max-width: 959px) {
  .close-text { padding: 32px 22px 30px; }
  .desk-br { display: none; }
}
