/* Design pass: web-design-guidelines (vercel-labs/agent-skills). */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/figtree-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/figtree-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/figtree-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/figtree-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --gv-sans: "Figtree", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --gv-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gv-ink: #e7eef8;
  --gv-muted: #b7c3d4;
  --gv-line: rgba(148, 163, 184, 0.22);
}

body {
  font-family: var(--gv-sans);
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font-family: inherit;
  touch-action: manipulation;
}

a {
  touch-action: manipulation;
}

.font-mono,
pre,
code,
kbd {
  font-family: var(--gv-mono);
}

h1,
h2 {
  text-wrap: balance;
}

.gv-brief p,
aside h2 + p {
  text-wrap: pretty;
}

.gv-skip {
  position: absolute;
  left: max(0.75rem, env(safe-area-inset-left));
  top: max(0.75rem, env(safe-area-inset-top));
  z-index: 60;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  background: #f8fafc;
  color: #020617;
  padding: 0.55rem 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

.gv-skip:focus {
  transform: none;
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

#lesson,
#mission {
  scroll-margin-top: 5rem;
}

header.z-20 {
  padding-top: max(0.75rem, env(safe-area-inset-top));
  padding-left: max(0.75rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(14px);
}

header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

header span.grid {
  border-radius: 0.8rem;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.gv-tagline {
  color: var(--gv-muted);
}

.gv-count,
.gv-status {
  font-variant-numeric: tabular-nums;
}

.gv-count {
  font-weight: 600;
  color: var(--gv-ink);
}

.gv-brief h2 {
  flex: 1 0 100%;
  margin-top: 0.15rem;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.gv-brief p {
  color: var(--gv-ink);
  font-size: 0.98rem;
}

.gv-command {
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: #020617 !important;
  font-size: 0.92rem;
}

.gv-stage {
  min-height: 12rem;
}

.gv-canvas {
  display: grid;
  align-content: safe center;
  min-height: 12rem;
  background-color: #0b1220;
  background-image:
    radial-gradient(ellipse 48% 55% at 28% 48%, rgba(14, 165, 233, 0.18), transparent 68%),
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: auto, 100% 28px, 56px 100%;
  border-color: var(--gv-line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gv-canvas > svg,
.gv-commits {
  grid-area: 1 / 1;
}

.gv-svg {
  justify-self: start;
  align-self: center;
  width: auto;
  height: auto;
  max-width: none;
}

.gv-commits {
  align-self: center;
  margin: 0;
}

.gv-commits p:first-child {
  font-size: 0.95rem;
  font-weight: 500;
  color: #f8fafc;
}

.gv-empty {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 2rem;
  color: var(--gv-muted);
}

.gv-status {
  color: var(--gv-muted);
}

button[aria-current="step"] {
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.2), transparent 58%),
    #1e293b;
  box-shadow: inset 3px 0 0 #38bdf8;
}

.gv-steps,
.gv-menu,
.gv-overlay,
.gv-canvas {
  overscroll-behavior: contain;
}

.gv-run button {
  letter-spacing: -0.01em;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.28);
}

.gv-run button:disabled {
  box-shadow: none;
}

.gv-dialog {
  overscroll-behavior: contain;
}

button,
a {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}

@keyframes gv-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.gv-svg,
.gv-commits > li {
  animation: gv-rise 320ms ease both;
}

.gv-commits > li:nth-child(2) { animation-delay: 40ms; }
.gv-commits > li:nth-child(3) { animation-delay: 80ms; }
.gv-commits > li:nth-child(4) { animation-delay: 120ms; }
.gv-commits > li:nth-child(5) { animation-delay: 160ms; }

@media (min-width: 40rem) {
  header.z-20 {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
}

@media (min-width: 64rem) {
  .gv-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .gv-canvas {
    flex: 1;
    min-height: 0;
    overflow: auto;
  }
}

@media (max-width: 63.99rem) {
  html { scroll-padding-bottom: 5.5rem; }

  header.z-20 {
    position: sticky;
    top: 0;
  }

  header.z-20 > div:first-child {
    flex: 1 1 12rem;
  }

  .gv-tagline {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .gv-run {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--gv-line);
    padding: 0.75rem 0.75rem max(0.75rem, env(safe-area-inset-bottom));
  }

  .gv-run p {
    display: none;
  }

  .gv-app {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }

  .gv-overlay {
    z-index: 40;
    padding-bottom: 5.5rem;
  }
}

@media (pointer: coarse) {
  .gv-run p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gv-svg,
  .gv-commits > li {
    animation: none;
  }

  button,
  a {
    transition: none;
  }
}
