:root {
  --ink: #172026;
  --ink-soft: #43515a;
  --paper: #fbfaf6;
  --stone: #edf1ee;
  --teal: #0c6b63;
  --teal-dark: #064942;
  --rust: #a94e32;
  --gold: #d5a642;
  --blueprint: #163447;
  --white: #ffffff;
  --line: rgba(23, 32, 38, 0.14);
  --shadow: 0 24px 70px rgba(12, 31, 42, 0.2);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 52px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
  background:
    linear-gradient(135deg, transparent 46%, var(--gold) 47% 54%, transparent 55%),
    linear-gradient(to bottom, var(--teal) 0 100%);
  clip-path: polygon(50% 0, 96% 38%, 96% 100%, 4% 100%, 4% 38%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.site-nav a:focus-visible,
.button:focus-visible,
.launch-form input:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(213, 166, 66, 0.72);
  outline-offset: 4px;
}

.hero {
  position: relative;
  min-height: 84svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(78px, 10vw, 120px) clamp(22px, 6vw, 76px) clamp(72px, 9vw, 110px);
  color: var(--white);
  background:
    radial-gradient(circle at 76% 36%, rgba(213, 166, 66, 0.28), transparent 30%),
    linear-gradient(115deg, rgba(6, 73, 66, 0.95) 0%, rgba(22, 52, 71, 0.96) 48%, rgba(23, 32, 38, 0.98) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 76px;
  background: linear-gradient(to bottom, transparent, rgba(251, 250, 246, 0.98));
  pointer-events: none;
}

.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.house-lines {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(135deg, transparent 38%, rgba(255, 255, 255, 0.38) 38.2% 38.7%, transparent 39%),
    linear-gradient(45deg, transparent 58%, rgba(213, 166, 66, 0.48) 58.2% 58.8%, transparent 59%);
  background-size: 56px 56px, 56px 56px, 100% 100%, 100% 100%;
}

.book-visual {
  position: absolute;
  right: clamp(26px, 8vw, 130px);
  bottom: clamp(18px, 7vw, 68px);
  width: clamp(230px, 28vw, 390px);
  aspect-ratio: 2 / 3;
  transform: rotate(-4deg);
  filter: drop-shadow(0 32px 54px rgba(0, 0, 0, 0.34));
}

.book-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(3rem, 9vw, 7.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.06rem, 2vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
}

.button.primary {
  color: var(--ink);
  background: var(--gold);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #e4b957;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.intro-band {
  background: var(--paper);
  padding: clamp(52px, 8vw, 84px) clamp(22px, 5vw, 64px);
}

.intro-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(160px, 0.5fr) minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.quote-band h2,
.inside-copy h2,
.launch-copy h2 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.12;
  letter-spacing: 0;
}

.intro-grid h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.intro-grid p:last-child,
.inside-copy p,
.launch-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.content-section {
  padding: clamp(64px, 9vw, 112px) clamp(22px, 5vw, 64px);
}

.section-heading {
  max-width: var(--max-width);
  margin: 0 auto clamp(30px, 5vw, 54px);
}

.section-heading.narrow {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  max-width: 900px;
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.framework-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.framework-card,
.reader-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(23, 32, 38, 0.06);
}

.framework-card {
  min-height: 320px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.framework-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background:
    linear-gradient(90deg, currentColor 1px, transparent 1px),
    linear-gradient(currentColor 1px, transparent 1px);
  background-size: 32px 32px;
}

.framework-card.foundation {
  color: var(--teal);
}

.framework-card.pillars {
  color: var(--rust);
}

.framework-card.roof {
  color: var(--blueprint);
}

.card-number {
  position: absolute;
  top: 22px;
  left: 24px;
  color: currentColor;
  font-weight: 900;
  opacity: 0.78;
}

.framework-card h3,
.reader-card h3 {
  position: relative;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.2;
}

.framework-card p,
.reader-card p {
  position: relative;
  margin: 0;
  color: var(--ink-soft);
}

.quote-band {
  padding: clamp(72px, 12vw, 136px) clamp(22px, 5vw, 64px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(169, 78, 50, 0.9), rgba(12, 107, 99, 0.95)),
    var(--teal-dark);
}

.quote-band div {
  max-width: var(--max-width);
  margin: 0 auto;
}

.quote-band h2 {
  max-width: 950px;
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.readers-section {
  background: var(--stone);
}

.reader-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.reader-card {
  padding: 26px;
}

.inside-section {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(300px, 1.14fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.inside-copy h2,
.launch-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.inside-list {
  display: grid;
  gap: 12px;
}

.inside-item {
  display: grid;
  grid-template-columns: minmax(108px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.inside-item:first-child {
  border-top: 1px solid var(--line);
}

.inside-item span {
  color: var(--teal);
  font-weight: 900;
}

.inside-item p {
  margin: 0;
  color: var(--ink-soft);
}

.launch-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.62fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(64px, 10vw, 112px) clamp(22px, 5vw, 64px);
  background: var(--ink);
  color: var(--white);
}

.launch-copy {
  max-width: 720px;
  justify-self: end;
}

.launch-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.launch-form {
  width: min(100%, 450px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.launch-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.launch-form input {
  width: 100%;
  min-height: 46px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.launch-form input:focus-visible {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}

.launch-form input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.launch-form .button {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
  font: inherit;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(22px, 5vw, 64px);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  color: var(--teal);
}

@media (max-width: 980px) {
  .hero {
    min-height: 82svh;
  }

  .book-visual {
    right: -44px;
    bottom: 22px;
    opacity: 0.42;
  }

  .intro-grid,
  .framework-layout,
  .reader-grid,
  .inside-section,
  .launch-section {
    grid-template-columns: 1fr;
  }

  .launch-copy {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 78svh;
    padding-top: 62px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 17vw, 5.4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 320px;
  }

  .book-visual {
    width: 230px;
    right: -76px;
    bottom: 8px;
  }

  .inside-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .launch-form {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
