/* Airway-Aware podcast site */
@font-face { font-family: "Bricolage"; src: url(/assets/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(/assets/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --spruce: #0F3B3A;
  --spruce-2: #164947;
  --mist: #EEF4F1;
  --paper: #F8FBF9;
  --glacier: #BFE0DA;
  --link: #1D6B64;
  --dawn: #F0A36B;
  --muted: #4E6463;
  --rule: #CFDDD8;
  --wrap: 72rem;
  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--spruce); font: 400 1.125rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--spruce); }
:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--spruce); color: var(--mist); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 720px) { .wrap { padding: 0 2rem; } }
.small { font-size: .9rem; color: var(--muted); }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .6em; }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
p { margin: 0 0 1em; }

/* header */
.site-head { background: var(--mist); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--spruce); text-decoration: none; font: 800 1.2rem/1 var(--display); }
.brand svg path { fill: none; stroke: var(--dawn); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
nav.top ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: .5rem 0; flex-wrap: wrap; }
nav.top a { color: var(--spruce); text-decoration: none; font-weight: 700; font-size: 1rem; }
nav.top a:hover { text-decoration: underline; }

/* hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1fr minmax(16rem, 22rem); gap: 3rem; } }
.hero h1 { font-weight: 800; font-size: clamp(3.6rem, 13vw, 8.75rem); line-height: .88; letter-spacing: -.035em; margin: 0 0 .25em; }
.hero h1 span { display: block; }
.with { font: 700 clamp(1.3rem, 2.6vw, 1.7rem)/1.2 var(--display); margin: 0 0 1rem; }
.lede { font-size: clamp(1.15rem, 2vw, 1.3rem); max-width: 38rem; color: var(--spruce-2); }
.cover { display: none; width: 100%; max-width: 22rem; border-radius: 6px; box-shadow: 0 18px 40px -22px rgba(15, 59, 58, .55); justify-self: start; }
@media (min-width: 860px) { .cover { display: block; justify-self: end; } }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-block; background: var(--spruce); color: var(--mist); text-decoration: none; font-weight: 700; padding: .8rem 1.25rem; border-radius: 999px; border: 2px solid var(--spruce); }
.btn:hover { background: var(--spruce-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--spruce); }
.btn.ghost:hover { background: var(--glacier); }
svg.breath { display: block; width: 100%; height: clamp(60px, 9vw, 120px); margin-top: clamp(1.5rem, 4vw, 3rem); }
svg.breath path { fill: none; stroke: var(--dawn); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s cubic-bezier(.45, 0, .2, 1) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { svg.breath path { animation: none; stroke-dashoffset: 0; } }

/* sections */
.section { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.band { background: var(--spruce); color: var(--mist); }
.band a { color: var(--glacier); }
.band a:hover { color: #fff; }
.band .intro { max-width: 44rem; font-size: 1.2rem; }
#subscribe.band { background: var(--glacier); color: var(--spruce); }
#subscribe.band a { color: var(--spruce); }
#subscribe p { max-width: 44rem; }
.three { display: grid; gap: 1.5rem 2.5rem; margin-top: 2rem; }
@media (min-width: 760px) { .three { grid-template-columns: repeat(3, 1fr); } }
.three h3 { color: #fff; }
.three > div { border-top: 3px solid var(--dawn); padding-top: 1rem; }

/* episode list */
.ep-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ep-row a { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
@media (min-width: 720px) { .ep-row a { grid-template-columns: 5.5rem 1fr; gap: 1.5rem; } }
.ep-n { font: 800 clamp(2.4rem, 6vw, 4rem)/.9 var(--display); color: var(--link); }
.ep-title { display: block; font: 700 clamp(1.25rem, 2.4vw, 1.6rem)/1.2 var(--display); margin-bottom: .35rem; }
.ep-row a:hover .ep-title { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .15em; }
.ep-short { display: block; color: var(--spruce-2); max-width: 46rem; }
.ep-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .6rem; font-size: .95rem; color: var(--muted); align-items: center; }
.tag { font-weight: 700; color: var(--spruce); background: var(--glacier); border-radius: 999px; padding: .1rem .7rem; }

/* host */
.host { display: grid; gap: 1.5rem 2.5rem; align-items: start; }
@media (min-width: 760px) { .host { grid-template-columns: 15rem 1fr; } }
.host img { border-radius: 50%; width: 12rem; height: 12rem; object-fit: cover; }
@media (min-width: 760px) { .host img { width: 15rem; height: 15rem; } }
.host p { max-width: 44rem; }

/* episode page */
.episode { padding-top: 2rem; padding-bottom: 4rem; }
.crumb { font-size: .95rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.episode h1 { font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -.02em; max-width: 52rem; line-height: 1; }
.video { margin: 1.5rem 0 .75rem; aspect-ratio: 16 / 9; background: var(--spruce); border-radius: 6px; overflow: hidden; max-width: 60rem; position: relative; }
.video iframe { width: 100%; height: 100%; border: 0; }
.video.soon img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video.soon figcaption { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; background: rgba(238, 244, 241, .94); color: var(--spruce); padding: .5rem .8rem; border-radius: 4px; font-weight: 700; font-size: 1rem; width: fit-content; }
audio { width: 100%; max-width: 60rem; margin: .5rem 0; }
.disclose { font-size: .95rem; color: var(--muted); max-width: 60rem; }
.ep-grid { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 980px) { .ep-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; } }
.tx { max-width: 42rem; }
.tx h2 { font-size: 1.8rem; }
.tx h3 { margin-top: 2rem; color: var(--link); }
.tx p { font-size: 1.15rem; line-height: 1.7; }
sup { line-height: 0; font-size: .7em; }
sup a { text-decoration: none; padding: 0 .15em; font-weight: 700; }
.refs { padding-left: 1.4rem; font-size: .95rem; color: var(--spruce-2); }
.refs li { margin-bottom: .6rem; overflow-wrap: anywhere; }
.refs li:target { background: var(--glacier); }
.side > div { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 1.25rem 1.25rem .5rem; margin-bottom: 1.25rem; }
@media (min-width: 980px) { .side { position: sticky; top: 1rem; align-self: start; } }
.side h2 { font-size: 1.3rem; }
.side ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.side li { margin-bottom: .5rem; font-size: 1rem; }
.prevnext { display: grid; gap: 1rem; margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
@media (min-width: 720px) { .prevnext { grid-template-columns: 1fr 1fr; } }
.pn { text-decoration: none; color: var(--spruce); font: 700 1.15rem/1.25 var(--display); }
.pn span { display: block; font: 400 .95rem var(--body); color: var(--muted); margin-bottom: .2rem; }
.pn.next { text-align: right; grid-column: -2; }
.pn:hover { color: var(--link); }

/* prose */
.prose { padding: 2.5rem 1rem 4rem; max-width: 46rem; }
.prose h1 { font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem); }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }

/* footer */
.site-foot { background: var(--spruce); color: var(--glacier); padding: 2.5rem 0; font-size: .95rem; }
.site-foot a { color: var(--mist); margin-right: 1.25rem; }
.site-foot p { max-width: 48rem; }
.foot-name { font: 800 1.3rem var(--display); color: var(--mist); }
.site-foot .small { color: var(--glacier); }
@media (max-width: 600px) {
  .video.soon { aspect-ratio: auto; overflow: visible; background: none; }
  .video.soon img { aspect-ratio: 16 / 9; border-radius: 6px; }
  .video.soon figcaption { position: static; width: auto; margin-top: .5rem; background: var(--glacier); }
}

.ep-thumb { position: relative; display: block; grid-column: 2; max-width: 22rem; aspect-ratio: 16 / 9; border-radius: .6rem; overflow: hidden; background: #0F3B3A; }
.ep-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ep-play { position: absolute; right: .6rem; bottom: .6rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 12px rgba(0, 0, 0, .28); }
.ep-play::after { content: ""; position: absolute; left: 1.02rem; top: .78rem; border-style: solid; border-width: .52rem 0 .52rem .82rem; border-color: transparent transparent transparent #0F3B3A; }
@media (min-width: 720px) {
  .ep-row a.has-thumb { grid-template-columns: 5.5rem 1fr 15rem; align-items: start; }
  .ep-thumb { grid-column: 3; max-width: none; }
}
.chapters ol { list-style: none; padding: 0; margin: 0 0 1rem; }
.chapters li { margin-bottom: .35rem; }
.chapters a { display: flex; gap: .7rem; text-decoration: none; color: inherit; }
.chapters a span { font-variant-numeric: tabular-nums; min-width: 2.4rem; font-weight: 700; color: var(--lagoon, #2F8F86); }
.chapters a:hover, .chapters a:focus-visible { text-decoration: underline; }

/* home: episode shelves */
.ep-tools { margin: 1rem 0 1.6rem; }
.ep-search { width: 100%; font: inherit; padding: .75rem 1.1rem; border: 1px solid var(--rule); border-radius: 2rem; background: var(--paper); color: var(--spruce); }
.ep-search:focus-visible, .shelf-all:focus-visible, .card:focus-visible { outline: 3px solid var(--dawn); outline-offset: 2px; }
.th { position: relative; display: grid; grid-template-columns: 46% 54%; aspect-ratio: 16 / 9; border-radius: .7rem; overflow: hidden; background: var(--spruce); }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-full { display: block; }
.th-t { padding: .7rem .65rem; display: flex; flex-direction: column; justify-content: center; gap: .35rem; color: #fff; min-width: 0; }
.th-t b { font: 800 .98rem/1.08 var(--display); hyphens: auto; overflow-wrap: break-word; }
.th-t i { font-style: normal; font-size: .72rem; color: var(--dawn); font-weight: 700; }
.th .ep-play { right: .5rem; bottom: .5rem; width: 2.1rem; height: 2.1rem; }
.th .ep-play::after { left: .82rem; top: .62rem; border-width: .43rem 0 .43rem .66rem; }
.card { display: flex; flex-direction: column; gap: .5rem; color: inherit; text-decoration: none; min-width: 0; }
.card:hover .c-title { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .15em; }
.c-title { font: 700 1.05rem/1.2 var(--display); color: var(--spruce); }
.c-meta { font-size: .88rem; color: var(--muted); }
.feat { display: grid; gap: 1.2rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 1rem; padding: 1rem; margin-bottom: 2.4rem; align-items: center; }
.feat .th-t b { font-size: clamp(1.05rem, 4.6vw, 1.9rem); }
.feat .th-t i { font-size: .95rem; }
.feat h3 { font: 700 clamp(1.4rem, 3vw, 1.75rem)/1.12 var(--display); margin: .2rem 0 .6rem; color: var(--spruce); }
.feat p { margin: 0 0 1rem; max-width: 34rem; }
.feat .new { color: var(--link); font-weight: 700; }
@media (min-width: 800px) { .feat { grid-template-columns: 1.25fr 1fr; padding: 1.4rem; gap: 1.6rem; } }
.shelf { margin: 0 0 2.4rem; }
.shelf-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .8rem; }
.shelf-h h3 { font: 700 1.35rem/1.2 var(--display); margin: 0; color: var(--spruce); }
.shelf-all { font: inherit; font-weight: 700; color: var(--link); background: none; border: 0; padding: .2rem 0; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; white-space: nowrap; }
.shelf-row, .ep-grid { list-style: none; margin: 0; padding: 0; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; }
.shelf-row > li { scroll-snap-align: start; min-width: 0; }
@media (min-width: 620px) { .shelf-row { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (min-width: 960px) { .shelf-row { grid-auto-columns: calc((100% - 3rem) / 4); } }
.shelf.open .shelf-row, .ep-grid { display: grid; grid-auto-flow: row; grid-template-columns: 1fr; gap: 1.6rem 1rem; overflow: visible; }
@media (min-width: 620px) { .shelf.open .shelf-row, .ep-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .shelf.open .shelf-row, .ep-grid { grid-template-columns: repeat(4, 1fr); } }
.ep-grid { margin-bottom: 2.4rem; }
#episodes.searching .shelf { display: none; }
#ep-none { margin: 0 0 2.4rem; }
.feat-th, .feat-th:hover { text-decoration: none; color: inherit; display: block; }
.feat .th-t { padding: 1rem 1.1rem; }
