/* Studio's neutral shell. Drawing SVGs, canvases and generated images keep their original colours. */
html:has(body.studio-project-page) {
  color-scheme: dark;
  background: #000;
}

body.studio-project-page {
  --sans: Inter, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --serif: var(--sans);
  --snow: #f5f5f5;
  --snow-2: #e9e9e9;
  --joint: #00000024;
  --ice: #555;
  --ice-deep: #333;
  --ice-soft: #c8c8c8;
  --night: #080808;
  --night-2: #181818;
  --night-line: #ffffff24;
  --ink: #222;
  --muted: #626262;
  --glass-edge: #ffffff24;
  --stage-text: #eee;
  --stage-muted: #aaa;
  margin: 0;
  background: #000;
  color: #eee;
  color-scheme: dark;
  font-family: var(--sans);
}

body.studio-project-page::before,
body.studio-project-page::after {
  display: none;
}

body.studio-project-page .project-shell {
  --project-ground: #000;
  --project-paper: #191919;
  --project-ink: #eee;
  --project-muted: #aaa;
  --project-line: #333;
  --project-accent: #e5e5e5;
  background: #000;
}

body.studio-project-page .project-top {
  border-bottom-color: #292929;
  background: #0b0b0be8;
  color: #eee;
  box-shadow: inset 0 -1px 0 #ffffff03;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.studio-project-page .project-brand {
  font-weight: 550;
}

body.studio-project-page .project-brand svg {
  color: #ccc;
}

body.studio-project-page .project-top nav a {
  color: #999;
  border: 1px solid transparent;
}

body.studio-project-page .project-top nav a:hover {
  background: #1b1b1b;
  color: #eee;
}

body.studio-project-page .project-top nav a[aria-current] {
  border-color: #3c3c3c;
  background: #252525;
  color: #fff;
  font-weight: 550;
}

body.studio-project-page .project-home {
  background: transparent;
}

body.studio-project-page .project-eyebrow {
  color: #9b9b9b;
  font-family: var(--sans);
  font-weight: 500;
}

body.studio-project-page .project-hero h1,
body.studio-project-page .planning-head h1,
body.studio-project-page .construction-heading h1 {
  color: #f0f0f0;
  font-weight: 550;
}

body.studio-project-page .project-card {
  border-color: #333;
  border-radius: 18px;
  background: linear-gradient(145deg, #202020eb, #151515f5 65%);
  box-shadow: inset 0 1px 0 #ffffff0b, 0 10px 28px #0003;
}

body.studio-project-page .project-card:hover {
  border-color: #555;
  box-shadow: inset 0 1px 0 #ffffff12, 0 14px 32px #0005;
}

body.studio-project-page .project-card-art {
  border-color: #303030;
  background-color: #191919;
  background-image: linear-gradient(90deg, #ffffff08 1px, transparent 1px),
    linear-gradient(#ffffff08 1px, transparent 1px);
}

body.studio-project-page .project-card-body h2 {
  font-weight: 550;
}

body.studio-project-page .project-card-body h2 span {
  color: #aaa;
}

/* Controls around the plan retain their layout; the plan drawing itself is untouched. */
body.studio-project-page .project-button,
body.studio-project-page .project-button.subtle {
  border-color: #3c3c3c;
  background: #202020;
  color: #e5e5e5;
  font-weight: 550;
}

body.studio-project-page .project-button.subtle:not(:disabled):hover {
  border-color: #666;
  background: #2b2b2b;
}

body.studio-project-page .project-button.solid {
  border-color: #e1e1e1;
  background: #e1e1e1;
  color: #171717;
}

body.studio-project-page .project-button.solid:not(:disabled):hover {
  background: #fff;
}

body.studio-project-page .planning-site > span {
  border-color: #3c3c3c;
  background: #242424;
  color: #bbb;
}

body.studio-project-page .plan-map,
body.studio-project-page .plan-comparison,
body.studio-project-page .plan-control-section,
body.studio-project-page .construction-list,
body.studio-project-page .construction-board {
  border-color: #333;
  background: #181818;
  color: #eee;
  box-shadow: inset 0 1px 0 #ffffff06;
}

body.studio-project-page .plan-group-list button,
body.studio-project-page .plan-scheme {
  border-color: #383838;
  background: #222;
}

body.studio-project-page .plan-group-list button:hover,
body.studio-project-page .plan-group-list button[aria-pressed='true'],
body.studio-project-page .plan-scheme.chosen,
body.studio-project-page .construction-list button[aria-pressed='true'] {
  border-color: #747474;
  background: #303030;
}

body.studio-project-page .plan-control-section input,
body.studio-project-page .plan-control-section select {
  border-color: #454545;
  background: #101010;
  color: #eee;
}

body.studio-project-page .plan-member-list li {
  border-top-color: #333;
}

body.studio-project-page .construction-preview {
  background: #fff;
}

body.studio-project-page .construction-board [role='alert'] {
  color: #efb1ab;
}

/* The architectural form remains a practical light surface inside the dark shell. */
body.studio-project-page .topbar {
  border-color: #ffffff24;
  background: #181818e6;
}

body.studio-project-page .panel {
  background: linear-gradient(155deg, #fafafa, #ededed);
  color: #222;
  color-scheme: light;
}

body.studio-project-page .course ol {
  border-color: #d8d8d8;
  background: #e9e9e9;
}

body.studio-project-page .block {
  color: #686868;
}

body.studio-project-page .block.done {
  background: #dcdcdc;
  color: #444;
}

body.studio-project-page .block.current {
  border-color: #777;
  background: #343434;
  color: #fff;
  box-shadow: 0 3px 9px #0002, inset 0 1px 0 #ffffff20;
}

body.studio-project-page .panel-foot {
  border-top-color: #d8d8d8;
  background: #f0f0f0;
}

body.studio-project-page .architecture-site-note {
  border-color: #d6d6d6;
  background: #f1f1f1;
}

body.studio-project-page .architecture-site-note strong {
  color: #333;
}

body.studio-project-page button:focus-visible,
body.studio-project-page a:focus-visible,
body.studio-project-page input:focus-visible,
body.studio-project-page select:focus-visible,
body.studio-project-page textarea:focus-visible {
  outline-color: #aaa;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.studio-project-page .project-top { background: #0b0b0b; }
}

@media (prefers-reduced-transparency: reduce) {
  body.studio-project-page .project-top {
    background: #0b0b0b;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body.studio-project-page .project-card { background: #191919; }
}

@media (prefers-reduced-motion: reduce) {
  body.studio-project-page .project-card:hover { transform: none; }
}
