@font-face {
  font-family: 'Workshop Inter';
  src: url('/ai-workshop/workshop/fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Workshop Mono';
  src: url('/ai-workshop/workshop/fonts/jetbrains-mono-variable.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}
:root {
  --ink: #182126;
  --muted: #68757c;
  --line: #dcdfdb;
  --canvas: #fafaf7;
  --accent: #4053cc;
  --accent-soft: #e9ecfb;
  --term: #15181d;
  --term-ink: #dfe4e8;
  --term-muted: #8b96a0;
  --sans: 'Workshop Inter', Inter, system-ui, sans-serif;
  --mono: 'Workshop Mono', 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
}

/* The bar on top of every page */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.bar .home {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.bar .home span {
  color: var(--muted);
  font-weight: 450;
}
.bar .title {
  margin: 0;
  font-size: 15px;
  font-weight: 450;
  color: var(--muted);
}
.bar .title b {
  color: var(--ink);
  font-weight: 600;
}
.steps {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.steps a {
  padding: 3px 9px;
  border-radius: 7px;
  color: var(--muted);
  font: 500 13px/1.6 var(--mono);
  text-decoration: none;
}
.steps a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.steps a[aria-current='page'] {
  background: var(--accent);
  color: #fff;
}
.bar .slides {
  font-size: 14px;
  text-decoration: none;
}

/* A step: the terminal, and the web view next to it */
.stage {
  display: grid;
  gap: 16px;
  height: calc(100dvh - 58px);
  padding: 16px 24px 24px;
}
.stage.with-web {
  grid-template-columns: minmax(420px, 2fr) minmax(0, 3fr);
}
.stage.cli-only {
  grid-template-columns: minmax(0, 1060px);
  justify-content: center;
}
.web {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.terminal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
  border-radius: 12px;
  background: var(--term);
  color: var(--term-ink);
  box-shadow: 0 10px 30px rgb(24 33 38 / 14%);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--term-muted);
  font-size: 13px;
  border-bottom: 1px solid #262b33;
}
.terminal-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a414b;
}
.scroll {
  overflow: auto;
  padding: 14px 18px;
  font: 13.5px/1.55 var(--mono);
}
.intro {
  margin: 0 0 14px;
  color: var(--term-muted);
  font-family: var(--sans);
  font-size: 14px;
}
.entry {
  margin-bottom: 14px;
}
.command {
  margin: 0;
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.dollar {
  color: #7ddc9a;
}
.output {
  margin: 4px 0 0;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.output a {
  color: #9fb0ff;
  word-break: break-all;
}
.output.is-running {
  color: var(--term-muted);
}
.try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 0;
  color: var(--term-muted);
  font-size: 13px;
}
.try button {
  max-width: 100%;
  overflow: hidden;
  padding: 3px 10px;
  border: 1px solid #333a44;
  border-radius: 999px;
  background: #1d2127;
  color: var(--term-ink);
  font: 12.5px/1.5 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.try button:hover {
  border-color: #7d8cf0;
  color: #fff;
}
.prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 14px 14px;
  padding: 9px 12px;
  border: 1px solid #333a44;
  border-radius: 8px;
  background: #0f1216;
  font: 14px/1.4 var(--mono);
}
.prompt:focus-within {
  border-color: #7d8cf0;
}
.prompt input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

/* Results as the slides show them: repositories, numbered skills, details */
.output-text {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.output-text a {
  color: #9fb0ff;
  word-break: break-all;
}
.is-bad {
  color: #ff9a9a;
}
.cli-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}
.cli-summary strong {
  color: #fff;
  font-weight: 600;
}
.cli-summary span {
  padding: 0 9px;
  border-radius: 999px;
  background: rgb(134 214 156 / 16%);
  color: #9fe3b1;
  font-size: 12.5px;
}
.cli-skills {
  display: grid;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.cli-skill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 3px 0;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}
.cli-toggle {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  grid-template-areas:
    'key chevron name product'
    '. . description description';
  align-items: center;
  width: 100%;
  padding: 2px 4px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cli-toggle:hover {
  background: rgb(255 255 255 / 5%);
}
.cli-key {
  grid-area: key;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-width: 24px;
  height: 21px;
  margin-right: 4px;
  padding: 0 4px;
  border: 1px solid #4a525d;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #2c313a;
  color: #aeb7c2;
  font: 600 11.5px/1 var(--mono);
}
.cli-skill.is-open .cli-key {
  border-color: #86d69c;
  color: #86d69c;
}
.cli-chevron {
  grid-area: chevron;
  margin-right: 6px;
  color: #7c8590;
  transition: transform 150ms;
}
.cli-toggle[aria-expanded='true'] .cli-chevron {
  transform: rotate(90deg);
}
.cli-name {
  grid-area: name;
  color: #8fd0ff;
  font-weight: 600;
}
.cli-description {
  grid-area: description;
  overflow: hidden;
  color: #98a2ad;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cli-skill.is-open .cli-description {
  color: #d8dde3;
  white-space: normal;
}
.cli-link {
  margin-top: 3px;
  padding: 1px 8px;
  border-radius: 6px;
  background: rgb(147 174 245 / 12%);
  color: #93aef5;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.cli-link:hover {
  background: rgb(147 174 245 / 22%);
}
.cli-hint {
  margin: 4px 0 0;
  color: var(--term-muted);
  font-size: 12.5px;
}
.cli-skill-details + .cli-skill-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 12%);
}
.cli-title {
  margin: 4px 0 0;
}
.cli-title strong {
  color: #fff;
}
.cli-title .cli-name {
  color: #8fd0ff;
}
.cli-text {
  margin: 2px 0 8px;
  color: #d8dde3;
}
.cli-details {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 16px;
  margin: 0 0 8px;
}
.cli-details dt {
  color: var(--term-muted);
}
.cli-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.cli-details a {
  color: #9fb0ff;
}
.cli-body summary {
  color: #93aef5;
  cursor: pointer;
}
.cli-body .output-text {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #0f1216;
  color: #b9c2cb;
  font-size: 12.5px;
}
.cli-cluster {
  margin: 10px 0;
}
.cli-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}
.cli-chips span {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 7%);
  color: #cfd6dd;
  font-size: 12px;
}

/* The index of all steps */
.index {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}
.index h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.index > p {
  margin: 12px 0 36px;
  color: var(--muted);
  font-size: 18px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.card {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgb(64 83 204 / 10%);
}
.card .number {
  color: var(--accent);
  font: 600 14px/1 var(--mono);
}
.card h2 {
  margin: 4px 0 0;
  font-size: 20px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card .kinds {
  margin-top: 8px;
  color: var(--muted);
  font: 12.5px/1.4 var(--mono);
}

@media (max-width: 900px) {
  .stage.with-web {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(420px, 1fr) minmax(520px, 1fr);
    height: auto;
  }
  .steps {
    margin-left: 0;
  }
}
