/* tapintodatapodcast.com: public site. Same brand as HQ: espresso brown, beer amber, foam cream. */
:root {
  color-scheme: light;
  --brown: #4e2513; --amber: #fba618; --cream: #fff3d8;
  --bg: #fbf3e4; --surface: #fffaf1; --surface-2: #f6e8cf; --border: #ead9bd;
  --text: #2e160a; --text-2: #5f3f29; --muted: #85654b; --link: #9a4f00;
  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1d0f08; --surface: #2a160c; --surface-2: #341b0e; --border: #4a2a17;
    --text: #fbefdc; --text-2: #e3cdb0; --muted: #b0906f; --link: #fbb84a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1d0f08; --surface: #2a160c; --surface-2: #341b0e; --border: #4a2a17;
  --text: #fbefdc; --text-2: #e3cdb0; --muted: #b0906f; --link: #fbb84a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.wrap.narrow { margin: 0 auto; }
.row { display: flex; align-items: center; }
.gap { gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.meta a { color: inherit; }
.lede { font-size: 19px; color: var(--text-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--brown); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* header */
.site-head { background: var(--brown); color: var(--cream); position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--amber); }
.site-head .row { justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; }
.brand img { border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font: 700 20px var(--display); }
.brand small { font-size: 12px; opacity: .75; }
.site-head nav { display: flex; gap: 4px; align-items: center; }
.site-head nav a { color: rgba(255, 243, 216, .85); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.site-head nav a:hover, .site-head nav a.on { color: var(--cream); background: rgba(255, 243, 216, .1); }
.site-head nav a.listen-btn { background: var(--amber); color: var(--brown); }

/* buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--brown); color: var(--brown);
       font-weight: 700; text-decoration: none; font-size: 16px; }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--brown); }
.btn:hover { transform: translateY(-1px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.primary) { border-color: var(--cream); color: var(--cream); } }

/* hero */
.hero { background: radial-gradient(1200px 400px at 80% 0%, rgba(251, 166, 24, .22), transparent 60%), var(--surface-2); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 13px; color: var(--link); margin-bottom: 8px; }
.hosts { color: var(--text-2); font-weight: 600; }
.hero-logo { justify-self: center; width: min(320px, 70vw); height: auto; border-radius: 50%; box-shadow: 0 20px 50px rgba(78, 37, 19, .25); }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; padding-top: 32px; } .hero-logo { width: 180px; order: -1; } }

/* sections */
.section { padding-top: 48px; padding-bottom: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head a { font-weight: 600; }
.band { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* player */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player.vertical { aspect-ratio: 9 / 16; }
.player iframe, .yt-lite { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-lite { padding: 0; cursor: pointer; background: #000; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.yt-lite:hover img { opacity: 1; }
.yt-lite .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); transition: transform .15s; }
.yt-lite:hover .play, .yt-lite:focus-visible .play { transform: translate(-50%, -50%) scale(1.08); }
.yt-lite:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }

.latest { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; margin-top: 12px; }
.latest h3 { font-size: 26px; }
.latest h3 a { color: inherit; text-decoration: none; }
@media (max-width: 860px) { .latest { grid-template-columns: 1fr; } }

/* listen buttons */
.listen { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 16px; }
.listen-on { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--surface);
             border: 1.5px solid var(--border); color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.1; }
.listen-on small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.listen-on:hover { border-color: var(--amber); }
.listen-on .ico svg { width: 32px; height: 32px; display: block; }

/* shorts */
.shorts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 14px; overflow-x: auto;
          padding: 8px 2px 14px; scroll-snap-type: x mandatory; }
.shorts figure { margin: 0; scroll-snap-align: start; }
.shorts figcaption { font-size: 14px; font-weight: 600; margin-top: 8px; line-height: 1.35; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; margin: 0; }
a.card:hover { border-color: var(--amber); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(78, 37, 19, .12); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card .ph { aspect-ratio: 16 / 9; background: var(--surface-2); }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-size: 19px; margin: 0 0 6px; }
.card-body p:last-child { margin: 0; color: var(--text-2); font-size: 15px; }
.card .player { border-radius: 0; }

/* episode + post pages */
.ep-listen { margin: 20px 0 8px; }
.ep-listen p { margin: 0; }
.ep-body { margin-top: 28px; }
.prose { font-size: 18px; }
.prose h2 { font-size: 27px; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--amber); color: var(--text-2); font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--text-2); }
.cta { padding: 22px; margin-top: 36px; }
.prev-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-weight: 600; }
article .player { margin: 16px 0; }
article.narrow .player.vertical { max-width: 340px; }

/* footer */
.site-foot { background: var(--brown); color: var(--cream); padding: 40px 0 24px; margin-top: 24px; }
.site-foot a { color: var(--cream); }
.site-foot .muted { color: rgba(255, 243, 216, .7); }
.site-foot h3 { font-size: 17px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot-grid img { border-radius: 50%; margin-bottom: 10px; }
@media (max-width: 680px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .brand small { display: none; } .site-head nav a { padding: 8px 9px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
[id] { scroll-margin-top: 84px; }
.brand strong { white-space: nowrap; }
@media (max-width: 520px) {
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 17px; }
  .site-head nav { gap: 0; }
  .site-head nav a { font-size: 14px; padding: 7px 8px; }
}
@media (max-width: 360px) { .brand span { display: none; } }
