:root {
  color-scheme: dark;
  --ink: #090d0f;
  --graphite: #121719;
  --deep: #18272b;
  --surface: #f4efe5;
  --muted: #bfc6c0;
  --text: #f7f3eb;
  --quiet: #d9d0bf;
  --brass: #c8a96a;
  --teal: #6fa9a1;
  --line: rgba(247, 243, 235, 0.18);
  --line-strong: rgba(247, 243, 235, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 30;
  transform: translateY(-72px);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 36px;
  color: var(--text);
  background: rgba(9, 13, 15, 0.72);
  border-bottom: 1px solid rgba(247, 243, 235, 0.08);
  backdrop-filter: blur(16px);
  transition: transform 220ms ease, opacity 220ms ease;
  will-change: transform;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  font-size: 18px;
  font-weight: 700;
}

.brand-domain {
  font-size: 14px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--quiet);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 120px 36px 92px;
  border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-shade {
  background: rgba(6, 9, 10, 0.56);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 24px;
  color: var(--brass);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 0.98;
  font-weight: 500;
}

.hero h1 span {
  display: block;
}

.hero-strike {
  max-width: 720px;
  margin-top: 42px;
  padding-left: 28px;
  border-left: 2px solid var(--brass);
}

.hero-strike p {
  margin: 0;
  font-size: 26px;
  line-height: 1.24;
}

.hero-strike p + p {
  margin-top: 8px;
  color: var(--quiet);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 34px;
  border: 1px solid var(--brass);
  border-radius: 4px;
  padding: 0 22px;
  color: var(--text);
  background: rgba(200, 169, 106, 0.1);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  background: var(--brass);
  color: var(--ink);
}

.hero-continuation {
  position: absolute;
  z-index: 1;
  left: 36px;
  right: 36px;
  bottom: 28px;
  width: min(1040px, calc(100% - 72px));
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}

.section {
  padding: 112px 36px;
  border-bottom: 1px solid rgba(247, 243, 235, 0.1);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 72px;
  align-items: start;
}

.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 500;
}

.body-copy p {
  margin: 0;
  color: var(--quiet);
  font-size: 20px;
  line-height: 1.58;
}

.body-copy p + p {
  margin-top: 24px;
}

.freedom-section {
  background: var(--graphite);
}

.sentence-section {
  padding: 54px 36px;
  background: var(--surface);
  color: var(--ink);
}

.sentence-line {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.2;
}

.line-rule {
  height: 1px;
  background: rgba(9, 13, 15, 0.32);
}

.genesis-section {
  background: #11100d;
}

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 52px;
}

.contrast-item {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px;
  background: rgba(247, 243, 235, 0.04);
}

.contrast-item.accent {
  border-color: rgba(200, 169, 106, 0.46);
  background: rgba(200, 169, 106, 0.08);
}

.contrast-item h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.contrast-item p {
  margin: 0;
  color: var(--quiet);
  font-size: 18px;
  line-height: 1.58;
}

.ag19-section {
  background: var(--deep);
}

.questions-section {
  background: var(--surface);
  color: var(--ink);
}

.book-entry-section {
  background: #e7dfd0;
  color: var(--ink);
}

.book-entry-section .section-kicker {
  color: #7d5e1c;
}

.light-action {
  color: var(--ink);
  border-color: #8b6f32;
  background: rgba(139, 111, 50, 0.07);
}

.book-page {
  background: var(--surface);
  color: var(--ink);
}

.book-hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 132px 36px 86px;
  color: var(--text);
}

.book-background-image {
  object-position: 58% center;
  opacity: 0.86;
}

.book-hero .hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 9, 10, 0.88) 0%, rgba(6, 9, 10, 0.66) 46%, rgba(6, 9, 10, 0.36) 100%),
    linear-gradient(0deg, rgba(6, 9, 10, 0.74) 0%, rgba(6, 9, 10, 0.16) 44%, rgba(6, 9, 10, 0.62) 100%);
}

.book-hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.book-hero-copy {
  max-width: 780px;
}

.book-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  line-height: 1;
  font-weight: 500;
}

.book-lead {
  max-width: 760px;
  margin: 34px 0 0;
  color: var(--quiet);
  font-size: 24px;
  line-height: 1.44;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.book-actions .primary-action,
.book-actions .secondary-action {
  margin-top: 0;
}

.book-cover-figure {
  margin: 0;
  justify-self: end;
}

.book-cover-image {
  display: block;
  width: min(360px, 30vw);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 44px 38px rgba(0, 0, 0, 0.46));
  transform: rotate(-2deg);
}

.ghost-action {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(247, 243, 235, 0.05);
}

.book-reader-section {
  padding: 92px 36px 108px;
  background: var(--surface);
  color: var(--ink);
}

.reader-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: 76px;
  align-items: start;
}

.reader-mobile-toc {
  display: none;
}

.reader-toc {
  position: sticky;
  top: 102px;
  display: grid;
  max-height: calc(100svh - 132px);
  gap: 12px;
  overflow: auto;
  padding-right: 6px;
  color: rgba(9, 13, 15, 0.68);
  font-size: 15px;
}

.reader-toc a,
.reader-toc span {
  display: block;
  text-decoration: none;
  line-height: 1.36;
}

.reader-toc a.is-active {
  color: var(--ink);
  font-weight: 700;
}

.reader-toc a:hover,
.reader-toc a:focus-visible {
  color: var(--ink);
}

.reader-label {
  margin: 0 0 10px;
  color: #7d5e1c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.reader-note {
  margin: 18px 0 0;
  color: rgba(9, 13, 15, 0.58);
  font-size: 14px;
  line-height: 1.5;
}

.book-text {
  min-width: 0;
}

.chapter,
.part-divider {
  scroll-margin-top: 112px;
}

.chapter {
  font-family: Georgia, "Times New Roman", serif;
}

.chapter + .chapter {
  margin-top: 96px;
  padding-top: 58px;
  border-top: 1px solid rgba(9, 13, 15, 0.14);
}

.part-divider {
  margin: 78px 0 84px;
  padding: 42px 0;
  border-top: 1px solid rgba(9, 13, 15, 0.16);
  border-bottom: 1px solid rgba(9, 13, 15, 0.16);
}

.part-divider h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1.06;
  font-weight: 500;
}

.part-divider + .chapter {
  margin-top: 0;
}

.chapter h2 {
  margin: 0 0 38px;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 500;
}

.chapter h3 {
  margin: 56px 0 26px;
  color: #7d5e1c;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
}

.chapter p {
  margin: 0;
  font-size: 22px;
  line-height: 1.72;
}

.chapter p + p {
  margin-top: 18px;
}

.chapter hr {
  width: 100%;
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: rgba(9, 13, 15, 0.18);
}

.chapter-time {
  color: #7d5e1c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px !important;
  font-weight: 700;
  text-transform: uppercase;
}

.chapter-list {
  margin: 24px 0 0;
  padding-left: 1.35em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.72;
}

.chapter-list li + li {
  margin-top: 14px;
}

.reader-next {
  margin-top: 44px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.questions-section .section-kicker {
  color: #7d5e1c;
}

.questions-inner {
  max-width: 900px;
}

.question-list {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

blockquote {
  margin: 0;
  border-left: 2px solid #8b6f32;
  padding: 8px 0 8px 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.24;
}

.secondary-action {
  color: var(--ink);
  border-color: #8b6f32;
  background: transparent;
}

.book-hero .ghost-action {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(247, 243, 235, 0.05);
}

.book-hero .ghost-action:hover,
.book-hero .ghost-action:focus-visible {
  color: var(--ink);
  border-color: var(--brass);
  background: var(--brass);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  color: var(--muted);
  background: var(--ink);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    padding: 18px 24px;
  }

  .hero {
    padding: 110px 24px 96px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-strike p {
    font-size: 23px;
  }

  .section {
    padding: 86px 24px;
  }

  .two-column,
  .contrast-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .section h2 {
    font-size: 40px;
  }

  .sentence-line {
    grid-template-columns: 1fr;
    gap: 12px;
    font-size: 34px;
  }

  .line-rule {
    width: 100%;
  }

  .hero-continuation {
    left: 24px;
    right: 24px;
    width: calc(100% - 48px);
  }

  .book-hero {
    min-height: auto;
    padding: 122px 24px 78px;
  }

  .book-hero-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .book-cover-figure {
    justify-self: start;
  }

  .book-cover-image {
    width: min(320px, 62vw);
  }

  .reader-layout {
    gap: 54px;
  }

  .site-footer {
    flex-direction: column;
    padding: 30px 24px;
  }
}

@media (max-width: 680px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 18px;
  }

  body.reader-ui-hidden .site-header {
    transform: translateY(calc(-100% - 2px));
    opacity: 0;
    pointer-events: none;
  }

  body.reader-ui-visible .site-header {
    transform: translateY(0);
    opacity: 1;
  }

  .brand {
    flex-direction: row;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    gap: 16px;
    font-size: 13px;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .hero {
    min-height: 90svh;
    padding: 104px 18px 118px;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.04;
  }

  .hero-strike {
    margin-top: 32px;
    padding-left: 18px;
  }

  .hero-strike p {
    font-size: 20px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    text-align: center;
    font-size: 14px;
  }

  .hero-continuation {
    bottom: 22px;
    left: 18px;
    right: 18px;
    width: calc(100% - 36px);
    font-size: 14px;
  }

  .section {
    padding: 70px 18px;
  }

  .section h2 {
    font-size: 32px;
  }

  .book-hero {
    min-height: auto;
    padding: 122px 18px 66px;
  }

  .book-background-image {
    object-position: 63% center;
  }

  .book-hero-content {
    gap: 26px;
  }

  .book-cover-figure {
    order: -1;
    justify-self: center;
  }

  .book-cover-image {
    width: min(230px, 76vw);
    transform: rotate(-1deg);
  }

  .book-hero h1 {
    font-size: 46px;
  }

  .book-lead {
    margin-top: 24px;
    font-size: 19px;
  }

  .book-actions {
    display: grid;
    gap: 12px;
    margin-top: 28px;
  }

  .book-reader-section {
    padding: 64px 18px 78px;
  }

  .reader-mobile-toc {
    display: block;
    position: sticky;
    top: calc(var(--reader-header-height, 92px) + 10px);
    z-index: 14;
    width: min(760px, 100%);
    margin: 0 auto 42px;
    transition: transform 220ms ease, opacity 220ms ease;
    will-change: transform;
  }

  body.reader-ui-hidden .reader-mobile-toc {
    transform: translateY(var(--reader-mobile-hide-shift, -160px));
    opacity: 0;
    pointer-events: none;
  }

  body.reader-ui-visible .reader-mobile-toc {
    transform: translateY(0);
    opacity: 1;
  }

  .reader-mobile-toc details {
    border: 1px solid rgba(9, 13, 15, 0.16);
    border-radius: 6px;
    background: #ece5d8;
  }

  .reader-mobile-toc summary {
    cursor: pointer;
    padding: 17px 18px;
    color: var(--ink);
    font-weight: 700;
  }

  .reader-mobile-links {
    display: grid;
    max-height: 58svh;
    gap: 12px;
    overflow: auto;
    padding: 0 18px 20px;
  }

  .reader-mobile-links a {
    color: rgba(9, 13, 15, 0.72);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.35;
  }

  .reader-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .reader-toc {
    display: none;
  }

  .chapter,
  .part-divider {
    scroll-margin-top: 122px;
  }

  .chapter + .chapter {
    margin-top: 72px;
    padding-top: 44px;
  }

  .part-divider {
    margin: 58px 0 66px;
    padding: 34px 0;
  }

  .part-divider h2 {
    font-size: 34px;
  }

  .chapter h2 {
    font-size: 38px;
  }

  .chapter h3 {
    margin: 42px 0 20px;
    font-size: 24px;
  }

  .chapter p {
    font-size: 19px;
    line-height: 1.68;
  }

  .chapter-list {
    padding-left: 1.25em;
    font-size: 19px;
    line-height: 1.68;
  }

  .body-copy p,
  .contrast-item p {
    font-size: 17px;
  }

  .sentence-section {
    padding: 42px 18px;
  }

  .sentence-line {
    font-size: 28px;
  }

  .contrast-item {
    min-height: 0;
    padding: 24px;
  }

  blockquote {
    padding-left: 18px;
    font-size: 24px;
  }
}

@media (max-width: 430px) {
  .book-hero {
    padding-top: 108px;
    padding-bottom: 58px;
  }

  .book-hero-content {
    gap: 20px;
  }

  .book-cover-image {
    width: min(188px, 68vw);
  }

  .book-hero h1 {
    font-size: 40px;
  }

  .book-lead {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.42;
  }

  .book-actions {
    margin-top: 24px;
  }

  .reader-mobile-toc {
    margin-bottom: 34px;
  }

  .reader-mobile-toc summary {
    padding: 15px 16px;
  }

  .reader-mobile-links {
    padding: 0 16px 18px;
  }

  .reader-mobile-links a {
    font-size: 14px;
  }

  .chapter h2 {
    font-size: 34px;
  }

  .chapter p,
  .chapter-list {
    font-size: 18px;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .reader-mobile-toc {
    transition: none;
  }
}
