:root {
  color-scheme: light dark;
  --canvas: #f7f8f6;
  --surface: #ffffff;
  --surface-muted: #e9ede9;
  --ink: #18211d;
  --muted: #4f5c55;
  --primary: #163d35;
  --on-primary: #ffffff;
  --accent: #c84f37;
  --border: #ccd4ce;
  --content: 1120px;
  --reading: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #101512;
    --surface: #151b18;
    --surface-muted: #202824;
    --ink: #edf2ee;
    --muted: #bbc7c0;
    --primary: #9fcbbb;
    --on-primary: #0a2b23;
    --accent: #f09a80;
    --border: #39453f;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header,
.site-footer,
.page-shell {
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--primary);
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

.hero {
  min-height: min(720px, calc(100svh - 88px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding-block: clamp(80px, 12vw, 152px);
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
.display-copy {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 590px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 32px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.hero-status span {
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-status:hover span {
  transform: translateX(4px);
}

.rhythm-panel {
  min-height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  background: var(--primary);
  color: var(--on-primary);
}

.rhythm-panel::after {
  position: absolute;
  right: 28px;
  bottom: 24px;
  content: "One story · one step at a time";
  color: currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.rhythm-mark {
  width: min(58%, 250px);
  height: auto;
}

.promise {
  display: grid;
  grid-template-columns: minmax(230px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(48px, 9vw, 128px);
  padding-block: clamp(80px, 12vw, 144px);
  border-top: 1px solid var(--border);
}

.promise h2,
.privacy-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.principles li:last-child {
  border-bottom: 1px solid var(--border);
}

.principle-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.principle-title {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.25;
}

.principle-copy {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
}

.section-label {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 750;
}

.membership-overview {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 9vw, 128px);
  padding-block: clamp(80px, 12vw, 144px);
  border-top: 1px solid var(--border);
}

.membership-heading h2,
.detail-section h2,
.support-band h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-wrap: balance;
}

.membership-heading h2 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.membership-heading > p:not(.section-label) {
  max-width: 52ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.text-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.text-action span {
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.text-action:hover span {
  transform: translateX(4px);
}

.membership-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.membership-benefits li {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
}

.membership-benefits h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.3;
}

.membership-benefits p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
}

.billing-note {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: clamp(32px, 8vw, 96px);
  margin-bottom: clamp(80px, 12vw, 144px);
  padding: clamp(28px, 5vw, 52px);
  background: var(--primary);
  color: var(--on-primary);
}

.billing-note p {
  max-width: 58ch;
  margin: 0;
}

.billing-note p:last-child {
  align-self: end;
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.privacy-shell,
.policy-shell {
  max-width: var(--reading);
  padding-block: clamp(64px, 10vw, 112px);
}

.privacy-header,
.policy-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.privacy-header h1,
.policy-header h1 {
  max-width: 10ch;
}

.privacy-summary,
.policy-summary {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.effective-date {
  display: inline-block;
  margin: 22px 0 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.policy-section {
  padding-block: 30px;
  border-bottom: 1px solid var(--border);
}

.policy-section h2 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.policy-section p {
  margin: 10px 0 0;
  color: var(--muted);
}

.policy-section a {
  color: var(--primary);
  font-weight: 700;
}

.detail-shell {
  max-width: 960px;
  padding-block: clamp(64px, 10vw, 112px);
}

.detail-header {
  padding-bottom: clamp(56px, 8vw, 88px);
  border-bottom: 1px solid var(--border);
}

.detail-header h1,
.policy-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.detail-summary {
  max-width: 65ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.availability-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.availability-notice > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.availability-notice a {
  font-weight: 800;
}

.detail-section {
  padding-block: clamp(52px, 8vw, 80px);
  border-bottom: 1px solid var(--border);
}

.detail-section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 7vw, 80px);
  margin-top: 40px;
}

.detail-list article {
  padding-block: 24px;
  border-top: 1px solid var(--border);
}

.detail-list h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.3;
}

.detail-list p,
.detail-prose p {
  margin: 9px 0 0;
  color: var(--muted);
}

.split-detail {
  display: grid;
  grid-template-columns: minmax(200px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(40px, 8vw, 92px);
}

.detail-prose p:first-child {
  margin-top: 0;
}

.detail-prose a,
.terms-note a {
  color: var(--primary);
  font-weight: 700;
}

.support-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 40px;
  margin-top: clamp(64px, 10vw, 112px);
  padding: clamp(28px, 5vw, 48px);
  background: var(--primary);
  color: var(--on-primary);
}

.support-band h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.support-band p {
  max-width: 58ch;
  margin: 14px 0 0;
}

.support-action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 22px;
  border-radius: 8px;
  background: var(--on-primary);
  color: var(--primary);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.terms-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.shared-book-shell {
  width: min(100% - 48px, var(--content));
  min-height: calc(100svh - 88px);
  margin-inline: auto;
  padding-block: clamp(42px, 7vw, 88px) clamp(80px, 10vw, 128px);
}

.shared-book-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(42px, 7vw, 78px);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.shared-book-rule::before,
.shared-book-rule::after {
  height: 1px;
  background: var(--border);
  content: "";
}

.shared-book-rule::before {
  width: 42px;
}

.shared-book-rule::after {
  flex: 1;
}

.shared-book {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(48px, 9vw, 132px);
}

.shared-cover-stage {
  width: min(100%, 390px);
  aspect-ratio: 2 / 3;
  position: relative;
  justify-self: end;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  overflow: hidden;
  box-shadow: 28px 34px 0 color-mix(in srgb, var(--primary) 13%, transparent);
  animation: book-arrival 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.shared-cover,
.shared-cover-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shared-cover {
  object-fit: contain;
  background: var(--surface);
}

.shared-cover-placeholder {
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--on-primary);
}

.shared-cover-placeholder svg {
  width: 42%;
}

.shared-book-copy {
  max-width: 650px;
  animation: copy-arrival 620ms 100ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.shared-book-copy h1,
.shared-book-error h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 6.4vw, 6.6rem);
}

.shared-author {
  margin: 20px 0 0;
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-style: italic;
}

.shared-description {
  max-width: 58ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.shared-episodes {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shared-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.app-action,
.store-action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.app-action {
  background: var(--primary);
  color: var(--on-primary);
}

.store-action {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}

.app-action:hover,
.store-action:hover {
  transform: translateY(-2px);
}

.shared-note {
  max-width: 60ch;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.shared-book-error {
  max-width: 760px;
  padding-block: 10vh;
}

.shared-book-error p:not(.eyebrow) {
  max-width: 56ch;
  margin: 24px 0 32px;
  color: var(--muted);
}

@keyframes book-arrival {
  from { opacity: 0; transform: translateY(24px) rotate(-1.5deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes copy-arrival {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 780px) {
  .hero,
  .promise,
  .membership-overview,
  .billing-note,
  .split-detail,
  .support-band,
  .shared-book {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 56px;
  }

  .rhythm-panel {
    min-height: 350px;
  }

  .promise {
    gap: 48px;
  }

  .membership-overview {
    gap: 48px;
  }

  .support-band {
    align-items: start;
  }

  .support-action {
    justify-self: start;
  }

  .shared-book {
    gap: 64px;
  }

  .shared-cover-stage {
    width: min(76vw, 350px);
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  .page-shell,
  .shared-book-shell {
    width: min(100% - 32px, var(--content));
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero {
    padding-block: 64px 80px;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .rhythm-panel {
    min-height: 300px;
  }

  .rhythm-panel::after {
    right: 18px;
    bottom: 16px;
    max-width: 22ch;
    text-align: right;
  }

  .site-footer {
    flex-direction: column;
  }

  .membership-benefits li,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .membership-benefits li {
    gap: 8px;
  }

  .detail-list {
    column-gap: 0;
  }

  .support-action {
    width: 100%;
  }

  .shared-book-shell {
    padding-top: 32px;
  }

  .shared-book-copy h1,
  .shared-book-error h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .shared-actions {
    flex-direction: column;
  }

  .app-action,
  .store-action {
    width: 100%;
  }
}

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

  .shared-cover-stage,
  .shared-book-copy {
    animation: none;
  }

  .text-action span,
  .hero-status span,
  .app-action,
  .store-action {
    transition: none;
  }
}
