/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  --bg: #13111a;
  --bg-glass: rgba(19, 17, 26, 0.85);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --duration: 200ms;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: #e5e0d8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #d4b36b; color: #13111a; }

a {
  color: inherit;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
a:focus-visible {
  outline: 2px solid #d4b36b;
  outline-offset: 6px;
  border-radius: 3px;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
  line-height: 1.08;
}
h1 em, h2 em { font-style: normal; color: #bdb3c7; }
h3 { line-height: 1.35; }

/* ================================================================
   LAYOUT CONTAINERS
   ================================================================ */
.site-header, .landing, .site-footer {
  max-width: 1160px;
  margin: auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* ================================================================
   STICKY HEADER — X-style: quiet glass, always present
   ================================================================ */
.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateZ(0);
}

/* Hairline appears on scroll */
.header-scrolled .site-header {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand img { border-radius: 9px; }
.brand span, .footer-brand {
  font-size: 27px;
  letter-spacing: -.055em;
  font-weight: 650;
}

.site-header nav { display: flex; gap: 30px; }
.site-header nav a {
  min-height: 44px;
  padding: 10px 0;
  color: #aaa1b3;
  text-decoration: none;
  font-size: 13px;
  transition: color var(--duration) var(--ease);
}
.site-header nav a:hover,
.site-header nav a[aria-current] { color: #f2ece8; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -80px;
  left: 24px;
  z-index: 110;
  padding: 10px 16px;
  background: #d4b36b;
  color: #13111a;
}
.skip-link:focus { top: 16px; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 74px;
  align-items: center;
  padding-top: 105px;
  padding-bottom: 120px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: 10px;
  line-height: 1.6;
  font-weight: 600;
  color: #c3a367;
}

.hero h1 {
  font-size: clamp(48px, 5.8vw, 73px);
  margin-top: 27px;
  line-height: 1.04;
}
.hero-lead {
  max-width: 480px;
  margin-top: 30px;
  font-size: 15px;
  color: #ada5b5;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 31px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 28px;
}

.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: -18px;
}
.play-badge {
  display: block;
  padding: 18px;
  width: 251px;
}
.play-badge img { width: 215px; height: auto; }
.download-note {
  font-size: 10px;
  letter-spacing: .04em;
  color: #a99fb3;
  margin-top: -7px;
  padding: 0 16px;
}

.text-link {
  display: inline-block;
  font-size: 12px;
  color: #d9c6a0;
  min-height: 44px;
  padding-top: 11px;
  padding-bottom: 11px;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.text-link span { display: inline-block; margin-left: 10px; }
.text-link:hover { color: #f1d394; }

/* ================================================================
   READING PREVIEW CARD
   ================================================================ */
.reading-preview {
  position: relative;
  transform: rotate(2deg);
  background: linear-gradient(148deg, #24202c, #19151f 62%);
  border: 1px solid #3b3345;
  border-radius: 28px;
  padding: 31px 30px 25px;
  box-shadow: 0 26px 80px #06040940;
  overflow: hidden;
}

.preview-masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.preview-masthead img {
  border-radius: 19px;
  box-shadow: 0 8px 22px #0a071438;
}
.preview-masthead span {
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: .2em;
  color: #a095ad;
}

.preview-kicker {
  font-size: 10px;
  letter-spacing: .05em;
  color: #b49b77;
  margin-bottom: 14px;
}
.reading-preview h2 {
  font-size: 37px;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.preview-depths {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 23px;
  font-size: 9px;
  color: #a99cb9;
  letter-spacing: .02em;
}
.preview-depths span:first-child { color: #d5bc86; }

.preview-excerpt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.8;
  color: #9f94aa;
  margin-top: 25px;
}
.preview-rule {
  width: 31px;
  height: 1px;
  background: #80704b;
  margin-top: 28px;
}
.reading-preview figcaption {
  font-size: 10px;
  line-height: 1.7;
  color: #9a8da8;
  margin-top: 14px;
}

/* ================================================================
   DEPTH SECTION
   ================================================================ */
.depth-section {
  padding-top: 72px;
  padding-bottom: 90px;
  border-top: 1px solid #2a2531;
}
.section-heading { max-width: 530px; }
.section-heading h2, .quiet-section h2 {
  font-size: clamp(36px, 4.6vw, 53px);
  margin-top: 21px;
}
.section-heading > p:last-child:not(.eyebrow) {
  max-width: 430px;
  color: #9e94aa;
  font-size: 13px;
  line-height: 1.9;
  margin-top: 23px;
}

.depth-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  margin: 53px 0 0;
}
.depth-list > li {
  border-top: 1px solid #403647;
  padding-top: 22px;
}
.depth-list span {
  font-size: 9px;
  letter-spacing: .12em;
  color: #ad8c5b;
}
.depth-list h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  margin-top: 17px;
  letter-spacing: -.02em;
}
.depth-list p {
  font-size: 12px;
  color: #93899e;
  line-height: 1.85;
  margin-top: 14px;
  max-width: 265px;
}

/* ================================================================
   FEATURES SECTION
   ================================================================ */
.features-section {
  border-top: 1px solid #2a2531;
  padding-top: 75px;
  padding-bottom: 77px;
  display: grid;
  grid-template-columns: .85fr 1.5fr;
  gap: 74px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 42px;
}

.feature-number {
  font-size: 9px;
  color: #ac9472;
  letter-spacing: .1em;
}
.feature h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  letter-spacing: -.025em;
  margin-top: 10px;
}
.feature p {
  font-size: 12px;
  line-height: 1.9;
  color: #9a8fa5;
  margin-top: 12px;
}

/* ================================================================
   QUIET SECTION
   ================================================================ */
.quiet-section {
  border-top: 1px solid #2a2531;
  text-align: center;
  padding: 83px 24px 80px;
}
.quiet-section > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.95;
  max-width: 520px;
  margin: 24px auto 13px;
  color: #a297ad;
}
.quiet-section .text-link { margin-top: 4px; }

/* ================================================================
   CLOSING
   ================================================================ */
.closing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 63px 0 70px;
  border-top: 1px solid #2a2531;
}
.closing > img {
  border-radius: 17px;
  flex-shrink: 0;
}
.closing h2 { font-size: 31px; line-height: 1.18; }
.closing p { font-size: 11px; line-height: 1.8; color: #8f839c; margin-top: 14px; }
.closing p a {
  color: #cbb48b;
  transition: color var(--duration) var(--ease);
}
.closing p a:hover { color: #f1d394; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  padding-top: 38px;
  padding-bottom: 36px;
  border-top: 1px solid #2a2531;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { text-decoration: none; font-size: 24px; }
.site-footer > div > p {
  font-size: 11px;
  color: #a99db8;
  margin-top: 6px;
}
.site-footer nav {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer nav a {
  font-size: 10px;
  min-height: 44px;
  padding: 13px 0;
  color: #a79bba;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.site-footer nav a:hover { color: #e5d0ad; }
.trademark {
  flex-basis: 100%;
  font-size: 10px;
  color: #9d90ae;
  margin-top: 13px;
}

/* ================================================================
   DOCUMENT PAGES (privacy, terms, support, delete-account)
   ================================================================ */
.document {
  max-width: 790px;
  margin: auto;
  padding: 64px 32px 70px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.document-heading {
  padding-bottom: 26px;
  margin-bottom: 30px;
  border-bottom: 1px solid #302937;
}
.document .eyebrow {
  font-family: system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: .12em;
}
.document h1 {
  font-size: clamp(38px, 5.7vw, 54px);
  line-height: 1.12;
  margin-top: 22px;
}
.document-lead {
  color: #b4a8c0;
  margin-top: 25px;
  font-size: 17px;
}
.document h2 {
  color: #d0b27d;
  font-size: 26px;
  letter-spacing: -.025em;
  margin: 37px 0 17px;
}
.document section p + p { margin-top: 18px; }
.document li { padding: 5px 0; }
.document a {
  color: #d5bb8c;
  transition: color var(--duration) var(--ease);
}
.document a:hover { color: #f1d394; }
.document .muted {
  font-size: 13px;
  color: #9e91ac;
  font-family: system-ui, sans-serif;
  line-height: 1.9;
}
.document > p, .document > ol, .document > ul { margin-top: 20px; }
.document .button {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid #8d7351;
  border-radius: 9px;
  min-height: 48px;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.document .button:hover {
  border-color: #c4a46e;
  background: #d4b36b0a;
}

/* ================================================================
   RESPONSIVE — TABLET
   ================================================================ */
@media (max-width: 900px) {
  .hero { gap: 35px; padding-top: 70px; padding-bottom: 85px; }
  .hero h1 { font-size: 52px; }
  .reading-preview { padding: 25px 24px; }
  .reading-preview h2 { font-size: 31px; }
  .preview-masthead { margin-bottom: 28px; }
  .hero-actions { gap: 8px; }
  .hero-lead { font-size: 14px; }
  .features-section { gap: 42px; grid-template-columns: .8fr 1.4fr; }
  .feature-grid { gap: 30px 28px; }
  .feature h3 { font-size: 20px; }
  .site-footer nav { gap: 8px 18px; }
  .depth-list { gap: 30px; }
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */
@media (max-width: 650px) {
  .site-header, .landing, .site-footer {
    padding-left: 23px;
    padding-right: 23px;
  }
  .site-header { min-height: 90px; gap: 20px; }
  .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .brand span { font-size: 25px; }
  .site-header nav { gap: 19px; }
  .site-header nav a { font-size: 11px; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 47px;
    padding-bottom: 64px;
    gap: 50px;
  }
  .hero h1 { font-size: clamp(46px, 10vw, 61px); margin-top: 23px; }
  .hero-lead { max-width: 440px; font-size: 14px; line-height: 1.85; margin-top: 23px; }
  .hero-actions { gap: 2px 19px; margin-top: 23px; }
  .play-badge { width: 228px; padding: 16px; }
  .play-badge img { width: 196px; }
  .download { margin-left: -16px; }
  .text-link { font-size: 11px; }
  .download-note { font-size: 9px; }

  .reading-preview {
    max-width: 390px;
    width: calc(100% - 12px);
    margin: 0 auto;
    padding: 28px 27px;
    transform: rotate(1deg);
  }
  .reading-preview h2 { font-size: 37px; }
  .preview-masthead { margin-bottom: 30px; }
  .preview-excerpt { font-size: 14px; }
  .preview-depths { font-size: 10px; }
  .reading-preview figcaption { font-size: 10px; }

  .depth-section { padding-top: 50px; padding-bottom: 54px; }
  .section-heading h2, .quiet-section h2 { font-size: 39px; }
  .depth-list {
    grid-template-columns: 1fr;
    gap: 27px;
    margin-top: 35px;
  }
  .depth-list li { padding-top: 19px; }
  .depth-list h3 { font-size: 23px; margin-top: 13px; }
  .depth-list p { max-width: 360px; font-size: 13px; margin-top: 9px; }

  .features-section {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 52px;
    padding-bottom: 50px;
  }
  .feature-grid { gap: 29px 24px; }
  .feature h3 { font-size: 21px; }
  .feature p { font-size: 12px; }

  .quiet-section { padding: 55px 0 46px; text-align: left; }
  .quiet-section > p:not(.eyebrow) { margin-left: 0; }
  .quiet-section h2 { font-size: 39px; }

  .closing { gap: 20px; justify-content: flex-start; padding: 40px 0 43px; }
  .closing > img { width: 53px; height: 53px; border-radius: 14px; }
  .closing h2 { font-size: 26px; }
  .closing p { font-size: 11px; }

  .site-footer { padding-top: 30px; padding-bottom: 25px; gap: 15px; }
  .site-footer nav { width: 100%; gap: 0 21px; }
  .site-footer nav a { font-size: 10px; }
  .trademark { margin-top: 0; }

  .document { padding: 43px 23px 54px; font-size: 16px; }
  .document h1 { font-size: 41px; }
  .document h2 { font-size: 25px; }
  .document-lead { font-size: 16px; }
  .document .eyebrow { font-size: 8px; }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reading-preview { transform: none; }
}

/* ================================================================
   FORCED COLORS (Windows High Contrast)
   ================================================================ */
@media (forced-colors: active) {
  .reading-preview,
  .depth-list > li,
  .site-footer,
  .document-heading {
    border-color: CanvasText;
  }
}
