:root {
  --paper: #f5efe6;
  --paper-strong: #fffaf3;
  --paper-soft: rgba(255, 250, 243, 0.74);
  --ink: #141b1a;
  --ink-soft: #5d6a67;
  --ink-faint: #83918d;
  --accent: #c9692e;
  --accent-deep: #8c3815;
  --accent-soft: rgba(201, 105, 46, 0.14);
  --forest: #1b2827;
  --forest-soft: #293c39;
  --line: rgba(20, 27, 26, 0.1);
  --line-strong: rgba(20, 27, 26, 0.18);
  --shadow-lg: 0 34px 80px rgba(20, 27, 26, 0.16);
  --shadow-md: 0 18px 42px rgba(20, 27, 26, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 10% 14%, rgba(201, 105, 46, 0.16), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(38, 71, 67, 0.16), transparent 24%),
    linear-gradient(180deg, #faf4eb 0%, #f4ece0 56%, #f8f3ec 100%);
}

a,
button,
input,
textarea,
select {
  font: inherit;
}

img,
video {
  max-width: 100%;
}

.ambient {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(36px);
  opacity: 0.7;
}

.ambient-a {
  left: -6vw;
  bottom: 10%;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  background: rgba(201, 105, 46, 0.18);
}

.ambient-b {
  right: -5vw;
  top: 12%;
  width: 28vw;
  height: 28vw;
  border-radius: 44% 56% 58% 42%;
  background: rgba(53, 88, 82, 0.18);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  width: min(1320px, calc(100vw - 28px));
  margin: 16px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 10px;
  z-index: 20;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 250, 243, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(20, 27, 26, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 26px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 18px 30px rgba(140, 56, 21, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-copy strong {
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 23px;
  letter-spacing: 0.03em;
}

.brand-copy span {
  color: var(--ink-faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
}

.site-nav a,
.admin-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  transition: color 180ms ease;
}

.site-nav a:hover,
.admin-link:hover {
  color: var(--ink);
}

.site-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 18px 32px rgba(140, 56, 21, 0.24);
}

.button.secondary {
  color: var(--paper-strong);
  background: linear-gradient(135deg, #2d403d, #172120);
  box-shadow: 0 16px 28px rgba(23, 33, 32, 0.18);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 250, 243, 0.58);
  border: 1px solid rgba(20, 27, 26, 0.1);
}

.button.stretch {
  width: 100%;
}

.app-frame {
  width: min(1280px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.view-headline,
.showcase h1,
.section-head h2,
.spotlight-card h2,
.title-card h3,
.plan-card h3,
.surface h2,
.episode-card h3,
.auth-copy h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
}

.view-headline,
.showcase h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.92;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(22, 32, 31, 0.96), rgba(34, 49, 48, 0.92)),
    radial-gradient(circle at 74% 18%, rgba(201, 105, 46, 0.2), transparent 26%);
  color: var(--paper-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.showcase__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.showcase__lede {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 250, 243, 0.8);
  font-size: 18px;
  line-height: 1.65;
}

.showcase__stage {
  display: flex;
  align-items: stretch;
}

.hero-actions,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.metric-chip {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.08);
  border: 1px solid rgba(255, 250, 243, 0.08);
}

.metric-chip strong {
  display: block;
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
}

.metric-chip span {
  color: rgba(255, 250, 243, 0.72);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spotlight-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(260px, 1.35fr) auto;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 250, 243, 0.08);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
}

.spotlight-card--empty {
  display: flex;
}

.spotlight-card__art,
.title-card__art,
.title-hero__art,
.viewer-stage__art {
  position: relative;
  overflow: hidden;
}

.spotlight-card__art {
  aspect-ratio: 16 / 10;
}

.spotlight-card__veil,
.title-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 24%, rgba(10, 16, 16, 0.14) 48%, rgba(10, 16, 16, 0.74) 100%);
  pointer-events: none;
}

.spotlight-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight-card__kicker {
  margin: 0;
  color: rgba(255, 250, 243, 0.72);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.spotlight-card p {
  margin: 0;
  color: rgba(255, 250, 243, 0.8);
  line-height: 1.6;
}

.spotlight-card__footer,
.title-card__footer,
.episode-card__actions,
.membership-banner__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.signal-card,
.surface,
.plan-card,
.episode-card,
.status-banner,
.account-hero,
.pricing-hero,
.reader-hero,
.membership-banner {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--paper-soft);
  box-shadow: var(--shadow-md);
}

.signal-card {
  padding: 22px;
}

.signal-card h3 {
  margin: 0 0 10px;
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 30px;
  line-height: 1.02;
}

.signal-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.section-block {
  margin-top: 38px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-head--stack {
  align-items: start;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-soft);
  line-height: 1.6;
}

.shelf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 18px;
}

.shelf-layout--single {
  grid-template-columns: 1fr;
}

.title-cluster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.title-cluster--account {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.title-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(240px, 1.15fr) auto;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.82);
  box-shadow: 0 18px 34px rgba(20, 27, 26, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.title-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(20, 27, 26, 0.12);
  border-color: var(--line-strong);
}

.title-card--lead {
  grid-template-rows: minmax(360px, 1.35fr) auto;
}

.title-card--mini {
  grid-template-rows: minmax(180px, 1fr) auto;
}

.title-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.title-card h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 0.98;
}

.title-card--tile h3,
.title-card--mini h3 {
  font-size: 25px;
}

.title-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.micro-pill,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
}

.pill {
  padding: 10px 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
}

.micro-pill {
  padding: 8px 10px;
  background: rgba(20, 27, 26, 0.06);
  color: var(--ink-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-link {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
}

.media-frame__image,
.viewer-stage__art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.title-card__art {
  aspect-ratio: 4 / 5;
}

.title-card--lead .title-card__art {
  aspect-ratio: 16 / 11;
}

.title-card--mini .title-card__art {
  aspect-ratio: 4 / 4.8;
}

.title-hero {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 24px;
}

.title-hero__art {
  aspect-ratio: 4 / 5.2;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(20, 27, 26, 0.16);
}

.title-hero__copy,
.surface,
.plan-card,
.pricing-hero,
.reader-hero,
.account-hero,
.membership-banner {
  padding: 28px;
}

.title-hero__lede {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.detail-grid,
.dashboard-grid,
.pricing-grid,
.value-grid,
.viewer-stage {
  display: grid;
  gap: 18px;
}

.detail-grid,
.dashboard-grid,
.pricing-grid,
.value-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.stat-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(20, 27, 26, 0.08);
}

.stat-list div:last-child {
  border-bottom: 0;
}

.stat-list span {
  color: var(--ink-soft);
}

.episode-list {
  display: grid;
  gap: 16px;
}

.episode-list--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.episode-card {
  padding: 22px;
}

.episode-card--editorial {
  display: grid;
  gap: 14px;
}

.episode-card--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.episode-card__copy {
  display: grid;
  gap: 8px;
}

.episode-card__copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.episode-card__eyebrow {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.episode-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paywall-banner {
  margin-top: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: var(--radius-md);
  background: rgba(20, 27, 26, 0.06);
  border: 1px solid rgba(20, 27, 26, 0.08);
}

.paywall-banner strong,
.status-banner strong {
  display: block;
  margin-bottom: 6px;
}

.paywall-banner p,
.status-banner span,
.notice {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.reader-stage {
  margin-top: 22px;
}

.reader-stack {
  display: grid;
  gap: 18px;
}

.reader-stack img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  background: #ece3d6;
  box-shadow: 0 18px 36px rgba(20, 27, 26, 0.08);
}

.reader-copy {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.88);
  box-shadow: var(--shadow-md);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 20px;
  line-height: 1.88;
}

.viewer-stage {
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  align-items: start;
}

.viewer-stage__art {
  aspect-ratio: 4 / 5.2;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.viewer-stage__copy {
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.88);
  box-shadow: var(--shadow-md);
}

.native-player {
  width: 100%;
  border-radius: var(--radius-md);
  background: #000;
  margin-bottom: 16px;
}

.pricing-hero,
.account-hero,
.reader-hero,
.membership-banner {
  display: grid;
  gap: 16px;
}

.plan-card {
  position: relative;
}

.plan-card--yearly {
  border-color: rgba(201, 105, 46, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(255, 245, 235, 0.92));
}

.plan-card h3 {
  font-size: 34px;
  line-height: 0.98;
  margin-bottom: 10px;
}

.price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 14px;
}

.price strong {
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 48px;
  line-height: 1;
}

.price span {
  color: var(--ink-soft);
}

.plan-list {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

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

.notice {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(20, 27, 26, 0.05);
  border: 1px solid rgba(20, 27, 26, 0.07);
}

.media-frame--empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background:
    linear-gradient(135deg, #e9dfd0, #f7efe3),
    radial-gradient(circle at 82% 18%, rgba(201, 105, 46, 0.14), transparent 26%);
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.auth-dialog {
  width: min(940px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  border-radius: 28px;
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgba(20, 27, 26, 0.5);
  backdrop-filter: blur(10px);
}

.auth-dialog__frame {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 520px;
}

.auth-copy {
  padding: 42px;
  color: var(--paper-strong);
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 105, 46, 0.26), transparent 26%),
    linear-gradient(140deg, #233432, #131919);
}

.auth-copy h2 {
  font-size: 48px;
  line-height: 0.94;
  margin-bottom: 16px;
}

.auth-copy p,
.auth-copy li {
  color: rgba(255, 250, 243, 0.82);
  line-height: 1.7;
}

.auth-copy ul {
  padding-left: 18px;
}

.auth-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 250, 243, 0.98);
}

.auth-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  width: max-content;
  border-radius: 999px;
  background: rgba(20, 27, 26, 0.06);
}

.auth-tab {
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.auth-tab--active {
  background: white;
  box-shadow: 0 10px 20px rgba(20, 27, 26, 0.08);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(20, 27, 26, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  background: white;
  color: var(--ink);
}

.auth-message {
  min-height: 1.4em;
  color: var(--accent-deep);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 560ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

.fade-in.delay-1 { animation-delay: 90ms; }
.fade-in.delay-2 { animation-delay: 180ms; }
.fade-in.delay-3 { animation-delay: 270ms; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .showcase,
  .shelf-layout,
  .title-hero,
  .viewer-stage,
  .detail-grid,
  .dashboard-grid,
  .pricing-grid,
  .value-grid,
  .episode-list--wide,
  .membership-banner,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .title-cluster,
  .title-cluster--account,
  .signal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(100vw - 16px, 1320px);
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 24px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .site-actions {
    width: 100%;
    justify-content: center;
  }

  .app-frame {
    width: min(100vw - 18px, 1280px);
    padding-top: 20px;
  }

  .showcase,
  .title-hero__copy,
  .surface,
  .plan-card,
  .reader-hero,
  .pricing-hero,
  .account-hero,
  .membership-banner,
  .viewer-stage__copy {
    padding: 22px;
  }

  .title-cluster,
  .title-cluster--account,
  .signal-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .episode-card--compact,
  .status-banner {
    align-items: start;
    flex-direction: column;
  }

  .view-headline,
  .showcase h1 {
    font-size: 40px;
  }
}
