/* Local redesign pass for the existing AI Won't Save You journey.
   Keep the current copy, assets, ScrollCraft scene, and checkout wiring. */
:root {
  --paper: #f0eee7;
  --paper-deep: #e5e2d9;
  --ink: #171a19;
  --ink-soft: #454b49;
  --red: #d43c2c;
  --red-deep: #a62d21;
  --steel: #173441;
  --steel-light: #244956;
  --sun: #f0bd68;
  --line: #c9c7bd;
  --gutter: clamp(22px, 6vw, 96px);
  --sc-canvas: var(--paper);
  --sc-surface: var(--paper-deep);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--red);
  --sc-accent-ink: #fff;
  --sc-font-display: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --sc-font-text: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

html { scroll-padding-top: 82px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sc-font-text);
  text-rendering: optimizeLegibility;
}
::selection { color: var(--ink); background: var(--sun); }
body, button { font-kerning: normal; }
p { max-width: 68ch; }
h2 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: .99; letter-spacing: -.045em; }
h3 { letter-spacing: -.035em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline-color: var(--sun);
  outline-offset: 4px;
}

.masthead {
  color: #f5f3ec;
  background: var(--steel);
  border-color: #ffffff2b;
  padding-block: 12px;
  backdrop-filter: none;
}
.author-mark { letter-spacing: .025em; }
.author-mark span { color: #d7dedb; letter-spacing: .06em; }
nav { gap: clamp(15px, 2.4vw, 36px); }
nav a { color: #f5f3ec; }
nav a:hover { color: var(--sun); }
.nav-cta {
  color: var(--ink);
  background: var(--sun);
  padding-inline: 19px;
  font-weight: 700;
}
.nav-cta:hover { color: var(--ink); background: #f7cf8b; text-decoration: none; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(770px, calc(100svh - 64px));
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
  padding-top: clamp(48px, 7vh, 92px);
  padding-bottom: clamp(50px, 7vh, 92px);
  color: #f6f4ed;
  background: var(--steel);
  overflow: clip;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 59%;
  width: 1px;
  background: #ffffff24;
}
.hero-copy { padding: 0; animation: hero-copy-in 760ms cubic-bezier(.2,.8,.2,1) both; }
.eyebrow {
  color: #e1e7e4;
  font-size: .69rem;
  letter-spacing: .075em;
  margin-bottom: clamp(24px, 4vh, 44px);
}
.eyebrow > span { width: 8px; height: 8px; background: var(--sun); }
.hero h1 {
  max-width: 10ch;
  color: #f6f4ed;
  font-size: clamp(4.2rem, 8vw, 8rem);
  line-height: .87;
  letter-spacing: -.065em;
  font-weight: 850;
}
.hero h1 > span { white-space: normal; }
.hero h1 .red { color: var(--sun); }
.hero-subtitle {
  max-width: 25ch;
  color: #f6f4ed;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.35;
  margin: 28px 0 12px;
}
.hero-promise { max-width: 49ch; color: #d2dcda; margin-bottom: 30px; }
.hero .button {
  min-height: 56px;
  gap: 30px;
  padding: 15px 22px;
  color: #fff;
  background: var(--red);
}
.hero .button:hover { background: #ed4e3c; box-shadow: 0 9px 24px #081f2870; }
.hero .secondary-action { color: #f6f4ed; border-color: #91a2a4; }
.hero .secondary-action:hover { color: var(--sun); border-color: var(--sun); }
.hero-note { color: #cfdbd8; }
.hero-object {
  min-height: 0;
  align-self: stretch;
  justify-content: center;
  padding: clamp(24px, 4vw, 54px) 26px;
  background: transparent;
  overflow: visible;
  animation: hero-book-in 920ms cubic-bezier(.2,.8,.2,1) 100ms both;
}
.hero-object::before {
  z-index: -1;
  inset: 7% -8% 7% 0;
  background: var(--steel-light);
  transform: none;
}
.object-label { color: #e8ece8; margin-bottom: 20px; }
.hero-cover { width: min(78%, 330px); }
.hero-cover img {
  box-shadow: 18px 26px 46px #08182079, 0 0 0 1px #ffffff28;
}
.object-caption { color: #e8ece8; font-size: .78rem; }
.object-caption strong { color: var(--sun); }

.proof-strip {
  background: var(--paper);
  padding-block: 22px;
  border-color: var(--line);
}
.proof-strip p { color: var(--ink-soft); }
.proof-strip strong { color: var(--red); font-size: 1.65rem; }
.wrap { padding-top: clamp(76px, 9vw, 132px); padding-bottom: clamp(76px, 9vw, 132px); }
.small-label { color: #5a6562; letter-spacing: .065em; font-size: .68rem; }
.recognition-grid { gap: 11%; }
.recognition-grid h2 { max-width: 12ch; margin-bottom: 28px; }
.recognition-grid p:not(.small-label) { color: var(--ink-soft); }
.judgment-photo img { height: clamp(300px, 38vw, 500px); }
.judgment-photo figcaption { color: var(--ink-soft); }
.outcomes { gap: clamp(24px, 4vw, 62px); margin-top: clamp(44px, 6vw, 78px); }
.outcome-index { color: var(--red-deep); }
.outcomes h3 { font-size: clamp(1.45rem, 2.1vw, 2rem); }
.outcomes p { color: var(--ink-soft); }

.amplify { background: var(--ink); }
.amplify-stage { min-height: 650px; padding: 100px var(--gutter) 64px; }
.amplify-top .small-label { color: #d4d8d2; }
.amplify legend { color: #f3f2eb; }
.amplify button { border-color: #9aa8a3; border-radius: 999px; padding-inline: 18px; }
.amplify button[aria-pressed="true"] { color: var(--ink); background: var(--sun); border-color: var(--sun); }
.amplify button:hover { border-color: var(--sun); }
.word-field { inset: 24% 0 34%; }
.word-field span {
  font-size: clamp(3rem, 11vw, 10rem);
  letter-spacing: -.07em;
  font-weight: 850;
}
.echo { color: #6e8583; }
.core-word { color: var(--sun); }
.amplify-resolution { background: var(--ink); }
.amplify-resolution h2 { font-size: clamp(2.7rem, 5.5vw, 5.6rem); }
.amplify-resolution h2 span { color: var(--sun); }
.amplify-resolution p { color: #d7dedb; }
.dark-link { color: #f6f4ed; }
.dark-link:hover { color: var(--sun); }

.section-heading { gap: 10%; margin-bottom: clamp(34px, 5vw, 60px); }
.section-heading h2 { max-width: 13ch; }
.section-heading > p { color: var(--ink-soft); }
.included { gap: clamp(24px, 4vw, 58px); padding-block: 34px 44px; }
.included-number { color: var(--red); font-size: 3.8rem; }
.included h3 { font-size: 1.35rem; }
.included p { color: var(--ink-soft); }
.chapter-list details, .faq-list details { border-color: var(--line); }
.chapter-list summary, .faq-list summary { min-height: 64px; }
.chapter-list summary:hover, .faq-list summary:hover { color: var(--red-deep); }
.chapter-list summary span { color: #697270; }
.chapter-list details p, .faq-list p { color: var(--ink-soft); }
.field-note { padding: clamp(26px, 3vw, 40px); background: #e2dfd5; }
.field-note h3 { font-size: 1.9rem; }
.field-note p:not(.small-label) { color: var(--ink-soft); }
.field-note .field-credit { border-color: #c4c2b7; }
.text-link { text-underline-offset: 5px; }
.text-link:hover { color: var(--red-deep); }

.excerpt {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--red-deep);
}
.excerpt::after {
  content: "“";
  position: absolute;
  top: -1.35em;
  right: 3vw;
  color: #ffffff13;
  font: 36rem/1 Georgia, serif;
  pointer-events: none;
}
.excerpt-heading, .quote-wrap { position: relative; z-index: 1; }
.excerpt-heading .small-label { color: #fff0e8; }
.quote-wrap h2 {
  max-width: 20ch;
  font-family: Charter, Georgia, serif;
  font-size: clamp(2.55rem, 5.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 500;
}
.excerpt-bottom { margin-top: clamp(38px, 5vw, 65px); }
.button-light { color: var(--ink); background: var(--paper); }
.button-light:hover { background: #fff; }

.author { background: var(--paper-deep); max-width: none; }
.author > .small-label, .author-grid { max-width: 1424px; margin-inline: auto; }
.author-grid { gap: 12%; }
.author h2 { font-size: clamp(3rem, 5vw, 5rem); }
.author-conviction { border-color: #bcbcb3; }
.author-grid > div:last-child p { color: var(--ink-soft); }
.reader-resources {
  max-width: none;
  padding: clamp(62px, 8vw, 104px) var(--gutter);
  background: var(--steel);
  color: #f6f4ed;
  border: 0;
}
.reader-resources > * { max-width: 1424px; margin-inline: auto; }
.reader-resources .small-label { color: #d7dedb; }
.reader-resources h2 { margin-inline: auto; }
.reader-resources p:not(.small-label) { max-width: 680px; margin: 24px auto; color: #d8e0dc; }
.reader-resources .button { display: flex; width: fit-content; margin-left: max(var(--gutter), calc((100vw - 1424px) / 2)); }

.questions h2 { max-width: 11ch; }
.close { color: #f6f4ed; background: var(--ink); padding-bottom: 32px; }
.close .small-label { color: #d3d8d2; }
.close h2 { font-size: clamp(2.8rem, 5.2vw, 5.2rem); }
.close .red { color: var(--sun); }
.close-description { color: #d0d8d4; }
.purchase-options { border-color: #5f6865; }
.format-heading h3 { color: #f6f4ed; }
.availability { border-color: #929a94; color: #e0e4dc; }
.purchase-options p, .launch-message { color: #d0d8d4; }
.close .text-link { color: #f6f4ed; }
.close footer { border-color: #5f6865; }
.close footer p, .close footer a { color: #d0d8d4; }
.close footer a:hover { color: var(--sun); }
.close .purchase-link { background: var(--red); }
.close .purchase-link:hover { background: #ed4e3c; }
.purchase-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.purchase-links .purchase-link { margin-top: 0; }

.mobile-dock {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
  box-shadow: 0 -8px 30px #10191812;
}
.mobile-dock .button { background: var(--red); }
dialog { border-color: #aaa99e; box-shadow: 0 24px 90px #0a181c52; }
.reader-bar { background: var(--paper); }

@keyframes hero-copy-in {
  from { opacity: .2; transform: translateY(18px); clip-path: inset(0 0 14% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}
@keyframes hero-book-in {
  from { opacity: .35; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 4vw; }
  .hero h1 { font-size: clamp(4rem, 8.5vw, 6.6rem); }
  .hero-object { padding-inline: 16px; }
  .hero-cover { width: min(84%, 300px); }
  .amplify-stage { min-height: 610px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 70px; }
  body { padding-bottom: 76px; }
  .masthead { padding: 9px 20px; }
  .author-mark { font-size: .68rem; }
  .author-mark span { font-size: .45rem; }
  nav { gap: 10px; }
  .nav-cta { color: var(--ink); background: var(--sun); min-height: 42px; padding-inline: 12px; }
  .hero {
    min-height: 0;
    display: flex;
    gap: 28px;
    padding: 34px 22px 30px;
    overflow: hidden;
  }
  .hero::after { display: none; }
  .hero-copy { animation-duration: 620ms; }
  .eyebrow { margin-bottom: 22px; font-size: .58rem; }
  .hero h1 { font-size: clamp(3.45rem, 15vw, 5.8rem); line-height: .88; letter-spacing: -.065em; }
  .hero h1 > span { white-space: nowrap; }
  .hero-subtitle { margin: 20px 0 12px; font-size: 1.16rem; }
  .hero-promise { font-size: .91rem; margin-bottom: 20px; }
  .actions { gap: 10px 19px; }
  .hero .button { min-height: 50px; font-size: .8rem; gap: 16px; padding: 13px 16px; }
  .secondary-action { font-size: .76rem; }
  .hero-note { font-size: .68rem; }
  .hero-object {
    display: grid;
    align-self: auto;
    min-height: 0;
    grid-template-columns: 128px 1fr;
    grid-template-rows: auto 1fr;
    gap: 12px 20px;
    padding: 20px;
    background: var(--steel-light);
    animation-delay: 80ms;
  }
  .hero-object::before { inset: 0; }
  .hero-cover { grid-column: 1; grid-row: 1 / span 2; width: 128px; align-self: center; }
  .hero-cover img { box-shadow: 8px 12px 22px #08182079, 0 0 0 1px #ffffff28; }
  .object-label { grid-column: 2; align-self: end; margin: 0; font-size: .52rem; }
  .object-caption { grid-column: 2; align-self: start; text-align: left; font-size: .76rem; }
  .proof-strip { padding: 18px 22px; gap: 12px; }
  .proof-strip p { max-width: 14ch; font-size: .65rem; }
  .proof-strip strong { margin-bottom: 7px; font-size: 1.5rem; }
  .wrap { padding: 62px 22px; }
  h2 { font-size: 2.45rem; }
  .small-label { font-size: .61rem; }
  .recognition-grid { gap: 22px; }
  .recognition-grid h2 { font-size: 2.55rem; margin-bottom: 20px; }
  .judgment-photo img { height: 235px; }
  .outcomes { gap: 23px; margin-top: 36px; padding-top: 23px; }
  .outcomes h3 { font-size: 1.2rem; }
  .outcomes p { font-size: .83rem; }
  .amplify-stage { min-height: 590px; padding: 30px 22px; }
  .amplify-top .small-label { margin-bottom: 20px; font-size: .58rem; }
  .word-field { inset: 39% 0 31%; }
  .word-field span { font-size: 10.2vw; }
  .amplify-resolution h2 { font-size: 2.35rem; }
  .section-heading h2 { font-size: 2.55rem; }
  .included-number { font-size: 2.5rem; }
  .included h3 { font-size: 1.08rem; }
  .chapter-list summary { font-size: .88rem; }
  .field-note { padding: 25px; }
  .quote-wrap h2 { font-size: 2.55rem; }
  .excerpt::after { top: -.45em; right: -10vw; font-size: 22rem; }
  .excerpt-bottom { gap: 22px; }
  .author h2 { font-size: 2.85rem; }
  .reader-resources { padding: 62px 22px; }
  .reader-resources h2 { font-size: 2.6rem; }
  .reader-resources p:not(.small-label) { font-size: .92rem; }
  .reader-resources .button { margin-left: 0; }
  .questions { padding-top: 0; }
  .close { padding-bottom: 18px; }
  .close h2 { font-size: 2.6rem; }
  .close-inner { gap: 28px; }
  .close-cover { width: 136px; }
  .purchase-options { gap: 18px; }
  .format-heading { display: block; }
  .format-heading h3 { margin-bottom: 8px; }
  .availability { white-space: normal; }
  .purchase-link { padding: 12px; font-size: .75rem; gap: 8px; }
  .mobile-dock { padding: 10px 20px max(10px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-object { animation: none; }
}

/* Reader contact line */
.close footer { flex-wrap: wrap; align-items: center; }
.close footer .footer-contact { flex-basis: 100%; font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.5; font-weight: 600; color: #f6f4ef; max-width: none; margin: 8px 0 20px; }
.close footer .footer-contact a { display: inline; min-height: 0; font-size: inherit; color: var(--sun); text-decoration: underline; text-underline-offset: 5px; word-break: break-word; }
.close footer .footer-contact a:hover { color: #f6f4ef; }

/* Responsive <picture> wrappers must not change the existing image layout. */
picture { display: contents; }
/* Footer site links: crawlable paths to every page and both stores. */
.close footer .footer-links { flex-basis: 100%; flex-wrap: wrap; gap: 0 28px; }
.close footer .footer-links a { font-size: .8rem; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) { .close footer .footer-links { gap: 0 20px; } .close footer .footer-links a { font-size: .75rem; } }

/* Link from the chapter list to the /ideas essays */
.essays-link { margin-top: 18px; }
