:root {
  --paper: #fff6e8;
  --paper-2: #fffdf8;
  --ink: #111111;
  --yellow: #ffe24a;
  --red: #ff6a3d;
  --mint: #73e2b1;
  --blue: #85a8ff;
  --line: 4px solid var(--ink);
  --shadow: 10px 10px 0 var(--ink);
  --font-display: "Arial Black", "Arial Bold", Arial, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 226, 74, 0.3), transparent 40%),
    linear-gradient(315deg, rgba(115, 226, 177, 0.25), transparent 35%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

a {
  color: inherit;
}

.landing-shell,
.book-shell {
  width: min(1380px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.hero-card,
.tile,
.chapter-strip,
.book-side,
.book-article,
.license-strip {
  border: var(--line);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 320px;
  gap: 24px;
  padding: 28px;
  margin-bottom: 28px;
  background:
    linear-gradient(90deg, transparent 0 72%, var(--yellow) 72%),
    var(--paper-2);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 3px solid var(--ink);
  background: var(--red);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

.hero-copy h1,
.book-side h1 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.9;
  text-transform: uppercase;
}

.book-side h1 {
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 0.88;
  overflow-wrap: anywhere;
}

.lead,
.side-summary {
  max-width: 42rem;
  margin-bottom: 22px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.15;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-action,
.secondary-action,
.back-link {
  display: inline-block;
  padding: 14px 18px;
  border: var(--line);
  font-family: var(--font-display);
  font-size: 15px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--ink);
}

.primary-action {
  background: var(--yellow);
}

.secondary-action,
.back-link {
  background: var(--blue);
}

.hero-note,
.side-box {
  padding: 18px;
  border: 3px solid var(--ink);
  background: var(--mint);
}

.hero-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.hero-note strong,
.side-box strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.hero-note span,
.side-box span {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.tile {
  min-height: 290px;
  padding: 22px;
}

.tile span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border: 3px solid var(--ink);
  background: var(--paper-2);
  font-family: var(--font-display);
  font-size: 20px;
}

.tile h2,
.chapter-head h2 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 0.95;
  text-transform: uppercase;
}

.tile p,
.chapter-list div,
.book-article p,
.book-article li,
.license-strip p,
.license-strip li {
  font-size: 20px;
  line-height: 1.45;
}

.yellow {
  background: var(--yellow);
}

.mint {
  background: var(--mint);
}

.red {
  background: var(--red);
}

.chapter-strip {
  padding: 24px;
  background: var(--ink);
  color: var(--paper-2);
}

.chapter-head .eyebrow {
  background: var(--yellow);
}

.chapter-head h2 {
  color: var(--yellow);
}

.chapter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.chapter-list div {
  padding: 14px 16px;
  border: 3px solid var(--paper-2);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.book-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.back-link {
  grid-column: 1 / -1;
  width: fit-content;
  margin-bottom: 4px;
}

.book-side {
  position: sticky;
  top: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    linear-gradient(180deg, var(--yellow) 0 20%, var(--paper-2) 20%),
    var(--paper-2);
}

.book-article {
  padding: 28px 34px 40px;
}

.book-article h1 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.94;
  text-transform: uppercase;
}

.book-article > h1:first-child {
  display: none;
}

.book-article h2 {
  margin: 40px 0 16px;
  padding: 12px 14px;
  border: var(--line);
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  text-transform: uppercase;
}

.book-article h3 {
  display: inline-block;
  margin: 28px 0 14px;
  padding: 8px 12px;
  border: 3px solid var(--ink);
  background: var(--mint);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  text-transform: uppercase;
}

.book-article p {
  max-width: 44rem;
  margin-bottom: 16px;
}

.book-article ul,
.book-article ol {
  max-width: 42rem;
  margin: 0 0 18px;
  padding-left: 24px;
}

.book-article li + li {
  margin-top: 8px;
}

.book-article code {
  padding: 2px 6px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-family: "Courier New", monospace;
  font-size: 0.95em;
}

.license-strip {
  width: min(1380px, calc(100vw - 32px));
  margin: 0 auto 40px;
  padding: 20px 24px;
  background: var(--blue);
}

.license-strip h1,
.license-strip h2,
.license-strip h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .hero-card,
  .grid,
  .book-shell {
    grid-template-columns: 1fr;
  }

  .book-side {
    position: static;
  }

  .chapter-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --shadow: 4px 4px 0 var(--ink);
    --line: 3px solid var(--ink);
  }

  .landing-shell,
  .book-shell,
  .license-strip {
    width: calc(100vw - 20px);
    padding-top: 10px;
  }

  .hero-card,
  .book-article,
  .chapter-strip,
  .tile,
  .book-side,
  .license-strip {
    padding: 18px;
  }

  .hero-card {
    background: var(--paper-2);
  }

  .tile p,
  .chapter-list div,
  .book-article p,
  .book-article li,
  .license-strip p,
  .license-strip li {
    font-size: 18px;
  }
}
