@font-face {
  font-family: 'Hanken Grotesk';
  src: url('./suite-body.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --suite-chrome: #122b46;
  --suite-navy: #1e3a5f;
  --suite-panel: #193149;
  --suite-control: #26415b;
  --suite-control-border: #607084;
  --suite-control-hover: #34526b;
  --suite-burnt-orange: #c2410c;
  --suite-burnt-orange-hover: #a9380b;
  --suite-burnt-orange-edge: #e9a078;
  --suite-control-on: var(--suite-burnt-orange);
  --suite-warm: var(--suite-burnt-orange-edge);
  --suite-paper: #faf8f3;
  --suite-desk: #eaf0f3;
  --suite-ink: #17212b;
  --suite-muted: #5c6872;
  --suite-line: #dedfdc;
  --suite-on-dark: #faf8f3;
  --suite-muted-on-dark: #b9c7d2;
  --suite-ui-font: 'Hanken Grotesk', system-ui, 'Segoe UI', sans-serif;
  --suite-title-font: var(--suite-ui-font);
}

body { font-family: var(--suite-ui-font); }
button, input, select, textarea { font-family: var(--suite-ui-font); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline-color: #ce642f; }


button.suite-icon-button {
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 4px;
  color: #edf5ff;
  background: var(--suite-control);
  border: 1px solid var(--suite-control-border);
  border-radius: 5px;
  box-shadow: none;
}
button.suite-icon-button:hover:not(:disabled) { background: var(--suite-control-hover); }
button.suite-icon-button:is([aria-pressed="true"], .on) { background: var(--suite-control-on); }
button.suite-icon-button:focus-visible { outline: 2px solid #ce642f; outline-offset: 2px; }
svg.suite-glyph { display: block; width: 16px; height: 16px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* File and settings actions share these states across app toolbars. */
button.suite-icon-button[data-suite-action] {
  background: var(--suite-control) !important;
  color: #edf5ff !important;
  border-color: var(--suite-control-border) !important;
  border-radius: 5px !important;
}
button.suite-icon-button[data-suite-action]:hover:not(:disabled) { background: var(--suite-control-hover) !important; }
button.suite-icon-button[data-suite-action]:is(:active, [aria-expanded='true'], [aria-pressed='true']):not(:disabled) {
  background: var(--suite-control-on) !important;
  border-color: var(--suite-warm) !important;
}
button.suite-icon-button[data-suite-action]:focus-visible { outline: 2px solid var(--suite-warm) !important; outline-offset: 1px; }

button.suite-icon-button[data-suite-theme-toggle] {
  display: inline-flex;
  flex: 0 0 auto;
  background: var(--suite-control);
  border-color: var(--suite-control-border);
  color: #edf5ff;
}
button.suite-icon-button[data-suite-theme-toggle]:hover { background: var(--suite-control-hover); }
button.suite-icon-button[data-suite-theme-toggle]:active { background: var(--suite-control-on); }
@media screen {
  body[data-suite-theme=smotu] {
    color-scheme: dark;
    --suite-chrome: #0a0a0f;
    --suite-navy: #12121e;
    --suite-panel: #12121e;
    --suite-control: #1a1a2e;
    --suite-control-border: #3a3a5e;
    --suite-control-hover: #29243c;
    --suite-burnt-orange: rgb(255 204 0 / 10%);
    --suite-burnt-orange-hover: rgb(255 204 0 / 18%);
    --suite-burnt-orange-edge: #ffcc00;
    --suite-on-dark: #e8e8f0;
    --suite-muted-on-dark: #a9a9c8;
  }

  body[data-suite-theme=smotu] button[data-suite-theme-toggle] {
    color: #00f5ff;
    border-color: #bf5fff;
  }
}

@font-face { font-family: 'VT323'; src: url('./smotu-vt323.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Press Start 2P'; src: url('./smotu-press-start.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('./smotu-orbitron.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }

@media screen {
  body[data-suite-theme=smotu] {
    --suite-ui-font: 'VT323', monospace;
    --smotu-heading-font: 'Press Start 2P', monospace;
    --smotu-readout-font: 'Orbitron', monospace;
    font-family: var(--suite-ui-font);
  }
  body[data-suite-theme=smotu] :is(button, input, select, textarea, #academy-tools-list strong, #academy-tools-list span) { font-family: var(--suite-ui-font); }
  body[data-suite-theme=smotu] :is(.academy-paper h1, .harmony-heading h1, .bar .brand) {
    font-family: var(--smotu-heading-font); font-size: clamp(12px, 2.5vw, 20px);
    font-weight: 400; line-height: 1.5; letter-spacing: 0; overflow-wrap: anywhere;
  }
  body[data-suite-theme=smotu] :is(#zoomLabel, #academy-tool-title) { font-family: var(--smotu-readout-font); }
}

@media screen {
  /* Static CRT glass. Keep it out of hit testing and the print layout. */
  body[data-suite-theme=smotu]::after {
    content: ''; position: fixed; inset: 0; z-index: 250; pointer-events: none;
    background:
      repeating-linear-gradient(0deg, transparent 0 2px, rgb(0 0 0 / 19%) 2px 3px),
      repeating-linear-gradient(90deg, rgb(255 75 125 / 5%) 0 1px, rgb(55 255 174 / 4%) 1px 2px, rgb(81 170 255 / 4%) 2px 3px),
      radial-gradient(ellipse at center, transparent 50%, rgb(0 0 0 / 27%) 100%);
    opacity: .62;
  }
  body[data-suite-theme=smotu] :is(#academy-tools-list strong, .academy-launchers strong, .academy-paper p, .harmony-panel p) {
    font-family: 'VT323', monospace; font-size: max(16px, 1em); letter-spacing: .015em;
  }
  body[data-suite-theme=smotu] :is(.academy-paper h1, .harmony-heading h1, .bar .brand) {
    font-family: 'Press Start 2P', monospace; line-height: 1.55;
    text-shadow: 1px 0 rgb(255 45 120 / 42%), -1px 0 rgb(0 245 255 / 38%);
  }
  body[data-suite-theme=smotu] :is(#zoomLabel, #academy-tool-title) {
    font-family: 'Orbitron', monospace; font-variant-numeric: tabular-nums;
    text-shadow: 0 0 7px rgb(0 245 255 / 40%);
  }
}
