/* geofrey · shared design tokens. Soft sage identity; restrained accents and readable neutral text. */
:root {
  --text:#3e4a46; --text-muted:#5d6b63; --text-subtle:#606d65;
  --on-strong:#fff; --text-inverse-muted:#e6ede8;
  --surface:#fff; --surface-soft:#eef3ef; --canvas:#f7f8f4;
  --border:rgb(65 101 84 / 10%); --border-control:#75877c; --focus:var(--accent);
  --field-surface:#f9faf8; --field-border:#cfdbd2; --field-edge:#819085;
  --field-frame:var(--field-border) var(--field-border) var(--field-edge);
  --accent:#507868; --accent-hover:#416554; --accent-text:#416554;
  --accent-soft:#e4efe9; --accent-soft-hover:#e0ebe5;
  --weight-body:400; --weight-medium:500; --weight-heading:500;
  --brand-filter:brightness(0) saturate(100%) invert(35%) sepia(17%) saturate(724%) hue-rotate(101deg) brightness(95%) contrast(90%);
  --success:#305c3c; --success-bg:#edf5ef;
  --warning:#76500d; --warning-bg:#fff4da;
  --danger:#963e32; --danger-bg:#fff1ed;
  --ink:var(--text); --muted:var(--text-muted); --soft:var(--text-subtle);
  --line:var(--border); --black:var(--text); --radius:12px;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:20px; --space-6:24px; --space-8:32px;
  --radius-xs:6px; --radius-sm:8px; --radius-md:12px; --radius-lg:16px;
  --font-caption:.75rem; --font-small:.8125rem; --font-label:.875rem;
  --font-body:1rem; --font-section:1.125rem; --font-title:1.75rem;
  --control-size:40px; --touch-size:44px; --sidebar:204px;
  --duration-fast:120ms; --duration-normal:180ms;
  --ease:cubic-bezier(.2,.65,.3,1);
  --shadow-modal:0 20px 70px #283d3226;
}
@media (prefers-contrast:more) {
  :root { --field-border:var(--border-control); --field-edge:var(--border-control); --field-surface:var(--surface); }
}

button:enabled:active {filter:brightness(.9)}
button:disabled[aria-busy="true"] {cursor:progress; opacity:1}
button[aria-busy="true"]::before {
  content:""; display:inline-block; box-sizing:border-box; vertical-align:middle;
  width:1em; height:1em; flex:0 0 1em;
  border:2px solid currentColor; border-inline-end-color:transparent; border-radius:50%;
  animation:geofrey-button-spin .7s linear infinite;
}
button[aria-busy="true"] > svg.icon {display:none}
@keyframes geofrey-button-spin {to {transform:rotate(1turn)}}
@media (prefers-reduced-motion:reduce) {
  button[aria-busy="true"]::before {animation:none}
}
