:root {
  --ink: #11141d;
  --muted: #616b7d;
  --dim: #9098a6;
  --paper: #f7f8fb;
  --white: #ffffff;
  --soft: #eef1f5;
  --blue: #1477ee;
  --blue-deep: #0f63d8;
  --ollie-green: #b7ef18;
  --ollie-green-dark: #5c9014;
  --orange: #ff7a14;
  --navy: #08111f;
  --line: #dbe1ea;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  background: var(--paper);
}

.publication {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.page {
  min-height: 100vh;
  padding: clamp(34px, 6vw, 86px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 79% 22%, rgba(20, 119, 238, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 91% 36%, rgba(255, 122, 20, 0.16) 0 2px, transparent 3px);
  background-size: 100% 100%;
}

.page > * {
  position: relative;
  z-index: 1;
}

h1,
h2 {
  margin: 0;
  max-width: 980px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  font-size: clamp(4.2rem, 12vw, 9.8rem);
}

h2 {
  font-size: clamp(2.7rem, 7vw, 6.8rem);
}

p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.42rem);
}

img {
  max-width: 100%;
  display: block;
}

.eyebrow,
.chapter-label {
  margin-bottom: 28px;
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chapter-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chapter-label span {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--blue);
}

.brandbar {
  position: absolute;
  top: clamp(30px, 4vw, 52px);
  left: clamp(34px, 6vw, 86px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.wordmark {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
}

.wordmark::first-letter {
  color: var(--blue);
}

.dek {
  margin-top: 32px;
  max-width: 610px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.cover-ollie {
  position: absolute;
  right: clamp(26px, 7vw, 92px);
  bottom: clamp(22px, 4vw, 56px);
  width: min(38vw, 390px);
  filter: drop-shadow(0 28px 70px rgba(183, 239, 24, 0.2));
}

.quote-page h2 {
  max-width: 1040px;
}

.memory-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.memory-list span,
.principle-list span,
.cost-stack div,
.system-grid div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.memory-list span {
  min-height: 78px;
  padding: 20px;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
}

.closing-line {
  margin-top: 44px;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.split-page {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(38px, 8vw, 100px);
  align-items: center;
}

.argument {
  display: grid;
  gap: 24px;
}

.argument .strong {
  color: var(--ink);
  font-size: clamp(1.3rem, 2vw, 1.85rem);
}

.diagram-page,
.layer-page,
.framework-page {
  gap: 34px;
}

.diagram-page img,
.layer-page img,
.framework-page img {
  width: min(100%, 860px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.note {
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.text-page {
  gap: 42px;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.large-line,
.final-line {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(1.9rem, 4.2vw, 4rem);
  line-height: 1.06;
}

.cost-page {
  gap: 32px;
}

.cost-stack {
  width: min(760px, 100%);
  display: grid;
  gap: 10px;
}

.cost-stack div {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
}

.cost-stack span {
  color: var(--blue);
  font-weight: 800;
  min-width: 36px;
}

.systems-page {
  gap: 36px;
}

.system-grid {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.system-grid div {
  min-height: 132px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.system-grid strong {
  font-size: 1.5rem;
  color: var(--blue);
}

.system-grid span {
  color: var(--muted);
}

.ai-page,
.executive-page,
.closing-page {
  gap: 34px;
}

.workforce-page {
  gap: 36px;
}

.principle-list {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.principle-list span {
  min-height: 112px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 760;
}

.ollie-page {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: clamp(36px, 8vw, 98px);
  align-items: center;
}

.ollie-page div {
  display: grid;
  gap: 24px;
}

.ollie-page img {
  width: 100%;
}

.ollie-page .true-ollie {
  border: 0;
  filter: drop-shadow(0 18px 38px rgba(183, 239, 24, 0.25)) drop-shadow(0 22px 64px rgba(63, 124, 255, 0.18));
}

.framework-page ol {
  margin: 0;
  padding-left: 24px;
  columns: 2;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.35rem);
}

.framework-page li {
  margin-bottom: 12px;
  break-inside: avoid;
}

.closing-stack {
  display: grid;
  gap: 10px;
  width: min(680px, 100%);
}

.closing-stack span {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cover-page h1 em,
.systems-page .large-line,
.executive-page .large-line {
  color: var(--blue);
  font-style: normal;
}

.quote-page,
.layer-page {
  background: var(--blue);
}

.quote-page .eyebrow,
.layer-page .eyebrow,
.quote-page p,
.layer-page p {
  color: rgba(255, 255, 255, 0.78);
}

.quote-page h2,
.layer-page h2,
.quote-page .closing-line {
  color: var(--white);
}

.split-page,
.text-page,
.systems-page,
.executive-page {
  background: var(--white);
}

.diagram-page,
.cost-page,
.workforce-page,
.framework-page {
  background: var(--soft);
}

.ollie-page {
  background:
    radial-gradient(circle at 77% 45%, rgba(183, 239, 24, 0.22), transparent 28%),
    var(--paper);
}

.closing-page {
  background: var(--orange);
  text-align: center;
  align-items: center;
}

.closing-page .eyebrow,
.closing-page p,
.closing-page h2,
.closing-page .final-line,
.closing-page .closing-stack span {
  color: var(--ink);
}

.closing-page h2 {
  max-width: 1000px;
}

.closing-page .closing-stack {
  margin-inline: auto;
}

.closing-page .closing-stack span {
  border-bottom-color: rgba(17, 20, 29, 0.25);
}

@media screen and (max-width: 820px) {
  .page {
    min-height: auto;
    padding: 44px 24px;
  }

  .cover-ollie {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(72vw, 270px);
    margin-top: 48px;
  }

  .split-page,
  .ollie-page,
  .columns {
    grid-template-columns: 1fr;
  }

  .memory-list,
  .system-grid,
  .principle-list {
    grid-template-columns: 1fr 1fr;
  }

  .framework-page ol {
    columns: 1;
  }
}

@media screen and (max-width: 520px) {
  .memory-list,
  .system-grid,
  .principle-list {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0;
  }

  html,
  body {
    background: var(--paper);
  }

  .publication {
    width: 100%;
  }

  .page {
    width: 8.5in;
    min-height: 11in;
    height: 11in;
    break-after: page;
    border-bottom: 0;
    overflow: hidden;
  }

  h1 {
    font-size: 58pt;
  }

  h2 {
    font-size: 42pt;
  }

  p {
    font-size: 15pt;
  }

  .cover-ollie {
    position: absolute;
    width: 3.1in;
    right: 0.62in;
    bottom: 0.36in;
    margin-top: 0;
  }
}
