:root {
  --ink: #090a0a;
  --charcoal: #111313;
  --charcoal-soft: #191b1b;
  --paper: #eeeae0;
  --paper-muted: #bdb9af;
  --orange: #d94b13;
  --orange-bright: #ef5a19;
  --line: #353636;
  --shadow: 0 18px 50px rgb(0 0 0 / 45%);
  --content: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgb(217 75 19 / 7%), transparent 28rem),
    linear-gradient(180deg, #0d0e0e 0%, var(--ink) 65%, #070808 100%);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  content: "";
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  position: fixed;
  z-index: 10;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange-bright);
  outline-offset: 4px;
}

.skip-link {
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgb(9 10 10 / 94%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.section,
.footer-inner {
  margin-inline: auto;
  max-width: var(--content);
  width: min(calc(100% - 2rem), var(--content));
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 6rem;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
}

.brand img {
  height: auto;
  object-fit: contain;
  object-position: left center;
  width: clamp(13rem, 22vw, 16rem);
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  text-transform: uppercase;
}

.site-nav {
  background: var(--charcoal);
  border-bottom: 1px solid var(--line);
  display: none;
  left: 0;
  padding: 0.75rem 1rem 1rem;
  position: absolute;
  right: 0;
  top: 100%;
}

.site-nav.is-open {
  display: grid;
  gap: 0.3rem;
}

.site-nav a {
  color: var(--paper-muted);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--paper);
}

.site-nav a[aria-current="page"] {
  border-left: 3px solid var(--orange);
}

main {
  overflow: hidden;
}

.section {
  padding-block: 4rem;
}

.section-compact {
  padding-block: 2.25rem;
}

.section-dark {
  background: var(--charcoal);
  border-block: 1px solid var(--line);
  max-width: none;
  width: 100%;
}

.section-dark > .section-inner {
  margin-inline: auto;
  max-width: var(--content);
  width: min(calc(100% - 2rem), var(--content));
}

.eyebrow,
.kicker {
  color: var(--orange-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.hero-copy > .eyebrow,
.page-intro > .eyebrow,
.book-hero-copy > .kicker {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  line-height: 1.2;
}

h1,
h2,
h3 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.98;
  margin-top: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.85rem, 15vw, 6.8rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 9vw, 4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.45rem, 7vw, 2.1rem);
  margin-bottom: 0.6rem;
}

p {
  margin: 0 0 1.25rem;
}

.lede {
  color: var(--paper-muted);
  font-size: clamp(1.05rem, 4.6vw, 1.35rem);
  line-height: 1.55;
  max-width: 43rem;
}

.hero {
  min-height: calc(100svh - 6rem);
  padding-block: 2.5rem 3.5rem;
}

.hero-grid,
.book-hero-grid {
  align-items: center;
  display: grid;
  gap: 2rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title span {
  color: var(--orange-bright);
  display: block;
}

.hero-cover-wrap,
.book-cover-wrap {
  margin-inline: auto;
  max-width: 21rem;
  position: relative;
  width: 82%;
}

.cover {
  border: 1px solid rgb(238 234 224 / 22%);
  box-shadow: 0 20px 55px rgb(0 0 0 / 62%);
  width: 100%;
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.button {
  align-items: center;
  border: 2px solid var(--paper);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.05em;
  min-height: 3.25rem;
  padding: 0.75rem 1.15rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.button-primary:hover {
  background: var(--orange-bright);
  border-color: var(--orange-bright);
}

.button-secondary:hover {
  background: var(--paper);
  color: var(--ink);
}

.button-disabled {
  border-color: var(--line);
  color: var(--paper-muted);
  cursor: default;
}

.reading-order {
  align-items: center;
  color: var(--paper-muted);
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.7rem;
  letter-spacing: 0.09em;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}

.reading-order::before {
  background: var(--orange);
  content: "";
  height: 2px;
  width: 2.6rem;
}

.book-grid {
  display: grid;
  gap: 2.5rem 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.book-card-cover {
  aspect-ratio: 5 / 8;
  background: #050606;
  border: 1px solid rgb(238 234 224 / 18%);
  box-shadow: 0 12px 30px rgb(0 0 0 / 52%);
  display: block;
  line-height: 0;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.book-card-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

.book-card:hover .book-card-cover {
  border-color: rgb(239 90 25 / 55%);
  box-shadow: 0 16px 38px rgb(0 0 0 / 68%), 0 0 0 1px rgb(239 90 25 / 16%);
  transform: translateY(-2px);
}

.book-card:hover .book-card-cover img {
  transform: scale(1.015);
}

.book-number {
  color: var(--orange-bright);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 1rem 0 0.35rem;
  text-transform: uppercase;
}

.book-card h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 0.25rem;
  text-transform: none;
}

.book-card h3 a {
  text-decoration: none;
}

.book-card h3 a::after {
  content: " \2192";
  color: var(--orange-bright);
}

.book-setting {
  color: var(--paper-muted);
  font-size: 0.85rem;
  margin: 0;
}

.statement {
  border-left: 4px solid var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 6vw, 2.25rem);
  line-height: 1.4;
  margin: 0;
  max-width: 50rem;
  padding-left: 1.25rem;
}

.breadcrumbs {
  color: var(--paper-muted);
  font-size: 0.82rem;
  margin-bottom: 2rem;
}

.breadcrumbs a {
  text-underline-offset: 0.22em;
}

.book-title {
  font-size: clamp(2.65rem, 13vw, 6.4rem);
}

.book-title span {
  color: var(--orange-bright);
  display: block;
}

.book-description {
  color: var(--paper-muted);
  font-size: 1.08rem;
  max-width: 40rem;
}

.availability-note {
  border-left: 3px solid var(--line);
  color: var(--paper-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  padding-left: 0.9rem;
}

.article-list {
  display: grid;
  gap: 1.25rem;
}

.continue-card {
  align-items: center;
  background: var(--charcoal-soft);
  border: 1px solid var(--line);
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
}

.continue-card img {
  aspect-ratio: 5 / 8;
  border: 1px solid rgb(238 234 224 / 18%);
  box-shadow: 0 10px 24px rgb(0 0 0 / 48%);
  object-fit: cover;
  width: 7rem;
}

.continue-card p {
  color: var(--paper-muted);
  margin-bottom: 0.8rem;
}

.continue-card a {
  font-weight: 900;
  text-underline-offset: 0.25em;
  text-transform: uppercase;
}


/* Contact page */
.contact-email-line {
  margin-block: 1.5rem;
}

.contact-email {
  color: var(--paper);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-underline-offset: 0.25em;
}

.contact-note {
  color: var(--paper-muted);
  font-size: 0.9rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 48rem;
}

.contact-card {
  background: var(--charcoal-soft);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 4vw, 1.75rem);
}

.contact-card h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.3rem, 4vw, 1.55rem);
  line-height: 1.3;
  margin-bottom: 0.6rem;
  text-transform: none;
}

.contact-card h3 a {
  text-underline-offset: 0.25em;
}

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

.prose {
  max-width: 48rem;
}

.prose h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.2rem);
  line-height: 1.2;
  margin-top: 3.2rem;
  text-transform: none;
}

.prose h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.3rem, 4vw, 1.55rem);
  line-height: 1.3;
  margin-top: 2.2rem;
  text-transform: none;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.page-intro {
  padding-bottom: 2rem;
}

.newsletter-section {
  background:
    linear-gradient(135deg, rgb(217 75 19 / 10%), transparent 48%),
    var(--ink);
  border-top: 1px solid var(--line);
}

.newsletter-inner {
  padding-block: 4rem;
}

.newsletter-panel {
  background: var(--charcoal-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-inline: auto;
  max-width: 48rem;
  min-height: 16rem;
  padding: clamp(1rem, 4vw, 2rem);
}

.newsletter-panel .ml-embedded {
  min-height: 12rem;
}

.site-footer {
  background: #050606;
  border-top: 1px solid var(--line);
}

.footer-inner {
  padding-block: 2.5rem;
}

.footer-brand {
  height: auto;
  margin-bottom: 1.5rem;
  width: 11rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--paper-muted);
  font-size: 0.85rem;
  text-underline-offset: 0.25em;
}

.copyright {
  color: #85827b;
  font-size: 0.78rem;
  margin: 0;
}

@media (min-width: 38rem) {
  .button-row {
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .button {
    min-width: 12rem;
  }

  .continue-card {
    grid-template-columns: auto 1fr;
    padding: 1.5rem;
  }

  .continue-card img {
    width: 9rem;
  }
}

@media (min-width: 48rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    align-items: center;
    background: transparent;
    border: 0;
    display: flex;
    gap: 0.3rem;
    padding: 0;
    position: static;
  }

  .site-nav a {
    padding: 0.65rem 0.85rem;
  }

  .site-nav a[aria-current="page"] {
    border-bottom: 2px solid var(--orange);
    border-left: 0;
  }

  .book-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .footer-brand,
  .footer-links {
    margin-bottom: 0;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (min-width: 58rem) {
  .hero {
    padding-block: 4rem 5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.7fr);
  }

  .book-hero-grid {
    grid-template-columns: minmax(18rem, 0.66fr) minmax(0, 1.2fr);
  }

  .book-cover-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .book-hero-copy {
    grid-column: 2;
    grid-row: 1;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Privacy and consent controls */
.footer-link-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--paper-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-link-button:hover {
  color: var(--paper);
}

.policy-table-wrap {
  overflow-x: auto;
  margin-block: 1.5rem 2rem;
}

.policy-table {
  border-collapse: collapse;
  min-width: 42rem;
  width: 100%;
}

.policy-table th,
.policy-table td {
  border: 1px solid var(--line);
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
}

.policy-table thead th {
  background: var(--charcoal-soft);
  color: var(--paper);
}

.policy-table tbody th {
  color: var(--paper);
  width: 8rem;
}

.policy-table code {
  color: var(--paper);
}

.consent-banner {
  background: #0e1010;
  border-top: 2px solid var(--orange);
  bottom: 0;
  box-shadow: 0 -16px 45px rgb(0 0 0 / 58%);
  color: var(--paper);
  left: 0;
  padding: 1rem;
  position: fixed;
  right: 0;
  z-index: 80;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner-inner {
  display: grid;
  gap: 1rem;
  margin-inline: auto;
  max-width: var(--content);
}

.consent-banner h2,
.consent-dialog h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  text-transform: none;
}

.consent-banner p,
.consent-dialog p {
  color: var(--paper-muted);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.consent-actions,
.consent-dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.consent-button {
  border: 2px solid var(--paper);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 900;
  min-height: 2.9rem;
  padding: 0.65rem 0.9rem;
  text-transform: uppercase;
}

.consent-button-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.consent-button-secondary {
  background: transparent;
  color: var(--paper);
}

.consent-dialog {
  background: #0e1010;
  border: 1px solid var(--line);
  color: var(--paper);
  max-height: min(42rem, calc(100vh - 2rem));
  max-width: 38rem;
  padding: 0;
  width: min(38rem, calc(100% - 2rem));
}

.consent-dialog::backdrop {
  background: rgb(0 0 0 / 76%);
}

.consent-dialog-inner {
  padding: 1.25rem;
}

.consent-dialog-header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.consent-close {
  background: transparent;
  border: 0;
  color: var(--paper-muted);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.consent-option {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 1rem;
}

.consent-option strong,
.consent-option span {
  display: block;
}

.consent-option p,
.consent-option span span {
  color: var(--paper-muted);
  font-size: 0.9rem;
  margin: 0.2rem 0 0;
}

.consent-option input {
  accent-color: var(--orange-bright);
  height: 1.35rem;
  flex: 0 0 auto;
  width: 1.35rem;
}

.consent-option input:disabled {
  opacity: 0.6;
}

.consent-gpc {
  border-left: 3px solid var(--orange);
  padding-left: 0.8rem;
}

@media (min-width: 48rem) {
  .consent-banner-inner {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .consent-actions,
  .consent-dialog-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}



/* Responsive policy categories */
@media (max-width: 47.99rem) {
  .policy-table-wrap {
    overflow: visible;
  }

  .policy-table {
    min-width: 0;
  }

  .policy-table,
  .policy-table tbody,
  .policy-table tr,
  .policy-table th,
  .policy-table td {
    display: block;
    width: 100%;
  }

  .policy-table thead {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .policy-table tbody tr {
    background: var(--charcoal-soft);
    border: 1px solid var(--line);
    margin-bottom: 1rem;
  }

  .policy-table tbody th,
  .policy-table tbody td {
    border: 0;
    overflow-wrap: anywhere;
    padding: 0.85rem 1rem;
    width: auto;
  }

  .policy-table tbody th {
    background: #0e1010;
    color: var(--orange-bright);
    font-size: 1rem;
  }

  .policy-table tbody td + td {
    border-top: 1px solid var(--line);
  }

  .policy-table tbody td::before {
    color: var(--paper);
    display: block;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
  }

  .policy-table tbody td:nth-child(2)::before {
    content: "Purpose and examples";
  }

  .policy-table tbody td:nth-child(3)::before {
    content: "Current status";
  }
}


/* Compact consent banner */
.consent-banner {
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
}

.consent-banner-inner {
  gap: 0.55rem;
}

.consent-banner h2 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.consent-banner p {
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
}

.consent-actions {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.consent-banner .consent-button {
  font-size: 0.76rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.55rem;
}

.consent-banner .consent-button-manage {
  background: transparent;
  border: 0;
  color: var(--paper-muted);
  grid-column: 1 / -1;
  min-height: 1.75rem;
  padding: 0.15rem 0.4rem;
  text-decoration: underline;
  text-transform: none;
  text-underline-offset: 0.2em;
}

@media (max-width: 47.99rem) {
  .consent-banner {
    max-height: 50svh;
    overflow-y: auto;
  }

  .consent-banner h2 {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .consent-banner p {
    font-size: 0.75rem;
    line-height: 1.32;
  }
}

@media (min-width: 48rem) {
  .consent-banner {
    padding: 0.7rem 1rem;
  }

  .consent-banner-inner {
    align-items: center;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .consent-banner-copy {
    max-width: 48rem;
  }

  .consent-actions {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .consent-banner .consent-button {
    min-height: 2.65rem;
    white-space: nowrap;
  }

  .consent-banner .consent-button-manage {
    grid-column: auto;
    min-height: 2.65rem;
    padding: 0.45rem 0.55rem;
  }
}

/* Compact homepage discovery links */
.explore-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.explore-card {
  background: var(--charcoal-soft);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.explore-card h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.65rem;
  text-transform: none;
}

.explore-card h3 a {
  text-decoration: none;
}

.explore-card h3 a::after {
  color: var(--orange-bright);
  content: " \2192";
}

.explore-card p {
  color: var(--paper-muted);
  margin: 0;
}

@media (min-width: 48rem) {
  .explore-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
