/* Juniper Works. Brand: teal #5abebe ("Juniper"), orange #fd921e ("Works"), alt green #3fa787. */
:root {
  --teal: #5abebe;
  --orange: #fd921e;
  --green: #3fa787;
  --ink-deep: #0e1a1e;

  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #ece7dc;
  --text: #182a2e;
  --muted: #4d6064;
  --line: #d9d2c3;
  --link: #18706f;          /* teal darkened for 4.5:1 on light */
  --accent-text: #a55400;   /* orange darkened for 4.5:1 on light */
  --btn-bg: #18706f;
  --btn-text: #ffffff;
  --hero-shade: rgba(246, 243, 236, 0.86);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(20, 40, 44, 0.08);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1a1e;
    --surface: #15262b;
    --surface-2: #1b3036;
    --text: #e7eeee;
    --muted: #a3b6b6;
    --line: #27424a;
    --link: #7fd6d6;
    --accent-text: #ffad55;
    --btn-bg: #5abebe;
    --btn-text: #0b1517;
    --hero-shade: rgba(14, 26, 30, 0.84);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1a1e;
  --surface: #15262b;
  --surface-2: #1b3036;
  --text: #e7eeee;
  --muted: #a3b6b6;
  --line: #27424a;
  --link: #7fd6d6;
  --accent-text: #ffad55;
  --btn-bg: #5abebe;
  --btn-text: #0b1517;
  --hero-shade: rgba(14, 26, 30, 0.84);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--accent-text); margin-bottom: 0.6em; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 46ch; }

/* wordmark */
.wordmark { font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.wm-j { color: var(--teal); }
.wm-w { color: var(--orange); }
h1 .wordmark { font-size: clamp(2.8rem, 8vw, 5.2rem); display: inline-block; line-height: 1; }
.wordmark-sm { font-size: 1.35rem; margin: 0 0 0.3em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.25rem; }
.brand picture, .brand img { width: 44px; height: 44px; }
nav { margin-left: auto; }
nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
nav a:hover { background: var(--surface-2); }
nav a[aria-current="page"] { background: var(--surface-2); color: var(--link); }
.theme-toggle { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; flex: none; }
.theme-toggle span { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(90deg, var(--orange) 50%, var(--teal) 50%); box-shadow: inset 0 0 0 2px var(--surface); outline: 2px solid var(--text); outline-offset: -1px; }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; padding: 8px 0; gap: 8px; }
  .brand .wordmark { font-size: 1.15rem; }
  .theme-toggle { margin-left: auto; }
  nav { order: 3; width: 100%; margin: 0; }
  nav ul { justify-content: space-between; flex-wrap: nowrap; gap: 0; }
  nav a { padding: 6px 8px; font-size: 0.9rem; }
}
@media (max-width: 360px) { nav a { padding: 6px 4px; font-size: 0.82rem; } }

/* buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font-weight: 700; text-decoration: none; border: 2px solid var(--btn-bg); }
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--hero-shade) 0%, var(--hero-shade) 45%, color-mix(in srgb, var(--hero-shade) 70%, transparent) 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(40px, 7vw, 96px) 0; }
.hero-emblem img { width: 100%; max-width: 380px; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); }
.hero-copy h1 { margin-bottom: 0.2em; }
.hero-copy .lede { color: var(--text); font-weight: 600; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 28px; }
  .hero-emblem img { max-width: 230px; }
  .hero-copy .lede, .hero-copy p { margin-inline: auto; }
  .hero-copy .btn-row { justify-content: center; }
}

/* facts */
.facts { background: var(--ink-deep); color: #e7eeee; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.08); }
.fact { margin: 0; padding: clamp(22px, 3.5vw, 40px); background: var(--ink-deep); }
.fact-num { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; margin: 0 0 0.3em; color: var(--orange); }
.fact-num span { font-size: 0.5em; color: var(--teal); font-weight: 700; }
.fact figcaption { color: #c9d6d6; max-width: 34ch; }
@media (max-width: 760px) { .facts-grid { grid-template-columns: 1fr; } }

/* sections */
.section { padding: clamp(44px, 7vw, 88px) 0; }
.section-tight { padding-bottom: clamp(44px, 7vw, 88px); }
.page-head { padding-bottom: clamp(20px, 3vw, 32px); }
.section-head { margin-bottom: 32px; }
.section-head .lede { max-width: 62ch; }
.band { background: var(--surface-2); padding: clamp(44px, 7vw, 88px) 0; border-block: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 66ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card picture { aspect-ratio: 4 / 3; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { color: var(--accent-text); }
.card-body p { margin: 0; color: var(--muted); }

/* episodes */
.ep-list { display: grid; gap: 22px; }
.ep { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.next-up .ep { grid-template-columns: 1fr; }
.ep-body { padding: 22px 24px; }
.ep-body p:last-child { margin-bottom: 0; }
.ep-soon-art { position: relative; display: grid; place-items: center; min-height: 220px; background:
  radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--teal) 35%, transparent), transparent 60%),
  radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--orange) 30%, transparent), transparent 55%), var(--ink-deep); }
.ep-soon-art img { width: 120px; height: 120px; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--orange); color: #1b1004; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
@media (max-width: 760px) { .ep { grid-template-columns: 1fr; } }

/* players (click-to-load) */
.player { position: relative; aspect-ratio: 16 / 9; background: var(--ink-deep); overflow: hidden; display: grid; place-items: center; }
.ep .player { border-radius: 0; }
.section-tight > .player { border-radius: var(--radius); box-shadow: var(--shadow); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.player-poster-brand { display: grid; place-items: center; }
.player-poster-brand img { width: min(40%, 260px); opacity: 0.6; }
.player-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; border: 0; background: var(--orange); color: #1b1004; font: 800 1rem var(--font); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.play-ico { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor; }
.player-note { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; margin: 0; font-size: 0.75rem; color: #c9d6d6; z-index: 1; }

/* watch: coming soon + schedule */
.soon-panel { display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.soon-art img { width: 200px; height: 200px; }
@media (max-width: 640px) { .soon-panel { grid-template-columns: 1fr; text-align: center; } .soon-art img { width: 140px; height: 140px; margin-inline: auto; } }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--surface); }
.empty p { margin: 0; }
.schedule { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.schedule li { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; padding: 14px 18px; }
.schedule .when { font-weight: 700; }
.schedule .where { margin-left: auto; color: var(--muted); font-size: 0.9rem; }

/* about */
.about-art { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.about-art > picture img { max-width: min(420px, 100%); margin-inline: auto; }
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.photo figcaption { padding: 10px 14px; font-size: 0.9rem; color: var(--muted); }

/* contact */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); max-width: 720px; }
.contact-email { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; word-break: break-word; }
.contact-email a { text-decoration: none; color: var(--accent-text); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; }
.footer-inner > .small { grid-column: 1 / -1; margin: 0; max-width: 80ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: start; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }
