/* Legacy layout and paint share one cascade layer. Theme recipes own opt-in appearance. */
@layer legacy {
  :root {
    color-scheme: dark;
    font:
      16px/1.5 'Field Kit UI',
      sans-serif;
    color: #f1f7ed;
    background: #10191f;
  }
  * {
    box-sizing: border-box;
  }
  body {
    margin: 0;
  }
  header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 4vw;
    border-bottom: 1px solid #425563;
    font:
      12px/1.5 'Field Kit Mono',
      monospace;
  }
  a {
    color: #ffd27b;
    text-underline-offset: 5px;
  }
  main {
    max-width: 1440px;
    padding: 32px 4vw 64px;
    margin: auto;
  }
  .eyebrow {
    font:
      12px/1.5 'Field Kit Mono',
      monospace;
    color: #ffd27b;
  }
  h1 {
    font:
      600 clamp(32px, 6vw, 66px) / 1.05 'Field Kit Display',
      sans-serif;
    max-width: 800px;
    margin: 20px 0;
  }
  .intro {
    max-width: 800px;
    color: #b5c2c6;
  }
  .controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 0;
  }
  select {
    font: inherit;
    max-width: 100%;
    background: #192934;
    color: #f1f7ed;
    padding: 9px;
    border: 1px solid #78909a;
  }
  :focus-visible {
    outline: 3px solid #ffd27b;
    outline-offset: 4px;
  }
  #review-status {
    font:
      12px/1.5 'Field Kit Mono',
      monospace;
    color: #b5c2c6;
  }
  .studies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
    gap: 20px;
    margin-top: 28px;
  }
  .study {
    background: #16232b;
    border-top: 2px solid #78909a;
    padding: 20px;
    min-width: 0;
  }
  .study h2 {
    margin: 0;
    font-size: 21px;
  }
  .material {
    margin: 5px 0 20px;
    color: #b5c2c6;
  }
  .roles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  figure {
    margin: 0;
    min-width: 0;
  }
  .surface {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #07111c;
  }
  .light .surface {
    background: #f1f7ed;
  }
  .grey .surface {
    background: #777777;
  }
  canvas {
    image-rendering: pixelated;
  }
  figcaption {
    font:
      10px/1.3 'Field Kit Mono',
      monospace;
    padding-top: 8px;
    color: #c4d1d4;
    overflow-wrap: anywhere;
  }
  @media (prefers-reduced-motion: reduce) {
    * {
      scroll-behavior: auto;
    }
  }
}
