:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20221e;
  background: #f6f3ed;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #e65f40; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
.page { max-width: 1320px; margin: auto; padding: 0 clamp(20px, 5vw, 72px); }

.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d5d1c9; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; font-size: 22px; font-weight: 900; letter-spacing: -.09em; line-height: 1; }
.wordmark > span:nth-child(2), .wordmark-dot { color: #ed6749; }
.wordmark-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 9px; border-radius: 9px; background: #ed6749; color: #fff9f0; font-size: 21px; letter-spacing: 0; }
.header-note, .eyebrow, .project-action, .art-label, .art-corner, .card-tag, .card-footer, .site-footer { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.header-note { color: #555b53; white-space: nowrap; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: #e96d50; box-shadow: 0 0 0 4px #e96d5026; vertical-align: 2px; }

.intro { padding: 49px 0 36px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 11px; color: #777d72; }
.eyebrow-line { width: 22px; height: 1px; background: #ed6749; }
h1 { margin: 0 0 8px; font-size: clamp(45px, 5.8vw, 80px); line-height: 1.04; font-weight: 760; letter-spacing: -.075em; }
h1 span { color: #ed6749; }
.intro > p:last-child { margin: 0; color: #656c62; font-size: 16px; line-height: 1.5; }

.projects { padding: 0 0 40px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 17px; }
.section-heading .eyebrow { margin-bottom: 4px; }
h2 { margin: 0; font-size: clamp(29px, 3.1vw, 39px); line-height: 1.12; letter-spacing: -.06em; }
.count { display: inline-block; margin-left: 10px; padding: 4px 6px; border: 1px solid #c9c6be; border-radius: 6px; color: #7c8076; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; letter-spacing: 0; vertical-align: middle; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project-card { min-width: 0; min-height: 158px; display: flex; align-items: flex-start; gap: 16px; padding: 16px; border: 1px solid #d9d5cd; border-radius: 17px; background: #fffdfa; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 13px 30px #3836282c; }
.project-card.is-pending { cursor: default; }
.project-card.is-pending:hover { transform: none; box-shadow: none; }
.project-art { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 11px; object-fit: cover; }
.project-copy { min-width: 0; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; }
.project-card strong { font-size: clamp(19px, 2vw, 26px); font-weight: 790; letter-spacing: -.055em; line-height: 1.1; }
.project-description { margin: 7px 0 14px; color: #626960; font-size: 12px; line-height: 1.4; }
.project-action { margin-top: auto; color: #d7573c; line-height: 1.3; }
.project-action span { font-size: 15px; vertical-align: -1px; }
.is-pending .project-action { color: #747971; }

.collection { padding: 34px 0 62px; border-top: 1px solid #d5d1c9; }
.collection .section-heading { margin-bottom: 8px; }
.ad-disclosure { margin: 0 0 19px; color: #656c62; font-size: 14px; line-height: 1.5; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; border: 1px solid #d9d5cd; border-radius: 17px; background: #fffdfa; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 13px 30px #38362822; }
.card-art { position: relative; height: 165px; overflow: hidden; }
.card-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wispr-art { background: radial-gradient(circle at 48% 53%, #ffc0a6 0, #ff9c83 52%, #f08472 100%); color: #3b2a27; }
.railway-art { background: radial-gradient(circle at 68% 41%, #36304e 0, #17151e 58%, #100f16 100%); color: #e0d8f6; }
.art-label, .art-corner { position: absolute; z-index: 1; }
.art-label { top: 15px; left: 19px; }
.art-corner { right: 19px; bottom: 14px; }
.card-content { flex: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 22px 18px; }
.card-tag { color: #d7573c; }
.railway .card-tag { color: #7760c7; }
h3 { margin: 6px 0 5px; font-size: clamp(27px, 2.8vw, 36px); letter-spacing: -.06em; line-height: 1.1; }
.card-content p { max-width: 360px; margin: 0; color: #6f766e; font-size: 14px; line-height: 1.45; }
.card-arrow { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border: 1px solid #d4d0c9; border-radius: 50%; color: #3d403b; font-size: 20px; }
.card-footer { display: flex; justify-content: space-between; margin: 0 22px; padding: 12px 0 14px; border-top: 1px solid #e3dfd7; color: #595e57; }
.card-footer span { color: #ed6749; font-size: 14px; }
.railway .card-footer span { color: #7760c7; }

.site-footer { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #d5d1c9; color: #797d75; }
.site-footer > span:last-child span { color: #ed6749; font-size: 16px; vertical-align: -2px; }

.podcast-main { padding-bottom: 36px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 25px 0; color: #656c62; font-size: 13px; line-height: 1.5; }
.breadcrumbs a { text-underline-offset: 3px; }
.show-hero { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 30px; padding: 15px 0 35px; }
.show-cover { display: block; width: 170px; height: 170px; border-radius: 20px; }
.show-hero h1 { font-size: clamp(38px, 4.8vw, 62px); line-height: 1.08; letter-spacing: -.055em; }
.show-tagline { margin: 12px 0 20px; color: #656c62; font-size: 18px; line-height: 1.5; }
.listen-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; font-size: 14px; }
.listen-links a { text-underline-offset: 4px; }
.listen-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 17px; border-radius: 9px; background: #20221e; color: #fffdfa; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.4; }
.reading-copy { font-size: 16px; line-height: 1.8; color: #4d554b; }
.reading-copy h2 { margin: 0 0 15px; color: #20221e; font-size: 29px; letter-spacing: -.04em; }
.reading-copy p { margin-bottom: 17px; }
.show-about { max-width: 820px; padding: 22px 0 30px; }
.episode-section { padding: 30px 0 35px; border-top: 1px solid #d5d1c9; }
.episode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.episode-card { min-width: 0; display: flex; flex-direction: column; padding: 23px; border: 1px solid #d9d5cd; border-radius: 17px; background: #fffdfa; }
.episode-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 15px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: #656c62; line-height: 1.5; }
.episode-card h3 { margin: 0 0 12px; font-size: 25px; line-height: 1.25; letter-spacing: -.035em; }
.episode-card h3 a { text-decoration: none; }
.episode-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.episode-card > p:not(.episode-meta) { color: #626960; font-size: 14px; line-height: 1.7; }
.text-link { color: #b64028; font-size: 14px; font-weight: 600; line-height: 1.5; text-underline-offset: 4px; }
.episode-card > .text-link { margin-top: auto; }
.featured-listen { max-width: 820px; padding: 20px 0 40px; }
.podcast-player { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; margin: 15px 0 20px; }
.episode-header { max-width: 1060px; padding: 10px 0 24px; }
.episode-header h1 { margin: 0 0 20px; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
.episode-header .eyebrow a { text-decoration: none; }
.episode-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 55px; padding: 0 0 35px; }
.episode-copy { max-width: 760px; }
.episode-copy section { padding: 12px 0 23px; }
.episode-copy ul { margin: 0; padding-left: 23px; }
.episode-copy li { padding-left: 4px; margin-bottom: 12px; }
.episode-copy .try-this { margin-bottom: 25px; padding: 23px; background: #ede9df; border-radius: 13px; }
.try-this p:last-child { margin-bottom: 0; }
.episode-notes { border-top: 1px solid #d5d1c9; }
.episode-listen { min-width: 0; padding: 23px; border: 1px solid #d9d5cd; border-radius: 17px; background: #fffdfa; }
.episode-listen h2 { font-size: 24px; letter-spacing: -.04em; line-height: 1.2; }
.episode-listen > a { display: flex; margin-top: 15px; }
.episode-listen .text-link { margin-top: 20px; }

@media (max-width: 1000px) {
  .episode-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; }
  .episode-listen { padding: 16px; }
}

@media (max-width: 760px) {
  .show-hero { grid-template-columns: 105px minmax(0, 1fr); gap: 20px; }
  .show-cover { width: 105px; height: 105px; border-radius: 14px; }
  .show-hero h1 { font-size: 37px; }
  .show-tagline { font-size: 16px; }
  .episode-grid, .episode-layout { grid-template-columns: 1fr; }
  .episode-listen { grid-row: 1; padding: 20px; }
  .episode-copy { padding-top: 8px; }
  .reading-copy { font-size: 15px; }
  .episode-card { padding: 20px; }
}

@media (max-width: 520px) {
  .breadcrumbs { padding: 20px 0; font-size: 12px; }
  .show-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 10px; }
  .show-hero h1 { font-size: 40px; }
  .show-tagline { margin-bottom: 20px; }
  .listen-links { gap: 15px; }
  .episode-header h1 { font-size: 35px; }
  .episode-card h3 { font-size: 23px; }
}

@media (max-width: 860px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 112px; }
}

@media (max-width: 720px) {
  .project-grid { gap: 9px; }
  .project-card { padding: 13px; gap: 12px; }
  .project-art { width: 58px; height: 58px; flex-basis: 58px; }
  .project-card strong { font-size: 18px; }
  .cards { grid-template-columns: 1fr; }
  .card-art { height: 180px; }
}

@media (max-width: 520px) {
  .site-header { height: 66px; }
  .wordmark { font-size: 19px; }
  .wordmark-icon { width: 27px; height: 27px; font-size: 19px; }
  .header-note { font-size: 0; }
  .live-dot { margin-right: 5px; }
  .intro { padding: 30px 0 27px; }
  h1 { font-size: clamp(43px, 11vw, 58px); }
  .intro > p:last-child { font-size: 14px; }
  .projects { padding-bottom: 29px; }
  .project-card { min-height: 112px; padding: 13px; }
  .project-art { width: 76px; height: 76px; flex-basis: 76px; }
  .project-card strong { font-size: 23px; }
  .project-description { margin: 5px 0 8px; }
  .collection { padding: 27px 0 45px; }
  .ad-disclosure { font-size: 13px; }
  .card-art { height: 145px; }
  .card-content { padding: 17px 19px 15px; }
  .card-footer { margin: 0 19px; }
  .site-footer { min-height: 60px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .project-card { transition: none; }
}
