/* Theme */
:root {
  color-scheme: light dark;
  --ink: #152a3c;
  --muted: #536679;
  --page: #f2f4f3;
  --surface: #ffffff;
  --surface-alt: #e9edef;
  --line: #c8d1d7;
  --navy: #081625;
  --navy-raised: #0e2235;
  --navy-soft: #18334a;
  --paper: #f3f6f8;
  --paper-muted: #c8d5df;
  --orange: #ff9a43;
  --orange-dark: #9d4b0b;
  --orange-soft: #ffe3cb;
  --shadow: 0 24px 60px rgb(5 18 30 / 18%);
  --radius: 18px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf3f6;
    --muted: #aec0cd;
    --page: #07131f;
    --surface: #0d1f2f;
    --surface-alt: #13283a;
    --line: #29445a;
    --orange-dark: #ffb06e;
    --orange-soft: #3a2518;
    --shadow: 0 24px 60px rgb(0 0 0 / 30%);
  }
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-weight: 700;
  line-height: 1.04;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.15rem, 5vw, 4rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
}

.shell {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.shell[id] {
  scroll-margin-top: 5.5rem;
}

/* Navigation */
.page-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid #243b50;
  background: rgb(8 22 37 / 94%);
  color: var(--paper);
  backdrop-filter: blur(12px);
}

.page-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1.5rem;
}

.nav-brand {
  flex: 0 0 auto;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex: 0 0 auto;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  color: var(--paper-muted);
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--navy-soft);
  color: var(--paper);
}

/* Shared components */
.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(115deg, rgb(255 154 67 / 8%), transparent 32%),
    radial-gradient(circle at 84% 80%, rgb(106 145 174 / 18%), transparent 34%),
    var(--navy);
  color: var(--paper);
}

.hero::after {
  position: absolute;
  right: -8rem;
  bottom: -11rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgb(171 195 213 / 13%);
  border-radius: 50%;
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.hero .eyebrow {
  color: #ffb16d;
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 1.15rem;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.promise {
  max-width: 840px;
  margin-bottom: 1.1rem;
  color: var(--paper);
  font-size: clamp(1.22rem, 2.6vw, 1.75rem);
  line-height: 1.42;
}

.audience {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--paper-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero .button-outline {
  border-color: #ffb16d;
  color: #ffb16d;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.78rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--orange);
  color: #21150d;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(0 0 0 / 20%);
}

.button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #72b7e8;
  outline-offset: 4px;
}

.button-dark {
  background: var(--navy);
  color: var(--paper);
}

.button-outline {
  border-color: var(--orange);
  background: transparent;
  color: var(--orange-dark);
}

/* Page sections */
.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section-lead {
  max-width: 720px;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}

.editions-grid > *,
.contents-grid > *,
.excerpt-grid > * {
  min-width: 0;
}

.edition {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cover-stage {
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 7%), transparent),
    var(--navy-raised);
}

.cover-stage img {
  width: min(100%, 8.5rem);
  border-radius: 2px;
  box-shadow: 0 18px 36px rgb(0 0 0 / 38%);
}

.edition-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 1.8rem);
}

.edition-name {
  margin-bottom: 0.3rem;
}

.price {
  margin-bottom: 0.85rem;
  color: var(--orange-dark);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
}

.edition-copy p:last-of-type {
  margin-bottom: 1.2rem;
}

.edition-copy .button {
  align-self: flex-start;
  margin-top: auto;
}

.contents {
  background: var(--navy);
  color: var(--paper);
}

.contents .eyebrow {
  color: #ffb16d;
}

.contents .section-lead {
  color: var(--paper-muted);
}

.contents-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr 0.85fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #345069;
  border-radius: var(--radius);
  background: #345069;
}

.contents-card {
  padding: clamp(1.35rem, 3vw, 2.1rem);
  background: var(--navy-raised);
}

.contents-card h3 {
  color: var(--paper);
}

.contents-card ul,
.contents-card ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--paper-muted);
}

.contents-card li + li {
  margin-top: 0.4rem;
}

.excerpt-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.excerpt-copy {
  max-width: 700px;
  font-size: 1.08rem;
}

.excerpt-quote {
  position: relative;
  margin: 0;
  padding-left: 2.25rem;
  border-left: 3px solid var(--orange);
}

.excerpt-quote::before {
  position: absolute;
  top: -0.55rem;
  left: 0.55rem;
  color: var(--orange);
  content: "“";
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
}

.excerpt-source {
  display: block;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.closing-quote {
  display: block;
  height: 1.5rem;
  margin-top: 0.65rem;
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
  text-align: right;
}

.result-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.result-card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.result-card:last-child {
  border-color: color-mix(in srgb, var(--orange) 55%, var(--line));
}

.result-label {
  margin-bottom: 0.65rem;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-card p:last-child {
  margin-bottom: 0;
}

.team {
  background:
    linear-gradient(110deg, rgb(255 154 67 / 12%), transparent 45%),
    var(--navy-raised);
  color: var(--paper);
}

.team-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.team .eyebrow {
  color: #ffb16d;
}

.team h2 {
  margin-bottom: 0.5rem;
}

.team-price {
  margin-bottom: 1rem;
  color: var(--orange);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.team p:not(.eyebrow):not(.team-price) {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--paper-muted);
}

.author {
  max-width: var(--max);
}

.author p:last-child {
  max-width: 45rem;
  margin-bottom: 0;
  font-size: 1.12rem;
}

.faq {
  background: var(--surface-alt);
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding-block: 1.3rem;
  cursor: pointer;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  flex: 0 0 0.8rem;
  color: var(--orange-dark);
  content: "▸";
  font-family: sans-serif;
  font-size: 0.82rem;
}

details[open] > summary::before {
  content: "▾";
}

details p,
details ul {
  max-width: 850px;
  margin: 0 0 1.4rem 1.25rem;
  color: var(--muted);
}

.consulting {
  background: var(--navy);
  color: var(--paper);
}

.consulting-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.consulting .eyebrow {
  color: #ffb16d;
}

.consulting h2 {
  margin-bottom: 1rem;
}

.consulting p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--paper-muted);
}

footer {
  padding-block: 1.25rem;
  background: #040c13;
  color: #91a8b9;
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

/* Responsive layout */
@media (max-width: 800px) {
  .editions-grid,
  .contents-grid,
  .excerpt-grid,
  .result-flow,
  .team-inner,
  .consulting-inner {
    grid-template-columns: 1fr;
  }

  .team-inner,
  .consulting-inner {
    align-items: start;
  }
}

@media (max-width: 720px) {
  .page-nav-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding-top: 0.55rem;
  }

  .nav-links {
    margin-inline: -0.3rem;
    padding-bottom: 0.45rem;
  }

  .shell[id] {
    scroll-margin-top: 7rem;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .hero h1 {
    font-size: clamp(3.35rem, 18vw, 5rem);
  }

  .nav-links a {
    padding: 0.4rem 0.42rem;
    font-size: 0.73rem;
  }

  .edition {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .cover-stage {
    padding: 0.8rem;
  }

  .edition-copy .button,
  .team .button,
  .consulting .button {
    width: 100%;
  }

  details p,
  details ul {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
