@font-face {
  font-family: "BD Colonius";
  src: url("assets/BDColonius-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000000;
  --panel: #111116;
  --white: #f2f2f5;
  --muted: #b3b3bd;
  --line: #3b3b45;
  --cyan: #0be1fe;
  --magenta: #f526a8;
  --cobalt: #125cf3;
  --lime: #c8ff3d;
  --violet: #a244ea;
  --display: "BD Colonius", "Outfit", sans-serif;
  --body: "Outfit", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font: 17px/1.55 var(--body); }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus, var(--lime)); outline-offset: 4px; }
section { scroll-margin-top: 108px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font: 400 clamp(46px, 6vw, 88px)/.98 var(--display); letter-spacing: -.015em; }
h3 { font-size: 21px; line-height: 1.25; }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: 10px; left: 16px; z-index: 20; padding: 12px; background: var(--lime); color: black; translate: 0 -180%; }
.skip:focus { translate: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.muted { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 20px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: inherit; font-weight: 600; text-decoration: none; text-align: center; }
.button:hover { border-color: currentColor; }
.button.primary { background: var(--lime); color: black; border-color: var(--lime); }
.button.small { padding: 10px 15px; font-size: 14px; }
.text-link { text-underline-offset: 5px; }

.hub-header { position: sticky; top: 10px; z-index: 10; margin-top: 10px; }
.hub-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 18px; border: 1px solid var(--line); border-radius: 99px; background: rgba(17, 17, 22, .94); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; width: 26px; height: 26px; }
.brand span { font: 400 24px/1 var(--display); }
.hub-links { display: flex; gap: 25px; font-size: 15px; }
.hub-links a { text-decoration: none; }
.hub-links a:hover { color: var(--lime); }

.learn-hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; min-height: 620px; padding-block: 70px 85px; }
.learn-hero h1 { font-size: clamp(64px, 7.7vw, 112px); margin-top: 22px; }
.learn-hero h1 span { color: var(--cyan); }
.learn-hero p { max-width: 38ch; margin-top: 26px; color: var(--muted); font-size: 20px; }
.learn-hero .button { margin-top: 28px; }
.paths { position: relative; height: 475px; width: min(100%, 490px); justify-self: end; }
.path-disc { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 240px; height: 240px; padding: 16px 10px; border-radius: 50%; color: black; text-decoration: none; transition: translate .25s ease, rotate .25s ease; }
.path-disc strong { font: 400 34px/1 var(--display); }
.path-disc span { max-width: 15ch; text-align: center; font-size: 14px; }
.path-disc::after { content: "↘"; font-size: 24px; line-height: 1; }
.path-disc.fundamentals { top: 0; left: 0; background: var(--cyan); }
.path-disc.fundamentals strong { font-size: clamp(23px, 2.1vw, 30px); }
.path-disc.everyday { top: 0; right: 0; background: var(--cobalt); color: white; }
.path-disc.everyday strong { text-align: center; }
.path-disc.agents { top: 230px; left: 0; background: var(--magenta); }
.path-disc.python { top: 230px; right: 0; background: var(--lime); }
.path-disc:hover, .path-disc:focus-visible { z-index: 2; translate: 0 -8px; rotate: -3deg; outline-color: white; }

.section { padding-block: clamp(70px, 8vw, 112px); }
.section-head { display: grid; gap: 20px; margin-bottom: 38px; }
.section-head p { color: var(--muted); max-width: 60ch; font-size: 19px; }
.first-try { background: var(--cyan); color: black; --muted: #12373e; --line: #006e7e; --focus: black; color-scheme: light; }
.first-try .section-head h2 span, .exercise-copy h3 { color: var(--cobalt); }
.exercise-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.exercise-tabs button { --tab: var(--lime); --tab-ink: black; padding: 11px 19px; border: 2px solid transparent; border-radius: 99px; background: var(--tab); color: var(--tab-ink); font-weight: 600; }
.exercise-tabs [data-exercise="notes"], .exercise-tabs [data-exercise="agent"] { --tab: var(--magenta); }
.exercise-tabs [data-exercise="week"] { --tab: var(--cobalt); --tab-ink: white; }
.exercise-tabs [data-exercise="documents"] { --tab: var(--violet); --tab-ink: white; }
.exercise-tabs [data-exercise="research"] { --tab: black; --tab-ink: var(--lime); }
.exercise-tabs [aria-selected="true"] { border-color: black; text-decoration: underline; text-underline-offset: 4px; }
.exercise-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 35px; align-items: start; }
.exercise-copy { display: grid; gap: 16px; }
.exercise-copy h3 { font: 400 clamp(32px, 4vw, 46px)/1.05 var(--display); }
.sample-input { padding: 20px; border: 1px solid var(--line); border-left: 5px solid var(--magenta); border-radius: 16px; }
.sample-input p { margin-top: 8px; font-size: 16px; }
.check-result { margin-top: 4px; font-size: 15px; }
.prompt-box { padding: 24px; border-radius: 22px; background: var(--black); color: var(--white); --focus: var(--lime); }
.prompt-box label { display: block; margin-bottom: 12px; color: var(--lime); font-weight: 600; }
.prompt-box textarea { display: block; width: 100%; min-height: 280px; resize: vertical; padding: 0; background: transparent; color: var(--white); border: 0; line-height: 1.6; }
.prompt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.prompt-box #copy-prompt { background: var(--magenta); border-color: var(--magenta); color: black; }
.copy-status { min-height: 1.5em; font-size: 14px; color: var(--lime); }
.assistant-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; font-size: 14px; }
.assistant-links a { text-underline-offset: 4px; }
.basics { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.basics summary { font-weight: 600; }
.basics p { max-width: 74ch; margin-top: 12px; }

.library-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 32px; }
.library-head h2 { margin-top: 18px; }
.library-head h2 span { color: var(--magenta); }
.library-head p { max-width: 35ch; color: var(--muted); }
.library-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; color: var(--white); background: black; }
.filters [aria-pressed="true"] { color: black; background: var(--lime); border-color: var(--lime); }
.search { display: grid; gap: 6px; width: min(100%, 310px); font-size: 14px; }
.search input { min-width: 0; width: 100%; padding: 11px 15px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--white); }
.resource-count { min-height: 1.5em; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.timeline-intro { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.timeline-intro h3 { font: 400 36px/1.1 var(--display); color: var(--accent); }
.timeline-intro p { color: var(--muted); max-width: 48ch; }
.timeline-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); padding-top: 30px; }
.timeline-rail { min-width: 0; }
.timeline-stops { display: grid; margin: 0; padding: 0; list-style: none; }
.timeline-stops li { position: relative; padding-bottom: 18px; }
.timeline-stops li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 44px; bottom: -4px; width: 2px; background: var(--line); }
.timeline-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; padding: 0 0 10px; width: 100%; background: transparent; color: var(--white); border: 0; text-align: left; }
.stop-number { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--line); border-radius: 50%; background: black; font-weight: 600; }
.stop-copy { display: grid; gap: 5px; padding-top: 2px; }
.stop-copy strong { font-size: 17px; line-height: 1.35; }
.stop-copy small { color: var(--muted); font-size: 13px; }
.timeline-step[aria-current="step"] .stop-number { background: var(--accent); border-color: var(--accent); color: black; }
.timeline-step[aria-current="step"] strong, .timeline-step:hover strong { color: var(--accent); }
.timeline-current { display: grid; gap: 12px; margin-bottom: 22px; scroll-margin-top: 110px; }
.timeline-current #timeline-position { color: var(--accent); font-size: 13px; font-weight: 600; }
.timeline-current h3 { font: 400 clamp(30px, 3.3vw, 44px)/1.05 var(--display); }
.timeline-current #timeline-action { color: var(--muted); }
.timeline-detail { min-width: 0; }
.timeline-detail .resource-card { translate: none; }
.timeline-navigation { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.timeline-navigation button:disabled { opacity: .45; cursor: default; }
.timeline-practice { padding: 34px; border-radius: 22px; background: var(--accent); color: black; }
.timeline-practice h4 { margin: 24px 0 14px; font: 400 46px/1 var(--display); }
.timeline-practice p { max-width: 44ch; }
.timeline-practice .button { margin-top: 24px; background: black; border-color: black; color: white; }
.resource-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); transition: translate .2s ease, border-color .2s ease; }
.resource-card:hover { translate: 0 -4px; border-color: var(--accent); }
.video-art { position: relative; background: black; aspect-ratio: 16 / 9; overflow: hidden; }
.video-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-art button { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; color: black; background: transparent; }
.play-disc { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); font-size: 22px; padding-left: 4px; transition: scale .2s ease; }
.video-art button:hover .play-disc { scale: 1.1; }
.runtime { position: absolute; bottom: 12px; right: 12px; padding: 3px 9px; border-radius: 99px; background: #000; color: white; font-size: 13px; pointer-events: none; }
.resource-body { display: grid; gap: 12px; padding: 22px; }
.resource-topic { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.resource-card h3 { font-size: 21px; }
.creator { color: var(--muted); font-size: 14px; }
.resource-outcome { font-size: 15px; }
.resource-card details { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.resource-card summary { color: var(--white); }
.resource-facts { display: grid; gap: 10px; margin: 14px 0 0; }
.resource-facts dt { font-weight: 600; }
.resource-facts dd { color: var(--muted); margin: 2px 0 0; }
.chapter { display: inline-block; margin-top: 14px; text-underline-offset: 4px; }
.resource-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.resource-action a { font-size: 14px; font-weight: 600; text-underline-offset: 5px; }
.guide-art { display: flex; align-items: center; justify-content: center; min-height: 180px; aspect-ratio: 16 / 9; background: var(--cobalt); color: white; }
.guide-art strong { font: 400 42px/1 var(--display); max-width: 9ch; }
.library-note { max-width: 75ch; color: var(--muted); font-size: 14px; margin-top: 26px; }
.empty-state { padding: 35px 0; }
.empty-state p { margin-bottom: 16px; }

.course-section { color: white; background: var(--cobalt); --muted: #edf2ff; --line: #8daaff; }
.course-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 36px; align-items: center; }
.course-intro p { max-width: 50ch; color: var(--muted); font-size: 19px; }
.course-intro h2 span { color: var(--lime); }
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.course-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; display: grid; gap: 16px; }
.course-card h3 { font: 400 42px/1 var(--display); }
.course-card p { font-size: 16px; }
.course-card .course-access { color: var(--muted); font-size: 14px; }
.course-card .text-link { justify-self: start; font-weight: 600; }
.hub-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.hub-cta h2 { font-size: clamp(38px, 5vw, 64px); }
.hub-cta p { color: var(--muted); margin-top: 16px; max-width: 46ch; }
.hub-footer { padding-block: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hub-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }

.video-dialog { width: min(100% - 28px, 1000px); max-height: calc(100dvh - 32px); padding: 22px; background: var(--panel); color: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.video-dialog::backdrop { background: rgba(0, 0, 0, .85); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.dialog-head h2 { font: 600 22px/1.3 var(--body); }
.dialog-close { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: white; background: transparent; font-size: 24px; }
.video-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: black; }
.dialog-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 16px; font-size: 14px; }

@media (max-width: 1050px) {
  .learn-hero { gap: 22px; }
  .paths { width: 390px; height: 420px; }
  .path-disc { width: 205px; height: 205px; }
  .path-disc.agents, .path-disc.python { top: 205px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hub-links { display: none; }
  .hub-nav { padding-left: 13px; }
  .brand { gap: 7px; }
  .brand span { font-size: 22px; }
  .learn-hero { grid-template-columns: 1fr; padding-block: 46px 62px; gap: 36px; }
  .learn-hero h1 { font-size: clamp(62px, 15vw, 92px); }
  .learn-hero p { font-size: 18px; }
  .paths { width: min(100%, 390px); justify-self: center; height: 375px; }
  .path-disc { width: clamp(140px, 44vw, 180px); height: clamp(140px, 44vw, 180px); gap: 6px; padding: 12px 8px; }
  .path-disc strong { font-size: 29px; }
  .path-disc.fundamentals strong { font-size: 23px; }
  .path-disc.agents, .path-disc.python { top: 180px; }
  .exercise-grid, .course-intro, .course-grid { grid-template-columns: 1fr; gap: 26px; }
  .prompt-box { padding: 20px; }
  .resource-grid { gap: 18px; }
  .timeline-layout { grid-template-columns: 1fr; gap: 24px; }
  .timeline-stops { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; }
  .timeline-stops li { flex: 0 0 210px; padding: 0 15px 10px 0; scroll-snap-align: start; }
  .timeline-stops li:not(:last-child)::before { left: 24px; right: -24px; top: 23px; bottom: auto; width: auto; height: 2px; }
  .timeline-step { grid-template-columns: 1fr; gap: 14px; }
  .stop-copy { padding: 0; }
  .timeline-intro { display: grid; gap: 12px; }
  .timeline-current h3 { font-size: 34px; }
  .timeline-practice { padding: 26px; }
  .resource-body { padding: 20px; }
  .library-head { gap: 20px; }
  .search { width: 100%; }
}

@media (max-width: 560px) {
  .resource-grid { grid-template-columns: 1fr; }
  .video-dialog { padding: 14px; }
}

@media (max-width: 359px) {
  .hub-nav { gap: 6px; padding-right: 8px; }
  .hub-nav .button { padding-inline: 11px; }
  .paths { height: 300px; }
  .path-disc strong { font-size: 26px; }
  .path-disc.fundamentals strong { font-size: 19px; }
  .path-disc.agents, .path-disc.python { top: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
