:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111214;
  --text: #f3f3ef;
  --muted: #b8b8af;
  --line: #2a2b2d;
  --accent: #81d742;
  --accent-strong: #ffa000;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar,
.brand-row,
.primary-nav,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.topbar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.topbar a:hover,
.primary-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.brand-row {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  font-family: Michroma, Helvetica, Arial, sans-serif;
  font-size: 26px;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 3px 2px 4px var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
}

.primary-nav {
  min-height: 48px;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
}

.primary-nav a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  border-top: 2px solid transparent;
}

.primary-nav a[aria-current="page"] {
  color: var(--text);
  border-top-color: var(--accent);
}

main {
  min-height: calc(100vh - 240px);
}

.book-hero,
.standard-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
}

.book-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.book-cover-wrap {
  display: flex;
  justify-content: center;
  width: min(100%, 380px);
  aspect-ratio: 5 / 8;
  justify-self: center;
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.book-copy {
  max-width: 620px;
}

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

h1,
h2 {
  font-family: Michroma, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.18;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(34px, 5vw, 58px);
}

h2 {
  margin: 36px 0 12px;
  font-size: 22px;
}

p {
  margin: 0 0 18px;
}

.reviews {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
}

blockquote {
  margin: 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  color: var(--muted);
}

blockquote p {
  margin-bottom: 8px;
}

cite {
  color: var(--text);
  font-style: normal;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #101010;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: transparent;
  color: var(--accent);
}

.split-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: center;
}

.page-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.site-footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 780px) {
  .topbar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .brand-row {
    min-height: 68px;
  }

  .site-title {
    font-size: 20px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .primary-nav {
    display: none;
    min-height: 0;
    padding-bottom: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    min-height: 42px;
    padding: 0;
    border-top: 0;
  }

  .book-hero,
  .split-page {
    grid-template-columns: 1fr;
  }

  .book-hero,
  .standard-page {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .book-cover {
    max-height: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
