/*
 * This file is part of the Regatta-Startanlage.
 *
 * (c) Christoph Zander
 *
 * @license LGPL-3.0-or-later
 *
 * Grundgestaltung. Wird bei „racemanagement:setup --force“ überschrieben;
 * eigene Anpassungen gehören in custom.css.
 */

:root {
  --rm-bg: #ffffff;
  --rm-surface: #f4f6f8;
  --rm-text: #14212b;
  --rm-muted: #5b6b78;
  --rm-accent: #0b5cad;
  --rm-orange: #f08a00;
  --rm-ok: #1a7f37;
  --rm-alert: #c62828;
  --rm-radius: 8px;
  --rm-gap: 16px;
  --rm-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --rm-bg: #0f1418;
    --rm-surface: #1a2229;
    --rm-text: #e8edf1;
    --rm-muted: #9aa8b3;
    --rm-accent: #5aa7ff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--rm-bg);
  color: var(--rm-text);
  font: 16px/1.5 var(--rm-font);
}

body > header,
body > main,
body > footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--rm-gap);
}

body > header {
  border-bottom: 1px solid var(--rm-surface);
}

body > main {
  flex: 1;
}

body > footer {
  color: var(--rm-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--rm-surface);
}

a {
  color: var(--rm-accent);
}

img {
  max-width: 100%;
  height: auto;
}
