/* Pixelplease interface language, with Inter as Flext's UI typeface.
   Artwork colours and vector geometry are controlled independently. */
@font-face { font-family: Inter; src: url('assets/Inter-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url('assets/Inter-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url('assets/Inter-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url('assets/Inter-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #555555;
  --line: #e1e1dc;
  --field-line: #d8d8d4;
  --paper: #ffffff;
  --subtle: #f5f5f5;
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  background: var(--paper);
  color: var(--ink);
}
::selection { background: #d6ff00; color: var(--ink); }
body { background: var(--paper); color: var(--ink); font-family: Inter, Arial, sans-serif; }
header { border-color: var(--line); }
header a { font-size: 28px; font-weight: 700; letter-spacing: -.06em; }
.badge { border: 0; padding: 0; color: var(--muted); }
h1 { font-weight: 600; }
.intro-copy { color: var(--ink); }
.eyebrow, .stage-meta, .control-heading, .hint, .status,
.range-label output, .shape-pair label, .hex-pair label,
.stage-bottom, footer { color: var(--muted); }
.workbench { border: 0; border-radius: 0; background: var(--paper); gap: clamp(24px, 3.2vw, 48px); }
.canvas-panel { background: var(--paper); border: 1px solid var(--line); }
.artboard { background: var(--paper); }
.stage-bottom { border-top: 1px solid var(--line); }
.controls { background: var(--paper); border: 0; padding: 0; }
.controls > label, legend { font-weight: 600; }
.blob-settings { border-color: var(--line); }
textarea, select, .hex-field {
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 140ms ease, background-color 140ms ease;
}
textarea { background: var(--subtle); }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23111111' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
}
textarea:focus { border-color: var(--ink); background: var(--paper); outline: 1px solid var(--ink); outline-offset: -1px; }
.shape-pair select { color: var(--ink); }
.hex-field input { color: var(--ink); }
.hex-field span { border-radius: 0; }
input[type=range], .check input { accent-color: var(--ink); }
.secondary, .export, .stage-bottom button {
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  min-height: 44px;
  transition: background-color 140ms ease, color 140ms ease;
}
.export { background: var(--ink); color: var(--paper); min-height: 57px; padding-inline: 22px; }
.stage-bottom button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.secondary:disabled, .export:disabled { background: var(--paper); color: #8a8a84; border-color: var(--field-line); cursor: not-allowed; opacity: 1; }
.swatch { box-shadow: 0 0 0 1px var(--field-line); }
.swatch[aria-pressed=true] { box-shadow: 0 0 0 2px var(--ink); }
footer strong { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.status.error, .hex-error { color: #b33827; }
@media (hover:hover) and (pointer:fine) {
  .secondary:not(:disabled):hover, .stage-bottom button:not([aria-pressed=true]):hover { background: var(--subtle); }
  .export:not(:disabled):hover { background: #333333; }
  select:hover { border-color: var(--ink); }
}
@media(max-width:680px) {
  .workbench { gap: 24px; }
  .canvas-panel { box-shadow: none; }
  .controls { padding: 0; }
}
@media(prefers-reduced-motion:reduce) {
  textarea, select, .hex-field, .secondary, .export, .stage-bottom button { transition: none; }
}
