*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--site-background);
  color: var(--site-text);
  font-family: var(--site-body-font);
  line-height: 1.6;
}

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

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

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--site-background) 80%, transparent);
  border-bottom: 1px solid var(--site-border);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand strong,
.page-intro h1,
.section-heading h2,
.feature-copy h2,
.callout h2,
.timeline-item h3,
.book-card h3,
.panel h3,
.panel h2,
.list-card h3 {
  font-family: var(--site-heading-font);
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  color: var(--site-muted);
  font-size: 0.78rem;
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  color: #fff;
  font-weight: 700;
}

.brand-logo {
  overflow: hidden;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--site-muted);
  font-size: 0.95rem;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--site-text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: var(--site-surface);
  color: var(--site-text);
  padding: 0.65rem 1rem;
}

.site-main {
  padding-block: 3rem 4rem;
}

.page-intro {
  padding-block: 1rem 2rem;
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 0.96;
  margin: 0;
}

.page-summary,
.lead,
.body-copy,
.callout p,
.list-card p,
.panel p {
  color: var(--site-muted);
}

.page-summary {
  max-width: 52rem;
  margin-top: 1rem;
  font-size: 1.05rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--site-primary);
  margin-bottom: 0.85rem;
}

.section-block {
  margin-top: 2rem;
}

.panel {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: 1.6rem;
  padding: 1.6rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.narrow-panel {
  max-width: 52rem;
}

.hero-section,
.feature-book,
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-section {
  min-height: 26rem;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
  margin: 0;
}

.hero-copy .lead {
  font-size: 1.1rem;
  margin-top: 1.1rem;
  max-width: 34rem;
}

.hero-image,
.book-cover,
.portrait-image,
.cover-fit {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 1px solid var(--site-border);
}

.book-cover {
  max-width: 320px;
  margin-inline: auto;
  aspect-ratio: 0.72;
}

.portrait-image {
  aspect-ratio: 0.84;
}

.review-line,
.subtitle,
.meta-line,
.quote-meta span {
  color: var(--site-muted);
}

.button-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: var(--site-primary);
  color: #fff;
  font-weight: 600;
}

.site-button.secondary {
  background: transparent;
  color: var(--site-text);
  border: 1px solid var(--site-border);
}

body.button-square .site-button {
  border-radius: 0.6rem;
}

body.button-soft-pill .site-button {
  border-radius: 1rem;
}

body.header-centered .site-header .shell {
  flex-direction: column;
  align-items: center;
  padding-block: 1rem;
}

body.header-centered .brand {
  flex-direction: column;
  text-align: center;
}

body.header-minimal .brand small,
body.header-minimal .brand-mark {
  display: none;
}

body.footer-centered .footer-grid,
body.footer-centered .footer-bottom {
  justify-content: center;
  text-align: center;
}

.section-heading {
  margin-bottom: 1.1rem;
}

.section-heading h2,
.feature-copy h2,
.callout h2,
.panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.quote-grid,
.card-grid,
.book-grid,
.timeline {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stack-list {
  display: grid;
  gap: 1rem;
}

.quote-text {
  font-size: 1.05rem;
  line-height: 1.7;
}

.quote-meta {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--site-border);
}

.timeline-year {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--site-surface-strong);
  color: var(--site-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.list-card,
.product-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.list-card-copy {
  flex: 1;
}

.callout {
  text-align: center;
  padding: 2.5rem;
}

.callout.dark {
  background: var(--site-text);
  color: #fff;
}

.callout.dark p {
  color: rgba(255, 255, 255, 0.78);
}

.callout.accent {
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
  color: #fff;
}

.callout.accent p {
  color: rgba(255, 255, 255, 0.82);
}

.image-placeholder,
.cover-placeholder {
  min-height: 16rem;
  border-radius: 1.2rem;
  border: 1px dashed var(--site-border);
  background: var(--site-surface-strong);
  color: var(--site-muted);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.cover-placeholder.compact {
  min-height: 14rem;
}

.site-footer {
  border-top: 1px solid var(--site-border);
  padding-block: 2rem;
}

.footer-grid,
.footer-links {
  display: grid;
  gap: 1rem;
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--site-border);
  color: var(--site-muted);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .hero-section,
  .feature-book,
  .two-column,
  .footer-grid,
  .quote-grid,
  .card-grid,
  .book-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--site-border);
    background: var(--site-surface);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .footer-bottom,
  .site-header .shell {
    flex-direction: column;
    align-items: flex-start;
  }
}