/*
  base.css: the Frida configurator foundations.
  Owns the self-hosted face, every design token, the dark glass recipe and the small shared pieces
  (button reset, focus ring, icon strokes, screen-reader text). Siblings: stage.css (the stage,
  bar, veil, status and tools), panel.css (the options sheet or column, tabs, rows, chips and the
  build sheet), page.css (the showcase copy under the stage).

  Type: Mona Sans, one variable file with a width axis. The marque and the headings run wide
  (the stretched lettering of a fifties bonnet badge), the controls sit at normal width, and its
  tabular figures keep a changing price from shuffling. SIL OFL 1.1, fonts/OFL-Mona-Sans.txt.
*/

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  /* The set is Wren's studio black. The UI is warm graphite with bone-white text and one tonal
     accent, a dull brass taken from the badge and the bright work, used only for "this one". */
  --set: #0e0f11;
  --panel-solid: #161615;
  --text: #ece7de;
  --text-2: #bcb5a9;
  --text-3: #918a7f;
  --line: rgba(236, 231, 222, .12);
  --line-2: rgba(236, 231, 222, .24);
  --press: rgba(236, 231, 222, .08);
  --brass: #c8ac7a;

  --face: "Mona Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --edge: 20px;
  --bar-h: 52px;
  --r-panel: 14px;
  --r-chip: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Glass: the solid fill is the fallback; @supports swaps in the frosted one. Both stay dark
     enough that the smallest text keeps its contrast over a cream car passing underneath. */
  --glass-bg: rgba(22, 22, 21, .96);
  --glass-fx: none;
  --glass-edge: inset 0 0 0 1px var(--line), 0 18px 40px -24px rgba(0, 0, 0, .7);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass-bg: rgba(22, 22, 21, .8);
    --glass-fx: blur(20px) saturate(1.15);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--set);
}
body {
  margin: 0;
  background: var(--set);
  color: var(--text);
  font: 430 1rem/1.5 var(--face);
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled, button[aria-disabled="true"] { cursor: default; }

:focus-visible {
  outline: 1.5px solid var(--brass);
  outline-offset: 2px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-fx);
  backdrop-filter: var(--glass-fx);
  box-shadow: var(--glass-edge);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
