/* LAB portfolio display controls; the source project cards keep their original language. */
:root[data-theme=dark] {
  color-scheme: dark;
  --ink: #edf3ed;
  --muted: #a7b8ae;
  --paper: #0b1419;
  --line: #344a43;
  --green: #234d3b;
  --accent: #a6e4b1;
}
:root[data-theme=light] { color-scheme: light; }

html { font-size: calc(100% * var(--scale, 1)); }
body { font-size: 1rem; }
h1 { font-size: clamp(calc(48px * var(--scale, 1)), calc(6.3vw * var(--scale, 1)), calc(82px * var(--scale, 1))); }
.hero-intro { font-size: calc(21px * var(--scale, 1)); }
.project h3 { font-size: calc(19px * var(--scale, 1)); }
.project>p, .group-heading p, .doors p, .hero-note { font-size: calc(12px * var(--scale, 1)); }
.site-header { max-width: 1440px; flex-wrap: wrap; }
.site-header .ai8-toolbar { margin-left: auto; color: var(--ink); }
.site-header .ai8-controls { display: inline-flex; gap: .2rem; flex: none; }
.site-header .ai8-toolbar button { cursor: pointer; }
.site-header .ai8-toolbar button:disabled { cursor: not-allowed; }

:root[data-theme=dark] .wordmark span,
:root[data-theme=dark] h1 em,
:root[data-theme=dark] .group-count,
:root[data-theme=dark] .project h3 span { color: #a6e4b1; }
:root[data-theme=dark] .wordmark small { border-color: var(--line); }
:root[data-theme=dark] .hero-intro,
:root[data-theme=dark] .project>small { color: var(--muted); }
:root[data-theme=dark] .seed,
:root[data-theme=dark] .doors a,
:root[data-theme=dark] .project,
:root[data-theme=dark] .closing,
:root[data-theme=dark] .search input { background: #14252a; color: var(--ink); }
:root[data-theme=dark] .doors a:hover { background: #203a35; }
:root[data-theme=dark] .primary,
:root[data-theme=dark] .filter-buttons button[aria-pressed=true] { color: #0b1419; }
:root[data-theme=dark] .state { background: #263731; color: var(--ink); }
:root[data-theme=dark] .state.live { background: #1d4933; color: #c8f4d1; }
:root[data-theme=dark] .state.seeded { background: #514324; color: #f8e3a9; }
:root[data-theme=dark] .skip { background: #14252a; color: var(--ink); }
:root[data-theme=dark] .search input::placeholder { color: var(--muted); }

@media (max-width: 950px) {
  .site-header .ai8-toolbar { margin-left: 0; width: 100%; justify-content: flex-end; }
}
@media (max-width: 650px) {
  .site-header .ai8-toolbar { justify-content: flex-start; }
  .hero-copy { min-width: 0; }
  h1 { font-size: min(calc(58px * var(--scale, 1)), 20vw); }
}
