:root {
  --bg: #f7f1e7;
  --surface: #fffaf1;
  --ink: #171615;
  --ink-soft: #56524b;
  --hair: rgba(23, 22, 21, 0.13);
  --accent: #df6b36;
  --reveal: #356e83;
  --sage: #879f77;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.30, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 280ms;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 52px;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
  --shadow-card: 0 1px 2px rgba(15, 14, 20, 0.05), 0 2px 4px rgba(15, 14, 20, 0.03), 0 0 0 0.5px rgba(15, 14, 20, 0.10);
  --shadow-elevated: 0 4px 8px rgba(15, 14, 20, 0.03), 0 8px 16px rgba(15, 14, 20, 0.04), 0 2px 4px rgba(15, 14, 20, 0.03), 0 0 0 0.5px rgba(15, 14, 20, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #fbfaf6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(23, 22, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 22, 21, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  font-size: 82px;
  font-weight: 760;
}

h2 {
  font-size: 44px;
  font-weight: 720;
}

h3 {
  font-size: 23px;
  font-weight: 680;
}

p {
  margin: 0;
  max-width: 64ch;
  text-wrap: pretty;
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--reveal);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.topbar {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: min(920px, calc(100vw - 80px));
  min-height: 52px;
  padding: 8px 10px 8px 18px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 12px 28px rgba(31, 64, 78, 0.12),
    0 0 0 0.5px rgba(23, 22, 21, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 146px;
  height: auto;
}

.navlinks {
  display: flex;
  gap: 10px;
  align-items: center;
}

.navlinks a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.navlinks a:last-child {
  color: #fffaf1;
  background: #050505;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.34) inset;
}

.navlinks a:hover {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.72);
}

.navlinks a:last-child:hover {
  color: #fffaf1;
  background: #242321;
}

.hero {
  position: relative;
  min-height: min(920px, calc(100svh - 40px));
  margin: 20px;
  border-radius: 24px;
  display: block;
  padding: 196px var(--gutter) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 11% 35%, rgba(255, 255, 255, 0.82), transparent 10%),
    radial-gradient(circle at 95% 18%, rgba(255, 255, 255, 0.72), transparent 10%),
    linear-gradient(180deg, #bfe9f5 0%, #d7f0f5 52%, #f6e6ba 100%);
  box-shadow: 0 26px 52px rgba(46, 70, 72, 0.16);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(23, 22, 21, 0.36) 0.7px, transparent 0.7px);
  background-size: 6px 6px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lede {
  margin: 18px auto 0;
  font-size: 21px;
  line-height: 1.45;
  color: rgba(23, 22, 21, 0.72);
}

.signup {
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 10px;
  align-items: start;
  max-width: 560px;
}

.signup input {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 20px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.92);
  box-shadow: var(--shadow-card);
}

.signup input::placeholder {
  color: rgba(86, 82, 75, 0.72);
}

.signup button,
.secondary-action {
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(23, 22, 21, 0.22);
}

.signup button:hover,
.secondary-action:hover {
  background: #2a2927;
}

.form-note {
  grid-column: 1 / -1;
  min-height: 22px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

.form-note[data-state="success"] {
  color: #2f6f43;
}

.form-note[data-state="error"] {
  color: #9f3429;
}

.robot-stage {
  position: absolute;
  left: 50%;
  bottom: -195px;
  z-index: 1;
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(880px, 74vw);
  min-height: 0;
}

.robot-stage::before {
  display: none;
}

.robot-stage img {
  position: relative;
  width: 100%;
  max-height: none;
  border-radius: 22px 22px 0 0;
  object-fit: cover;
  box-shadow:
    0 28px 58px rgba(23, 22, 21, 0.18),
    0 0 0 0.5px rgba(23, 22, 21, 0.12);
  animation: none;
}

.ticker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 12px auto 0;
  padding: 0 var(--gutter) 44px;
}

.ticker span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0 13px;
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 0 0 0.5px var(--hair);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px var(--gutter);
  border-top: 1px solid var(--hair);
}

.latest,
.split,
.signals,
.archive,
.podcast-discovery,
.subscribe-band {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.episode-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #171615;
  color: #fffaf1;
  box-shadow: var(--shadow-elevated);
}

.episode-meta span {
  display: inline-block;
  margin-bottom: 8px;
  color: #f0a071;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.episode-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.06;
}

.episode-meta p {
  margin-top: 10px;
  color: rgba(255, 250, 241, 0.72);
  font-size: 15px;
}

.section-copy {
  margin-top: 14px;
  color: var(--ink-soft);
}

.feed-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: start;
}

.feed-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0 18px;
  background: rgba(255, 250, 241, 0.78);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.feed-link:first-child {
  background: var(--ink);
  color: #fffaf1;
}

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

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

.archive-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 241, 0.72);
  box-shadow: var(--shadow-card);
}

.archive-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--reveal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-item h3 {
  font-size: 21px;
}

.archive-item p {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.45;
}

.archive-play {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0 18px;
  background: var(--ink);
  color: #fffaf1;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.archive-loading {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 241, 0.72);
  box-shadow: var(--shadow-card);
  color: var(--ink-soft);
}

.signal-panel {
  display: grid;
  gap: 14px;
}

.signal-search {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 20px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.82);
  box-shadow: var(--shadow-card);
}

.signal-count {
  color: var(--ink-soft);
  font-size: 14px;
}

.signal-list {
  display: grid;
  gap: 12px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.signal-item {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 241, 0.72);
  box-shadow: var(--shadow-card);
}

.signal-topline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.signal-topline span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0 9px;
  background: rgba(53, 110, 131, 0.10);
  color: var(--reveal);
  font-size: 12px;
  font-weight: 800;
}

.signal-item h3 {
  font-size: 22px;
}

.signal-item p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.signal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.signal-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0 14px;
  background: var(--ink);
  color: #fffaf1;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.secondary-action {
  background: #fffaf1;
  color: #171615;
  white-space: nowrap;
}

.secondary-action:hover {
  background: #f2dcc9;
}

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

.reasons article {
  padding: 22px;
  min-height: 196px;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 241, 0.68);
  box-shadow: var(--shadow-card);
}

.reasons span {
  display: block;
  margin-bottom: 24px;
  color: var(--reveal);
  font-size: 13px;
  font-weight: 800;
}

.reasons p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.subscribe-band {
  margin-bottom: 54px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(53, 110, 131, 0.10), transparent 42%),
    rgba(255, 250, 241, 0.82);
  box-shadow: var(--shadow-card);
}

.subscribe-band > div > p:last-child {
  margin-top: 14px;
  color: var(--ink-soft);
}

.signup.compact {
  margin-top: 0;
  align-self: center;
}

.pressable {
  transition: transform var(--duration-fast) var(--ease-smooth), box-shadow var(--duration-normal) var(--ease-smooth);
}

.pressable:active {
  transform: scale(0.98);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes robot-float {
  from {
    transform: translate3d(0, -8px, 0) rotate(-1deg);
  }
  to {
    transform: translate3d(0, 8px, 0) rotate(1.2deg);
  }
}

@media (max-width: 900px) {
  .topbar {
    top: 18px;
    width: calc(100vw - 32px);
  }

  .navlinks {
    display: none;
  }

  .hero {
    min-height: auto;
    max-height: none;
    margin: 12px;
    padding-top: 118px;
    padding-bottom: 0;
  }

  h1 {
    font-size: 55px;
  }

  h2 {
    font-size: 36px;
  }

  .lede {
    font-size: 18px;
  }

  .robot-stage {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: calc(100% + 24px);
    margin: 40px -12px 0;
    justify-content: center;
  }

  .robot-stage img {
    width: 100%;
    max-height: none;
  }

  .latest,
  .split,
  .signals,
  .archive,
  .podcast-discovery,
  .subscribe-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .topbar {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand img {
    width: 148px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 31px;
  }

  .signup,
  .signup.compact {
    grid-template-columns: 1fr;
  }

  .signup button {
    width: 100%;
  }

  .episode-panel {
    grid-template-columns: 1fr;
  }

  .archive-item {
    grid-template-columns: 1fr;
  }

  .secondary-action {
    width: 100%;
  }

  .archive-play {
    width: 100%;
  }

  .feed-link {
    width: 100%;
  }

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

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
