/* Chapter pages — crawlable sections matching tildenparc.bio scroll blocks */
:root {
  --tp-bg: #000;
  --tp-text: #eaeaea;
  --tp-gold: #e8cba8;
  --tp-muted: rgba(255, 255, 255, 0.55);
  --tp-chapter-pad: clamp(16px, 4vw, 48px);
  --tp-chapter-nav-h: clamp(72px, 12vw, 100px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--tp-bg);
  color: var(--tp-text);
  scroll-behavior: smooth;
}

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

body.tp-seo-page {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.tp-seo-top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(14px, 3vw, 22px) var(--tp-chapter-pad);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.88) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

.tp-seo-top__brand {
  margin: 0 0 0.65rem;
  font-size: clamp(10px, 1.35vw, 11px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.tp-seo-top__brand a {
  color: var(--tp-gold);
  text-decoration: none;
}

.tp-seo-top__brand a:hover {
  color: #fff;
}

.tp-seo-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3em 0.85em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-seo-nav a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: clamp(8px, 1.65vw, 10px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.tp-seo-main {
  max-width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) var(--tp-chapter-pad) clamp(56px, 9vw, 88px);
}

.tp-chapter-viewport {
  width: 100%;
  max-width: min(960px, calc(100vw - 32px));
  margin: 0 auto clamp(32px, 6vw, 48px);
  aspect-ratio: 16 / 9;
  min-height: min(56.25vw, calc(100vh - var(--tp-chapter-nav-h) - 48px));
  max-height: calc(100vh - var(--tp-chapter-nav-h) - 24px);
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.tp-chapter-viewport img,
.tp-chapter-viewport iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.tp-chapter-viewport--contain img {
  object-fit: contain;
  background: #000;
}

.tp-seo-main h1 {
  margin: 0 0 0.45em;
  font-size: clamp(20px, 3.8vw, 28px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.tp-seo-kicker {
  margin: 0 0 1.25em;
  font-size: clamp(11px, 1.5vw, 12px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tp-muted);
}

.tp-seo-lead {
  margin: 0 0 1.75em;
  font-size: clamp(15px, 1.85vw, 17px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.tp-seo-main h2 {
  margin: 2em 0 0.65em;
  font-size: clamp(12px, 1.5vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tp-muted);
  font-weight: 600;
}

.tp-seo-main p,
.tp-seo-main li {
  font-size: clamp(15px, 1.85vw, 17px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.tp-seo-main ul {
  margin: 0 0 1.25em;
  padding-left: 1.2em;
}

.tp-seo-main a {
  color: var(--tp-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 203, 168, 0.28);
}

.tp-seo-main a:hover {
  color: #fff;
  border-bottom-color: rgba(232, 203, 168, 0.55);
}

.tp-seo-release {
  margin: 0 0 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-seo-release:last-of-type {
  border-bottom: 0;
}

.tp-seo-release h3 {
  margin: 0 0 0.35em;
  font-size: clamp(16px, 2vw, 19px);
  letter-spacing: 0.05em;
  color: #fff;
}

.tp-seo-release p {
  margin: 0 0 0.5em;
}

.tp-seo-cta,
.tp-chapter-enter {
  display: inline-block;
  margin-top: 0.65em;
  padding: 11px 20px;
  border: 1px solid rgba(232, 203, 168, 0.38);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(232, 203, 168, 0.38);
}

.tp-seo-cta:hover,
.tp-chapter-enter:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.tp-chapter-enter--primary {
  margin-bottom: 1.5em;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.tp-seo-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1em 0 1.25em;
  background: #111;
}

.tp-seo-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tp-press-grid {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  margin: 1.5em 0;
}

.tp-press-grid a {
  display: block;
  aspect-ratio: 10 / 3;
  border-radius: 12px;
  overflow: hidden;
  border-bottom: none;
  background: #000;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.tp-press-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tp-merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin: 1.25em 0;
}

.tp-merch-grid figure {
  margin: 0;
  text-align: center;
}

.tp-merch-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}

.tp-merch-grid figcaption {
  margin-top: 0.45em;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--tp-muted);
}

.tp-seo-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25em 0;
  margin: 1.5em 0;
}

.tp-seo-stats dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tp-muted);
  margin-top: 0.85em;
}

.tp-seo-stats dd {
  margin: 0.2em 0 0;
  font-size: clamp(15px, 2vw, 17px);
  color: #fff;
}

.tp-seo-footer {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tp-muted);
}

.tp-seo-footer a {
  color: rgba(232, 203, 168, 0.9);
  border-bottom: none;
}
