:root {
  --page-background: linear-gradient(180deg, #060707 0%, #0a0d10 38%, #030303 100%);
  --panel-background: linear-gradient(180deg, rgba(12, 16, 19, 0.92) 0%, rgba(7, 9, 11, 0.94) 100%);
  --panel-border: rgba(255, 255, 255, 0.1);
  --card-background: linear-gradient(135deg, #12181c 0%, #1f2a33 100%);
  --card-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --text-primary: #f8f5ef;
  --text-secondary: rgba(248, 245, 239, 0.8);
  --text-inverse: #f8f5ef;
  --accent: #f4c16d;
  --accent-strong: #ffd48a;
  --outline: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: #070808;
}

body.site-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 12% 14%, rgba(244, 193, 109, 0.12), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(90, 122, 146, 0.18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(26, 39, 49, 0.45), transparent 42%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.02), transparent 32%),
    var(--page-background);
}

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

.book-card {
  backdrop-filter: blur(16px);
}

.site-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 0 0.5rem;
}

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

.brand-lockup-hero {
  width: fit-content;
}

.brand-logo {
  width: clamp(3.4rem, 7vw, 4.8rem);
  height: auto;
  filter: brightness(0) invert(1);
}

.brand-lockup-hero .brand-logo {
  width: clamp(10.5rem, 18vw, 14rem);
}

.brand-name {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy {
  width: min(100%, 980px);
}

.eyebrow,
.card-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.site-page h1,
.site-page h2,
.site-page h3,
.site-page p {
  margin-top: 0;
}

.site-page h1 {
  font-size: clamp(2.9rem, 8vw, 5.8rem);
  line-height: 0.94;
  margin-bottom: 1.3rem;
  max-width: 13ch;
}

.site-page h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 0;
}

.site-page h3 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text,
.book-card p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.hero-text.secondary {
  max-width: 56rem;
}

.hero-text a {
  color: var(--accent);
  font-weight: 700;
  text-decoration-color: rgba(244, 193, 109, 0.55);
  text-underline-offset: 0.18em;
}

.hero-text a:hover,
.hero-text a:focus-visible {
  color: var(--accent-strong);
}

.books-section {
  padding: 3rem 0 1rem;
}

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

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.book-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 28px;
  background: var(--card-background);
  color: var(--text-inverse);
  box-shadow: var(--card-shadow);
}

.book-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.book-card p,
.book-card .card-kicker {
  color: rgba(248, 245, 239, 0.88);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #172028;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.button-link:hover,
.button-link:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-strong);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.site-footer {
  margin-top: 2rem;
  padding: 0.4rem 0 0;
}

.site-footer p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-page-404 {
  display: grid;
  place-items: center;
}

.site-shell-404 {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.not-found-panel {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 0 0.5rem;
}

.site-page-404 h1 {
  max-width: 12ch;
}

.site-footer-404 {
  text-align: left;
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 1rem, 1120px);
    padding: 0.75rem 0 1.5rem;
  }

  .site-hero,
  .book-card,
  .site-footer {
    border-radius: 24px;
  }

  .site-hero,
  .book-card {
    padding: 1.5rem;
  }

  .site-hero {
    gap: 1.75rem;
    padding: 1.5rem 0 0.25rem;
  }

  .not-found-panel {
    gap: 1.25rem;
    padding: 1.5rem 0 0.25rem;
  }

  .brand-lockup-hero .brand-logo {
    width: clamp(8.5rem, 34vw, 10.5rem);
  }

  .site-page h1 {
    max-width: none;
  }
}