:root {
  --cream: #f7f0df;
  --paper: #fffdf6;
  --ink: #213a34;
  --ink-soft: #5d6e68;
  --green: #176b58;
  --green-deep: #0e5748;
  --green-pale: #e4f1e9;
  --coral: #e5674d;
  --line: #d9d1bb;
  --shadow: 0 18px 48px rgba(49, 58, 45, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(241, 190, 82, 0.24), transparent 24%),
    radial-gradient(circle at 88% 80%, rgba(53, 145, 112, 0.15), transparent 26%),
    var(--cream);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 4px solid rgba(229, 103, 77, 0.35);
  outline-offset: 4px;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  min-height: 100dvh;
  margin: 0 auto;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 20px 13px;
  border-bottom: 1px solid rgba(217, 209, 187, 0.72);
  background: rgba(255, 253, 246, 0.96);
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px 15px 15px 5px;
  color: #fff;
  background: var(--green);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}

.brand-copy p,
.brand-copy strong {
  margin: 0;
}

.brand-copy p {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-copy strong {
  display: block;
  margin-top: 1px;
  font-size: 15px;
}

main {
  padding: 0 20px 36px;
}

.hero {
  padding: 38px 2px 26px;
}

.eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid #bcd6c9;
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--green-pale);
  font-size: 11px;
  font-weight: 900;
}

h1,
h2 {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.035em;
}

h1 {
  margin: 15px 0 11px;
  font-size: clamp(31px, 9vw, 48px);
  line-height: 1.3;
}

.hero > p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

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

.episode-card {
  overflow: hidden;
  border: 1px solid rgba(205, 196, 172, 0.9);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(46, 63, 50, 0.12);
}

.episode-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--green-pale);
}

.episode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-image span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 107, 88, 0.94);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(23, 71, 57, 0.2);
}

.episode-body {
  padding: 21px 19px 20px;
}

.episode-topic {
  margin: 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.episode-body h2 {
  margin: 5px 0 9px;
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.35;
}

.episode-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.episode-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.button-youtube {
  color: #fff;
  background: #c83a37;
  box-shadow: inset 0 -4px 0 rgba(105, 24, 22, 0.18);
}

.button-prompt {
  color: #fff;
  background: var(--green);
  box-shadow: inset 0 -4px 0 rgba(8, 65, 52, 0.24);
}

.next-note {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 11px;
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed #b9cfc4;
  border-radius: 20px;
  background: rgba(228, 241, 233, 0.74);
}

.next-note > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--green);
  background: #fff;
  font-size: 22px;
  font-weight: 900;
}

.next-note strong {
  font-size: 13px;
}

.next-note p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 20px 22px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(217, 209, 187, 0.72);
  color: var(--ink-soft);
  background: rgba(255, 253, 246, 0.94);
  font-size: 10px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--green-deep);
  font-weight: 900;
}

@media (min-width: 761px) {
  body {
    padding: 24px 0;
  }

  .site-shell {
    min-height: calc(100dvh - 48px);
    overflow: hidden;
    border-radius: 30px;
  }

  main {
    padding-right: 34px;
    padding-left: 34px;
  }

  .episode-card {
    display: grid;
    grid-template-columns: minmax(250px, 0.9fr) minmax(320px, 1.1fr);
  }

  .episode-image {
    aspect-ratio: auto;
    min-height: 310px;
  }

  .episode-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
  }
}

@media (max-width: 390px) {
  main {
    padding-right: 15px;
    padding-left: 15px;
  }

  .hero {
    padding-top: 30px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
