/*
SPDX-FileCopyrightText: 2026 The VyrnixOS Authors <https://vyrnixos.org>
SPDX-License-Identifier: MIT
*/
/* VyrnixOS web stylesheet. Colors only from docs/projekt/vyrnix-farben.md (dark).
   Links (#e0524d) are only used on bg0_h (#141a1b) to keep contrast >= 4.5:1. */

:root {
  --bg0_h: #141a1b;   /* page background */
  --bg1:   #263031;   /* code, subtle surfaces */
  --bg3:   #3d494a;   /* borders, rules */
  --fg4:   #a3aba8;   /* secondary text */
  --fg1:   #e2e2d6;   /* body text */
  --fg0:   #f0eee2;   /* headings, text on accent */
  --red:   #ab2b28;   /* accent surface (BSD red) */
  --red_l: #e0524d;   /* links, focus */
  --purple_l: #c48aa8; /* visited links */
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg0_h);
  color: var(--fg1);
  font-family: system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

header.site, main, footer.site {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg3);
}

.brand {
  color: var(--fg0);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
nav a[aria-current="page"] { color: var(--fg0); text-decoration: none; font-weight: 600; }

main { padding-top: 2rem; padding-bottom: 3rem; }

h1, h2, h3, h4 { color: var(--fg0); line-height: 1.25; }
h1 { font-size: 2.25rem; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }

a { color: var(--red_l); text-underline-offset: 0.15em; }
a:visited { color: var(--purple_l); }
nav a:visited, footer.site a:visited, .brand:visited { color: var(--red_l); }
.brand:visited { color: var(--fg0); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--red_l); outline-offset: 2px; border-radius: 2px; }

strong { color: var(--fg0); }

hr { border: 0; border-top: 1px solid var(--bg3); margin: 2rem 0; }

ul { padding-left: 1.25rem; }
li { margin: 0.25rem 0; }

.tagline { font-size: 1.3rem; color: var(--fg0); margin-top: 0; }

.status {
  display: inline-block;
  background: var(--red);
  color: var(--fg0);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--red);
  color: var(--fg0);
  padding: 0.5rem 0.75rem;
  z-index: 1;
}

footer.site {
  border-top: 1px solid var(--bg3);
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--fg4);
}
footer.site p { margin: 0.4rem 0; }
.small { font-size: 0.875rem; }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.3rem; }
}
