/* Penta's shared foundation. Both website renderers and every workspace use
   these semantic tokens; individual components own their layout. */
:root {
  --ui-canvas: #f7f7f2;
  --ui-surface: #fffefa;
  --ui-ink: #1c2925;
  --ui-muted: #5e6a64;
  --ui-accent: #46613a;
  --ui-soft: #edf2e7;
  --ui-warm: #8a592c;
  --ui-warm-soft: #f6ead8;
  --ui-line: #d8ded3;
  --ui-lime: #d3fb77;
  --ui-peach: #f6c5ae;
  --ui-danger: #a43532;
  --ui-danger-soft: #fff0ed;
  --ui-success: #346347;
  --ui-radius-sm: 10px;
  --ui-radius: 18px;
  --ui-radius-lg: 24px;
  --ui-shadow: 0 2px 4px #1c292503, 0 10px 32px #1c292506;
  --ui-shadow-raised: 0 6px 16px #1c292508, 0 18px 48px #1c29250d;
  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 24px;
  --ui-space-6: 32px;
  --ui-space-7: 48px;
  --ui-space-8: 64px;
  --ui-panel-padding: clamp(20px, 2.4vw, 32px);
  --ui-section-space: clamp(40px, 5vw, 72px);
  --ui-control-height: 48px;
  --ui-heading-leading: 1.5;
  --ui-body-leading: 1.9;
  --ui-reading-width: 72ch;
}
:root:lang(en) { --ui-heading-leading: 1.22; --ui-body-leading: 1.75; }
html[data-theme=dark], [data-theme=dark] {
  --ui-canvas: #141d19;
  --ui-surface: #1c2822;
  --ui-ink: #eff3eb;
  --ui-muted: #b7c2b7;
  --ui-accent: #c0df9a;
  --ui-soft: #293a2c;
  --ui-warm: #e3b982;
  --ui-warm-soft: #3d3022;
  --ui-line: #3c4c40;
  --ui-danger: #ffb6ad;
  --ui-danger-soft: #422724;
  --ui-success: #a5d2b3;
  --ui-shadow: 0 2px 4px #0001, 0 10px 32px #0002;
  --ui-shadow-raised: 0 8px 32px #0004;
}
