/* ============================================================
   Dirt to Data Podcast — dirttodatapodcast.com
   Palette drawn from the badge: excavator orange, worked earth,
   Idaho sky, steel and the cyan glass of the data hall.
   ============================================================ */

:root {
  --ink: #14283D;        /* deep steel navy: headings, footer */
  --steel: #2E4A66;      /* steel blue */
  --sky: #58B7EA;        /* sky */
  --cyan: #4FD1E6;       /* the glass */
  --cloud: #EAF3FA;      /* pale sky tint */
  --orange: #F26A1B;     /* the excavator */
  --dirt: #B8722E;       /* worked earth */
  --sand: #E8C9A0;       /* dry ground */
  --paper: #FBF8F3;      /* warm off white */
  --white: #FFFFFF;
  --line: #E1DBD1;
  --text: #24303F;
  --muted: #5F6B7A;
  --green: #4E8A3F;

  --display: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "SF Mono", Menlo, monospace;

  --maxw: 1440px;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { font-family: var(--body); font-size: 1.1rem; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--steel); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.ep-meta { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--dirt); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }

/* ---------- header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; background: transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 150px; width: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.4)); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.site-nav a { font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--white); padding: 10px 18px; border-radius: 999px; }
.site-nav a:hover { background: rgba(255,255,255,.12); }
.site-nav a[aria-current="page"] { background: rgba(255,255,255,.16); color: var(--white); }
.site-nav a.cta { background: var(--orange); color: var(--white); margin-left: 6px; }
.site-nav a.cta:hover { background: #d95a12; }

/* ---------- hero: the latest episode, with the player right there ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); padding: 210px 0 96px;
  background:
    radial-gradient(900px 480px at 0% 100%, rgba(242,106,27,.38), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(79,209,230,.35), transparent 60%),
    linear-gradient(120deg, #3B2A1A 0%, #14283D 48%, #1E4A6B 100%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: var(--paper); clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero .tagline { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; color: var(--sand); margin-bottom: 26px; }
.hero .tagline em { font-style: normal; color: var(--orange); }
.hero .tagline em.data { font-style: normal; color: var(--cyan); }
.hero .ep-meta { color: var(--cyan); }
.hero h1 { color: var(--white); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; margin: 12px 0 18px; }
.hero .lede { font-size: 1.15rem; line-height: 1.55; color: #D9E3EC; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.hero .lede strong { color: var(--white); font-weight: 600; }
.hero .episode-guest { color: #D9E3EC; margin-bottom: 26px; }
.hero .episode-guest a { color: var(--white); border-bottom-color: var(--orange); }
.hero .listen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .listen .all { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--sand); text-decoration: none; margin-left: 6px; border-bottom: 1.5px solid rgba(232,201,160,.5); }
.hero .listen .all:hover { color: var(--white); border-color: var(--white); }
.hero-player { position: relative; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12); aspect-ratio: 16 / 9; }
.hero-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-player .no-video { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px; font-family: var(--display); font-weight: 600; color: #D9E3EC; background: linear-gradient(135deg, #1E4A6B, #14283D); }
.hero-player .no-video img { width: min(60%, 320px); margin-bottom: 14px; }
@media (max-width: 960px) { .hero, .page-hero { padding-top: 170px; } .hero .wrap { grid-template-columns: 1fr; gap: 32px; } .hero-player { order: -1; } .brand img { height: 110px; } }

/* platform buttons */
.platforms { display: flex; flex-wrap: wrap; gap: 12px; }
.platform-btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); border-radius: 999px; padding: 11px 20px; transition: background .15s, border-color .15s, transform .15s; }
.platform-btn:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-1px); }
.platform-btn svg { width: 18px; height: 18px; fill: currentColor; }
.platform-btn.is-soon { opacity: 0.55; cursor: default; }
.platform-btn .soon-tag { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand); }
.platforms.on-light .platform-btn { color: var(--ink); border-color: #cfc6b8; }
.platforms.on-light .platform-btn:hover { background: var(--cloud); border-color: var(--steel); }

/* ---------- latest episode card (overlaps hero) ---------- */
.episode-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(20,40,61,.35); overflow: hidden; border-top: 6px solid var(--orange); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; padding: 32px 36px; align-items: start; }
.episode-card + .episode-card { margin-top: 28px; box-shadow: none; border-top-color: var(--sky); }
.episode-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 8px 0 14px; }
.episode-text p { color: var(--muted); }
.episode-guest { margin-top: 12px; font-size: 1.05rem; }
.episode-guest a, .guest-link { color: var(--steel); text-decoration: none; border-bottom: 2px solid var(--sand); font-weight: 600; }
.episode-guest a:hover, .guest-link:hover { color: var(--orange); border-color: var(--orange); }
@media (max-width: 900px) { .episode-card { grid-template-columns: 1fr; gap: 20px; padding: 24px; } }
.player-tabs { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.player-tabs button { font-family: var(--display); font-weight: 600; font-size: 0.88rem; padding: 8px 16px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); }
.player-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.player-pane iframe { width: 100%; border: 0; border-radius: 10px; display: block; }
.player-pane iframe.yt { aspect-ratio: 16 / 9; height: auto; }
.coming-soon { margin: 0; padding: 18px 22px; background: var(--cloud); border-radius: 10px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.loading { padding: 40px; text-align: center; color: var(--muted); font-family: var(--display); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.2rem; }

/* ---------- pillars ---------- */
.pillar-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; gap: 18px; align-items: flex-start; transition: transform .15s, box-shadow .15s; }
.pillar:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(20,40,61,.3); }
.badge { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: var(--white); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.badge.energy { background: var(--orange); }
.badge.water { background: var(--sky); }
.badge.cooling { background: var(--cyan); }
.badge.environment { background: var(--green); }
.badge.jobs { background: var(--dirt); }
.badge.community { background: var(--steel); }
.pillar h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pillar p { font-size: 1rem; color: var(--muted); line-height: 1.55; }

/* ---------- the journey strip ---------- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.journey > div { padding: 24px 22px; border-left: 1px solid var(--line); position: relative; }
.journey > div:first-child { border-left: 0; }
.journey .n { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--muted); }
.journey h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.journey p { font-size: 0.98rem; color: var(--muted); }
.journey > div::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; }
.journey > div:nth-child(1)::before { background: var(--dirt); }
.journey > div:nth-child(2)::before { background: var(--orange); }
.journey > div:nth-child(3)::before { background: var(--sky); }
.journey > div:nth-child(4)::before { background: var(--cyan); }
@media (max-width: 860px) { .journey { grid-template-columns: repeat(2, 1fr); } .journey > div:nth-child(3) { border-left: 0; } }

/* ---------- people ---------- */
.people-row { display: grid; gap: 24px; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.people-row + .people-row { margin-top: 24px; }
@media (max-width: 900px) { .people-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .people-row { grid-template-columns: 1fr; } }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; border-top: 5px solid var(--sky); }
.person.host { border-top-color: var(--orange); }
.person .role { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--dirt); }
.person h3 { font-size: 1.4rem; margin: 8px 0 4px; }
.person h3 a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--cloud); }
.person h3 a:hover { color: var(--orange); border-color: var(--orange); }
.person .org { font-family: var(--display); font-weight: 600; font-size: 0.98rem; color: var(--muted); margin-bottom: 12px; }
.person .org a { color: var(--steel); text-decoration: none; border-bottom: 1px solid var(--sand); }
.person p { font-size: 1.05rem; color: var(--muted); }

/* ---------- page hero (episodes, about) ---------- */
.page-hero { color: var(--white); padding: 210px 0 72px; position: relative; overflow: hidden;
  background: radial-gradient(700px 360px at 100% 0%, rgba(79,209,230,.3), transparent 60%), linear-gradient(120deg, #2C2216 0%, #14283D 55%, #1E4A6B 100%); }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: var(--paper); clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.2rem); margin-top: 14px; }
.page-hero p { color: #D9E3EC; margin-top: 16px; font-size: 1.2rem; }

.bio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 900px) { .bio-grid { grid-template-columns: 1fr; } }
.bio-grid h2 { font-size: 1.7rem; margin-bottom: 12px; }
.bio-grid p + p { margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta-band { color: var(--white); padding: 72px 0; background: linear-gradient(100deg, var(--orange) 0%, #C9541A 40%, var(--steel) 100%); }
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 12px; }
.cta-band p { color: #FBE9DC; margin-bottom: 26px; font-size: 1.1rem; }

/* ---------- newsletter ---------- */
.newsletter { padding-top: 56px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; border-top: 6px solid var(--cyan); }
.news-card h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 0 0 12px; }
.news-card p { color: var(--muted); }
.news-form { display: flex; flex-wrap: wrap; gap: 12px; }
.news-form input { flex: 1 1 220px; min-width: 0; font-family: var(--body); font-size: 1.05rem; color: var(--text); padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); }
.news-form input:focus { outline: 3px solid rgba(88,183,234,.4); border-color: var(--sky); }
.news-form button { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--white); background: var(--orange); border: 0; border-radius: 10px; padding: 13px 26px; cursor: pointer; }
.news-form button:hover { background: #d95a12; }
.news-form button[disabled] { opacity: 0.6; cursor: default; }
.news-status { width: 100%; font-family: var(--display); font-weight: 600; font-size: 0.95rem; min-height: 1.2em; }
.news-status.ok { color: var(--green); }
.news-status.err { color: #B23B2E; }
.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; }
@media (max-width: 760px) { .news-card { grid-template-columns: 1fr; padding: 30px 24px; gap: 20px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #A9B8C8; padding: 48px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer .foot-brand { display: flex; align-items: center; gap: 18px; font-family: var(--display); font-weight: 800; color: var(--white); font-size: 1.4rem; }
.site-footer .foot-brand img { height: 110px; }
.site-footer .foot-brand span { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--sand); margin-top: 4px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: #D9E3EC; text-decoration: none; font-family: var(--display); font-size: 0.95rem; font-weight: 600; }
.site-footer nav a:hover { color: var(--white); }
.site-footer .fine { width: 100%; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; color: #7D8FA3; margin-top: 8px; }

@media (max-width: 640px) {
  .hero { padding: 130px 0 90px; }
  .brand img { height: 72px; }
  .site-header .wrap { flex-direction: column; gap: 6px; }
  .episode-head, .episode-body { padding-left: 20px; padding-right: 20px; }
  .section { padding: 60px 0; }
}
