:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #5f6670;
  --paper: #f8f9fc;
  --panel: #ffffff;
  --line: #d9dee8;
  --accent: #df6b2d;
  --accent-strong: #5b4263;
  --shadow: 0 24px 60px rgba(28, 20, 32, 0.18);
}

* {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(248, 249, 252, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a,
.site-footer a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 560px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 72px);
  gap: clamp(32px, 6vw, 88px);
  background:
    linear-gradient(140deg, rgba(91, 66, 99, 0.14), transparent 42%),
    linear-gradient(20deg, rgba(223, 107, 45, 0.16), transparent 46%),
    var(--paper);
}

.hero-copy {
  max-width: 680px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

h1 {
  max-width: 720px;
  font-size: clamp(52px, 9vw, 112px);
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
}

h3 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.dek {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: white;
}

.hero-media {
  justify-self: center;
  min-width: 0;
  width: min(100%, 560px);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  min-width: 0;
}

.intro,
.author {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
}

.copy-stack {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
  min-width: 0;
  max-width: 100%;
}

.copy-stack p,
.proof-band p {
  margin: 0;
}

.copy-stack .button {
  width: fit-content;
  margin-top: 6px;
}

.proof-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: clamp(28px, 6vw, 72px);
  background: #2b2530;
  color: white;
}

.hero > *,
.intro > *,
.proof-band > *,
.author > *,
.chapter-grid > * {
  min-width: 0;
}

.proof-band .eyebrow,
.proof-band p {
  color: #eee5f2;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

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

.chapter-grid article {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(23, 23, 23, 0.07);
}

.chapter-grid span {
  display: inline-flex;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.chapter-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.author {
  align-items: center;
  background: var(--panel);
}

.author-photo {
  justify-self: center;
  width: min(100%, 420px);
}

.author-photo img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .intro,
  .proof-band,
  .author {
    grid-template-columns: 1fr;
  }

  .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }

  nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .hero,
  .section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-copy,
  .intro > div,
  .author > div,
  .copy-stack,
  .section-heading,
  .proof-band > div,
  .feature-list,
  .chapter-grid {
    width: 100%;
    max-width: min(300px, calc(100vw - 48px));
  }

  .actions,
  .hero-media {
    max-width: min(342px, calc(100vw - 48px));
  }

  h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  h2 {
    font-size: 28px;
    line-height: 1.12;
  }

  .dek {
    max-width: 100%;
    font-size: 18px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .chapter-grid article {
    min-height: auto;
  }
}
