/* Brand palette: see Branding/Logo/final/README.md. Volt is for dark backgrounds only. */
:root {
  --bg: #f7f6fb;
  --fg: #0A1A45;
  --muted: #4a5470;
  --line: #dfdeea;
  --card: #eeedf5;
  --accent: #0d76bb;
  --mark-code: #0A1A45;
  --mark-jt: #0d76bb;
  --navy: #0A1A45;
  --blob-a: #45adfc;
  --blob-b: #0d76bb;
  --blob-opacity: 0.12;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rounded: "Arial Rounded MT Bold", "Arial Rounded MT", ui-rounded, -apple-system, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050B1F;
    --fg: #ffffff;
    --muted: #a8b1c5;
    --line: #16224a;
    --card: #081433;
    --accent: #45adfc;
    --mark-code: #45adfc;
    --mark-jt: #c1ff09;
    --blob-b: #c1ff09;
    --blob-opacity: 0.13;
  }
  body { background: radial-gradient(ellipse 120% 60% at 50% 0%, #0A1A45, #081433 55%, #050B1F) no-repeat, #050B1F; }
  .episodes .ep { color: #c1ff09; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--blob-opacity, 0.14);
}
.blob-1 { background: var(--blob-a, #45adfc); top: -160px; left: -140px; animation: drift-1 38s ease-in-out infinite alternate; }
.blob-2 { background: var(--blob-b, #c1ff09); top: 40%; right: -200px; animation: drift-2 46s ease-in-out infinite alternate; }
.blob-3 { background: var(--blob-a, #45adfc); bottom: -220px; left: 30%; animation: drift-3 52s ease-in-out infinite alternate; }
@keyframes drift-1 { to { transform: translate(35vw, 30vh) scale(1.2); } }
@keyframes drift-2 { to { transform: translate(-40vw, -25vh) scale(0.85); } }
@keyframes drift-3 { to { transform: translate(-25vw, -45vh) scale(1.15); } }

/* walkers face right; the flipped ones walk back the other way */
.walker {
  position: absolute;
  left: 0;
  width: 60px;
  height: 68px;
  opacity: 0.55;
  image-rendering: pixelated;
}
.walker-1 { top: 22%; animation: walk-right 70s linear infinite; }
.walker-2 { top: 61%; animation: walk-left 85s linear infinite -30s; }
.walker-3 { top: 88%; width: 45px; height: 51px; opacity: 0.4; animation: walk-right 110s linear infinite -75s; }
@keyframes walk-right {
  from { transform: translateX(-80px); }
  to { transform: translateX(calc(100vw + 80px)); }
}
@keyframes walk-left {
  from { transform: translateX(calc(100vw + 80px)) scaleX(-1); }
  to { transform: translateX(-80px) scaleX(-1); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .walker { display: none; }
}

.mark-code { stroke: var(--mark-code); }
.mark-jt { stroke: var(--mark-jt); }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.top .name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}
.top .mark { width: 34px; height: 27px; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--fg); }

.banner { position: relative; margin: 0 0 8px; }
.banner img { display: block; width: 100%; height: auto; border-radius: 10px; }
.banner figcaption {
  position: absolute;
  right: 0;
  top: 42%;
  min-width: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #0A1A45;
  color: #fff;
  border-radius: 6px 0 0 6px;
  --mark-code: #45adfc;
  --mark-jt: #c1ff09;
}
.banner .mark { flex: none; width: 46px; height: 36px; }
.banner strong { display: block; font-family: var(--rounded); font-size: clamp(22px, 4vw, 32px); line-height: 1.1; }
.banner figcaption span span { display: block; color: #a8b1c5; font-size: 13px; margin-top: 4px; white-space: nowrap; }

section { padding: 40px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding-top: 32px; }

.kicker { color: var(--accent); font-family: var(--mono); font-size: 14px; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 20px; }
h2 { font-size: 26px; letter-spacing: -0.01em; margin: 0 0 14px; }
h3 { font-size: 18px; margin: 0; }
h3.sub { margin-top: 32px; }
.lede { font-size: 19px; color: var(--muted); }

.links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.episodes { list-style: none; padding: 0; margin: 28px 0; }
.episodes li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.episodes li:last-child { border-bottom: 0; }
.episodes p { margin: 4px 0 0; }
.episodes .ep { font-family: var(--mono); color: var(--accent); font-size: 22px; line-height: 1.2; }
.episodes .meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.episodes .next { opacity: 0.7; }

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}

code { font-family: var(--mono); font-size: 0.88em; }
pre {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-size: 14px;
}

.repo-list { list-style: none; padding: 0; }
.repo-list li { padding: 8px 0; }
.repo-list code { display: block; color: var(--accent); }

.project { display: flex; gap: 24px; align-items: flex-start; }
.project img { flex: none; border-radius: 16px; }
.project h2 { margin-top: 4px; }
.demo { width: 100%; height: auto; margin-top: 24px; border-radius: 8px; border: 1px solid var(--line); }

footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
footer .mascot { flex: none; }

@media (max-width: 560px) {
  .banner img { border-radius: 10px 10px 0 0; }
  .banner figcaption { position: static; border-radius: 0 0 10px 10px; }
  .banner figcaption span span { white-space: normal; }
  .project { flex-direction: column; }
  .project img { width: 88px; height: 88px; }
}
