@charset "UTF-8";
/* M5A: shared website values. Game engines and application styles stay local. */
:root {
  color-scheme: dark;
  --color-background: #101110;
  --color-surface: #181a18;
  --color-surface-raised: #22241f;
  --color-text: #efeee7;
  --color-text-muted: #afb0a5;
  --color-border: #34372e;
  --color-accent: #f4a568;
  --color-accent-hover: #ffc291;
  --color-on-accent: #19140f;
  --color-secondary: #c8d4a5;
  --color-light-surface: #eeeee5;
  --color-light-text: #182013;
  --color-light-muted: #444b3b;
  --color-light-focus: #506339;

  /* Existing public styles keep their established palette names. */
  --bg: var(--color-background);
  --surface: var(--color-surface);
  --surface2: var(--color-surface-raised);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --accent: var(--color-accent);
  --lime: var(--color-secondary);
  --max: 1320px;
  --radius: 6px;
  --control-height: 3rem;
  --control-height-small: 2.75rem;
  --control-border: var(--muted);
  --color-danger: #ffc5b8;

  /* M5C: orientation accents; controls retain the shared brand colour. */
  --color-area-entdecken: var(--color-accent);
  --color-area-games: #ffb4a0;
  --color-area-lernen: var(--color-secondary);
  --color-area-projekte: #8dd9c4;
  --color-area-musik: #c9b7ff;
  --color-area-community: #98cbed;
  --area-accent: var(--color-accent);

  /* Local system fonts; relative sizes respect the reader's font setting. */
  --font-body: Arial, Helvetica, sans-serif;
  --font-meta: monospace;
  --type-caption: .75rem;
  --type-small: .8125rem;
  --type-control: .875rem;
  --type-body: 1rem;
  --type-lead: 1.0625rem;
  --type-card: 1.75rem;
  --type-heading: 2rem;
  --type-hero: clamp(3rem, 6.6vw, 6.25rem);
  --type-section: clamp(2.125rem, 4vw, 3.625rem);
  --type-title: clamp(2.875rem, 6vw, 5.25rem);
  --type-home-title: clamp(2.875rem, 5.8vw, 4.875rem);
  --type-home-title-narrow: clamp(2.75rem, 12vw, 3.875rem);
  --type-subpage-title: clamp(2.5rem, 5.2vw, 5.25rem);
  --type-reading-heading: clamp(1.625rem, 2.5vw, 2.125rem);
  --type-reading-subheading: 1.25rem;
  --reading-max: 68ch;
  --subpage-gap: clamp(1.5rem, 3vw, 3rem);
  --leading-body: 1.65;
  --leading-copy: 1.75;
  --leading-heading: 1.05;
  --tracking-heading: -.05em;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
}
