:root {
  --ink: #161513;
  --muted: #6b665f;
  --line: #ded8ce;
  --paper: #f8f4ec;
  --paper-strong: #fffdf7;
  --accent: #1f5e4d;
  --accent-dark: #123a30;
  --terracotta: #a6533b;
  --blue-gray: #dfe7e8;
  --shadow: 0 18px 50px rgba(22, 21, 19, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  color: #fffdf7;
  background: linear-gradient(rgba(22, 21, 19, 0.52), rgba(22, 21, 19, 0));
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  font-size: 14px;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #161513;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 14, 12, 0.82) 0%, rgba(15, 14, 12, 0.5) 40%, rgba(15, 14, 12, 0.08) 100%),
    linear-gradient(0deg, rgba(22, 21, 19, 0.56) 0%, rgba(22, 21, 19, 0) 46%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 40px));
  padding: 140px 0 12vh clamp(20px, 5vw, 72px);
  color: #fffdf7;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f5c0a8;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  font-family: "Noto Serif SC", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(42px, 7vw, 92px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 22px;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 253, 247, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #fffdf7;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.ghost {
  border-color: rgba(255, 253, 247, 0.4);
  color: #fffdf7;
}

.button.secondary {
  border-color: var(--line);
  background: var(--paper-strong);
  color: var(--ink);
}

.band {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1fr);
  gap: clamp(28px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
}

.intro p:not(.section-kicker),
.subscribe p,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.filters,
.payment-methods,
.share-actions,
.admin-nav,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter,
.payment-method,
.share-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--paper-strong);
  color: var(--muted);
  cursor: pointer;
}

.filter.active,
.payment-method.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffdf7;
}

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

.work-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--paper-strong);
  box-shadow: 0 1px 0 rgba(22, 21, 19, 0.03);
}

.work-card:hover {
  border-color: rgba(31, 94, 77, 0.46);
  box-shadow: var(--shadow);
}

.work-type {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--blue-gray);
  color: #27484a;
  font-size: 12px;
  font-weight: 700;
}

.work-card p {
  margin: 14px 0 24px;
  color: var(--muted);
}

.work-actions {
  display: grid;
  gap: 14px;
}

.work-link {
  color: var(--accent);
  font-weight: 700;
}

.share-actions button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.subscribe {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 84px);
  border-block: 1px solid var(--line);
}

.subscribe-form,
.work-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fffdf7;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 94, 77, 0.22);
  border-color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

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

.plan-card,
.checkout-panel,
.player-panel,
.episode-list,
.offline-payment {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.plan-card,
.checkout-panel,
.offline-payment {
  padding: 22px;
}

.checkout-panel {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.plan-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card.featured {
  border-color: rgba(31, 94, 77, 0.5);
}

.plan-tag {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--accent);
  color: #fffdf7;
  font-size: 12px;
  font-weight: 700;
}

.plan-tag.quiet {
  background: var(--blue-gray);
  color: #27484a;
}

.price {
  margin: 24px 0 14px;
  font-size: 34px;
  font-weight: 700;
}

.price span {
  color: var(--muted);
  font-size: 16px;
}

.podcast-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.player-panel,
.episode-list {
  padding: 22px;
}

.player-panel audio {
  width: 100%;
  margin-top: 20px;
}

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

.studio .muted {
  max-width: 460px;
}

.work-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 30px);
  background: var(--paper-strong);
}

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

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.admin-body {
  background: #f4efe5;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(12px);
}

.admin-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.admin-hero h1 {
  color: var(--ink);
  font-size: clamp(42px, 6vw, 78px);
}

.admin-hero .muted {
  max-width: 680px;
  margin-top: 16px;
}

.metric-grid,
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.admin-section,
.pipeline-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.metric-card,
.pipeline-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.metric-card span,
.metric-card small,
.pipeline-grid p {
  color: var(--muted);
}

.metric-card strong {
  font-size: 28px;
}

.admin-section {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px);
}

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

.admin-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table [role="row"] {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-table [role="row"]:last-child {
  border-bottom: 0;
}

.table-head {
  background: var(--blue-gray);
  color: #27484a;
  font-weight: 700;
}

@media (max-width: 900px) {
  .metric-grid,
  .pipeline-grid,
  .podcast-shell,
  .membership-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-table [role="row"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header,
  .admin-topbar {
    padding: 14px 20px;
  }

  .nav-links {
    gap: 14px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-left: 16px;
    padding-bottom: 9vh;
  }

  .intro,
  .subscribe,
  .work-form,
  .metric-grid,
  .pipeline-grid,
  .podcast-shell,
  .membership-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .admin-hero,
  .admin-section-head,
  .admin-topbar {
    display: grid;
    align-items: start;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .brand {
    max-width: 128px;
  }

  .nav-links,
  .admin-nav {
    font-size: 13px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }
}
