/* @aisocratic/design 0.2.0 — plain CSS custom properties, no Tailwind. Generated by scripts/build-css.ts; do not edit. */
@layer base {
  :root {
    --white: #ffffff;
    --neutral-50: #fafafa;
    --neutral-100: #f8f8f8;
    --neutral-300: #c8c8c8;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --oat-1: #faf9f5;
    --oat-2: #f0eee6;
    --oat-3: #e8e6dc;
    --oat-4: #e3dacc;
    --oat-5: #d4cdbf;
    --oat-6: #c6bfb0;
    --oat-7: #b1aa9c;
    --oat-8: #928b7f;
    --oat-9: #797469;
    --oat-10: #5e5d59;
    --oat-11: #3d3d3a;
    --oat-12: #141413;
    --ink-1: #141414;
    --ink-2: #1c1c1c;
    --ink-3: #202020;
    --ink-4: #242424;
    --ink-5: #282828;
    --ink-6: #303030;
    --ink-7: #474747;
    --ink-8: #5c5c5c;
    --ink-9: #737373;
    --ink-10: #8a8a8a;
    --ink-11: #a1a1aa;
    --ink-12: #e6e6e6;
    --amber-400: #fbbf24;
    --amber-600: #d97706;
    --violet-500: #8b5cf6;
    --violet-600: #7c3aed;
    --red-400: #f87171;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --green-400: #4ade80;
    --green-800: #166534;
    --yellow-400: #facc15;
    --yellow-800: #854d0e;
    --orange-400: #fb923c;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --blue-400: #60a5fa;
    --blue-700: #1d4ed8;
    --cyan-400: #22d3ee;
    --cyan-700: #0e7490;
    --purple-400: #c084fc;
    --purple-700: #7e22ce;
    --radius-md: 0.625rem; /* control */
    --radius-xl: 1rem; /* surface */
    --radius: var(--radius-md);
    --radius-xs: var(--radius-md);
    --radius-sm: var(--radius-md);
    --radius-lg: var(--radius-md);
    --radius-2xl: var(--radius-xl);
    --text-micro: 0.6875rem;
    --text-micro--line-height: 1.45;
    --text-body: 0.875rem;
    --text-body--line-height: 1.618;
    --text-lead: 1.125rem;
    --text-lead--line-height: 1.5;
    --text-title: clamp(1.125rem, 1.009rem + 0.476vw, 1.4375rem);
    --text-title--line-height: 1.35;
    --text-section: clamp(1.4375rem, 1.298rem + 0.571vw, 1.8125rem);
    --text-section--line-height: 1.272;
    --text-page: clamp(1.8125rem, 1.627rem + 0.762vw, 2.3125rem);
    --text-page--line-height: 1.2;
    --text-display: clamp(2.3125rem, 2.08rem + 0.952vw, 2.9375rem);
    --text-display--line-height: 1.15;
    --text-hero: clamp(2.9375rem, 2.659rem + 1.143vw, 3.6875rem);
    --text-hero--line-height: 1.1;
    --text-mega: clamp(3.6875rem, 3.316rem + 1.524vw, 4.6875rem);
    --text-mega--line-height: 1.05;
    --tracking-nav: 0.08em;
    --tracking-eyebrow: 0.14em;
    --font-body: var(--aisocratic-font-body, var(--stoa-font-body, "Space Grotesk", ui-sans-serif, system-ui, sans-serif));
    --font-display: var(--aisocratic-font-display, var(--stoa-font-display, "Newsreader", Georgia, "Times New Roman", serif));
    --font-code: var(--aisocratic-font-code, var(--stoa-font-code, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace));
    --brand-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 35%, #ec4899 65%, #f472b6 100%);
  }

  :root, .light, [data-theme="light"] {
    color-scheme: light;
    --background: var(--oat-2);
    --foreground: var(--oat-12);
    --reading: var(--oat-11);
    --muted-foreground: var(--oat-10);
    --card: var(--oat-1);
    --popover: var(--oat-1);
    --muted: var(--oat-3);
    --secondary: var(--oat-3);
    --border: var(--oat-4);
    --primary: var(--oat-12);
    --primary-foreground: var(--oat-1);
    --accent: var(--amber-600);
    --accent-foreground: var(--white);
    --destructive: var(--red-600);
    --destructive-foreground: var(--white);
    --join: var(--violet-600);
    --join-foreground: var(--white);
    --status-success: var(--green-800);
    --status-warning: var(--yellow-800);
    --status-caution: var(--orange-800);
    --status-danger: var(--red-700);
    --status-info: var(--blue-700);
    --status-highlight: var(--cyan-700);
    --status-accent: var(--purple-700);
    --chart-1: var(--amber-600);
    --chart-2: var(--green-800);
    --chart-3: var(--purple-700);
    --chart-4: var(--violet-600);
    --chart-5: var(--red-700);
    --chart-ramp-1: var(--amber-600);
    --chart-ramp-2: var(--oat-12);
    --chart-ramp-3: var(--oat-10);
    --chart-ramp-4: var(--oat-8);
    --chart-ramp-5: var(--oat-6);
    --chart-ramp-muted: var(--oat-3);
    --card-foreground: var(--foreground);
    --popover-foreground: var(--foreground);
    --secondary-foreground: var(--foreground);
    --input: var(--border);
    --ring: var(--accent);
  }

  .dark, [data-theme="dark"] {
    color-scheme: dark;
    --background: var(--ink-1);
    --foreground: var(--ink-12);
    --reading: var(--neutral-300);
    --muted-foreground: var(--ink-11);
    --card: var(--ink-2);
    --popover: var(--ink-3);
    --muted: var(--ink-5);
    --secondary: var(--ink-4);
    --border: var(--ink-6);
    --primary: var(--neutral-50);
    --primary-foreground: var(--ink-1);
    --accent: var(--amber-400);
    --accent-foreground: var(--ink-1);
    --destructive: var(--red-600);
    --destructive-foreground: var(--white);
    --join: var(--violet-500);
    --join-foreground: var(--white);
    --status-success: var(--green-400);
    --status-warning: var(--yellow-400);
    --status-caution: var(--orange-400);
    --status-danger: var(--red-400);
    --status-info: var(--blue-400);
    --status-highlight: var(--cyan-400);
    --status-accent: var(--purple-400);
    --chart-1: var(--amber-400);
    --chart-2: var(--green-400);
    --chart-3: var(--purple-400);
    --chart-4: var(--violet-500);
    --chart-5: var(--red-400);
    --chart-ramp-1: var(--amber-400);
    --chart-ramp-2: var(--ink-12);
    --chart-ramp-3: var(--ink-10);
    --chart-ramp-4: var(--ink-8);
    --chart-ramp-5: var(--ink-7);
    --chart-ramp-muted: var(--ink-3);
    --card-foreground: var(--foreground);
    --popover-foreground: var(--foreground);
    --secondary-foreground: var(--foreground);
    --input: var(--border);
    --ring: var(--accent);
  }

  @media (prefers-color-scheme: dark) {
    :root:not(.light):not([data-theme="light"]) {
      color-scheme: dark;
      --background: var(--ink-1);
      --foreground: var(--ink-12);
      --reading: var(--neutral-300);
      --muted-foreground: var(--ink-11);
      --card: var(--ink-2);
      --popover: var(--ink-3);
      --muted: var(--ink-5);
      --secondary: var(--ink-4);
      --border: var(--ink-6);
      --primary: var(--neutral-50);
      --primary-foreground: var(--ink-1);
      --accent: var(--amber-400);
      --accent-foreground: var(--ink-1);
      --destructive: var(--red-600);
      --destructive-foreground: var(--white);
      --join: var(--violet-500);
      --join-foreground: var(--white);
      --status-success: var(--green-400);
      --status-warning: var(--yellow-400);
      --status-caution: var(--orange-400);
      --status-danger: var(--red-400);
      --status-info: var(--blue-400);
      --status-highlight: var(--cyan-400);
      --status-accent: var(--purple-400);
      --chart-1: var(--amber-400);
      --chart-2: var(--green-400);
      --chart-3: var(--purple-400);
      --chart-4: var(--violet-500);
      --chart-5: var(--red-400);
      --chart-ramp-1: var(--amber-400);
      --chart-ramp-2: var(--ink-12);
      --chart-ramp-3: var(--ink-10);
      --chart-ramp-4: var(--ink-8);
      --chart-ramp-5: var(--ink-7);
      --chart-ramp-muted: var(--ink-3);
      --card-foreground: var(--foreground);
      --popover-foreground: var(--foreground);
      --secondary-foreground: var(--foreground);
      --input: var(--border);
      --ring: var(--accent);
    }
  }
}

/* Shared static-site recipes for the AI Socratic project family.
 * Tokens are prepended at build time. Import before project-specific CSS. */
:root {
  --measure: 68ch;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--text-body--line-height);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 200;
  line-height: 1.2;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-code);
  font-size: 0.9285em;
  font-variant-ligatures: none;
}

svg {
  display: block;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--accent-foreground);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

/* ------------------------------------------------------------- text styles */

/* Stoa's two text styles, verbatim: `text-eyebrow` for eyebrows, footer
   column heads and table heads; `text-nav` for the header navigation. */
.text-eyebrow {
  font-size: var(--text-micro);
  line-height: var(--text-micro--line-height);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
}

.text-nav {
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

/* ------------------------------------------------------------------ layout */

/* Stoa's `page-shell` utility, verbatim: the 72rem measure with the gutter
   added on top of the cap, so content lines up with the rest of the family. */
.page-shell {
  width: 100%;
  margin-inline: auto;
  max-width: calc(72rem + 2rem);
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .page-shell {
    max-width: calc(72rem + 3rem);
    padding-inline: 1.5rem;
  }
}

/* Section, size md: 64px each side, with a divider. */
.section {
  padding-block: 4rem;
  border-top: 1px solid var(--border);
}

/* SectionHeading: eyebrow in the primary colour, display title, muted lead. */
.section-head {
  max-width: var(--measure);
  margin-bottom: 2rem;
}

.section-head .text-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary);
  font-family: var(--font-body);
}

.section-head h2 {
  font-size: var(--text-section);
  line-height: var(--text-section--line-height);
}

.section-head p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: var(--text-lead);
  line-height: var(--text-lead--line-height);
}

/* ---------------------------------------------------------------- skip link */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 0.5rem 0.875rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* ------------------------------------------------------------------- header */

/* SiteHeader: out of flow (absolute), scrolls away with the page and reserves
   no space. Geometry is load-bearing for the hero's `lead` padding:
   24 (pt) + 16 + 48 (brand row) + 16 = 104px. */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  padding-top: 1.5rem;
}

/* `relative` is required: the nav is absolutely centred on the bar and would
   otherwise centre on the viewport. */
.site-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: 3rem;
  min-width: 0;
}

.lockup {
  display: inline-flex;
  align-items: center;
  color: var(--foreground);
  text-decoration: none;
  flex: none;
}

.lockup svg {
  height: 2rem;
  width: auto;
}

.product {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--muted-foreground);
  text-decoration: none;
  white-space: nowrap;
}

.product b {
  color: var(--foreground);
  font-weight: 500;
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

/* navLinkClass: text-nav, half-strength until hovered or current. */
.nav-link {
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  color: color-mix(in srgb, var(--foreground) 50%, transparent);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease-out;
}

.nav-link:hover {
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
}

.nav-link[aria-current="page"] {
  color: var(--foreground);
  font-weight: 600;
}

.site-actions,
.site-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-actions {
  display: none;
}

@media (min-width: 64rem) {
  .site-nav,
  .site-actions {
    display: flex;
  }
  .site-menu {
    display: none;
  }
}

/* ThemeToggle: a 32px circle with a generous hit area, on the same rung as
   every other header control. Moon in light, sun in dark. */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--foreground);
  transition: background-color 0.15s ease-out;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: -0.375rem;
}

.theme-toggle:hover {
  background: var(--secondary);
}

.theme-toggle .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.theme-toggle [data-icon="sun"] {
  display: none;
}

:root[data-theme="dark"] .theme-toggle [data-icon="moon"] {
  display: none;
}

:root[data-theme="dark"] .theme-toggle [data-icon="sun"] {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle [data-icon="moon"] {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-toggle [data-icon="sun"] {
    display: block;
  }
}

/* Button variant="ghost" size="icon": 32px square, control radius. */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  color: var(--foreground);
  transition: background-color 0.2s ease-out;
}

.icon-btn:hover {
  background: var(--secondary);
}

#menu-toggle [data-icon="x"] {
  display: none;
}

#menu-toggle[aria-expanded="true"] [data-icon="menu"] {
  display: none;
}

#menu-toggle[aria-expanded="true"] [data-icon="x"] {
  display: block;
}

/* MobileMenu: the overlay sits at z-30, the panel at z-40, the header at
   z-50, so the header and its X stay clickable above the open panel. The
   panel has its own surface: links directly over the blurred page were
   unreadable. Top padding is the 104px header plus a 24px gap. */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(4px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  padding-block: 8rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(12px);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav > a {
  padding-block: 0.5rem;
  font-size: var(--text-title);
  line-height: var(--text-title--line-height);
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  color: color-mix(in srgb, var(--foreground) 60%, transparent);
  text-decoration: none;
  transition: color 0.15s ease-out;
}

.mobile-nav > a:hover {
  color: var(--foreground);
}

.mobile-nav-foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-nav-foot a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.mobile-nav-foot a:hover {
  color: var(--foreground);
}

/* ----------------------------------------------------------------- buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Stoa's control recipe: text-body, medium, control radius. `.btn` is
   size="lg" (h-10 px-5); `.btn-sm` is the default rung (h-8 px-3). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding-inline: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--foreground);
  font-size: var(--text-body);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease-out,
    border-color 0.2s ease-out,
    color 0.2s ease-out;
}

.btn-sm {
  height: 2rem;
  padding-inline: 0.75rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, transparent);
}

.btn-outline {
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--secondary);
}

/* variant="cta", in the reserved --join colour: the page's one call to action. */
.btn-cta {
  background: var(--join);
  color: var(--join-foreground);
  font-weight: 600;
  box-shadow:
    0 10px 15px -3px color-mix(in srgb, var(--join) 25%, transparent),
    0 4px 6px -4px color-mix(in srgb, var(--join) 25%, transparent);
}

.btn-cta:hover {
  background: color-mix(in srgb, var(--join) 90%, transparent);
}

/* ------------------------------------------------------------------ footer */

/* SiteFooter: the rules are on full-bleed elements rather than inside the
   shell so they span the viewport instead of stopping at the 72rem column. */
.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: blur(12px);
}

.footer-top {
  padding-block: 4rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.footer-brand .lockup {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--muted-foreground);
}

.footer-grid h4 {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--foreground);
}

.footer-grid ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid ul a,
.footer-bar-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease-out;
}

.footer-grid ul a:hover,
.footer-bar-links a:hover {
  color: var(--foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
}

.footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .footer-bar {
    flex-direction: row;
  }
}

.footer-bar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social .icon {
  width: 1.125rem;
  height: 1.125rem;
}

/* PageHero + Section: shared entry to each GitHub Pages project. */
.project-hero {
  padding-block: calc(104px + 6.5rem) 6.5rem;
  text-align: center;
}
.project-hero h1 {
  font-size: var(--text-hero);
  line-height: var(--text-hero--line-height);
}
.project-hero .text-eyebrow {
  margin-bottom: 0.75rem;
}
.project-hero .hero-sub {
  max-width: 58ch;
  margin: 1rem auto 0;
  font-size: var(--text-lead);
  line-height: var(--text-lead--line-height);
  color: var(--muted-foreground);
}
.project-hero .actions {
  justify-content: center;
  margin-top: 2rem;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: var(--text-body);
}
.project-links a {
  color: var(--muted-foreground);
  text-decoration: none;
}
.project-links a:hover,
.project-links a[aria-current="page"] {
  color: var(--foreground);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}

@media (max-width: 639px) {
  .project-hero .actions {
    flex-direction: column;
    align-items: center;
  }
}
