/* lorem-simon.de: Grundlagen für alle Seiten.
   Schriften, Farben, Kopf- und Fußzeile, Textseiten (Impressum, Datenschutz, 404). */

/* Schriften liegen lokal, es geht keine Anfrage an Google oder andere Server.
   Alle drei stehen unter der SIL Open Font License 1.1, die Lizenztexte liegen in ../fonts/. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/schibsted-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/schibsted-grotesk-900.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/newsreader-400-500.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/newsreader-italic-400-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #e1e5e4;
  --ink: #15191b;
  --muted: #525c61;
  --line: rgba(21, 25, 27, 0.16);
  --accent: #dfa72a;
  --accent-ink: #1c1606;
  --shadow: rgba(21, 25, 27, 0.22);
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--ink); }
body { margin: 0; font-family: var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 44px); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; }
.dot { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

/* Kopfzeile */
.bar { display: flex; align-items: baseline; justify-content: flex-end; gap: 16px; flex-wrap: wrap; padding-block: 22px 0; position: relative; z-index: 3; }
/* Links in der Kopfzeile: Klickfläche mindestens 24 px hoch, Lage unverändert */
.bar a { display: inline-block; padding-block: 4px; margin-block: -4px; }
.bar .mono { font-size: 0.78rem; color: var(--muted); text-decoration: none; }
.bar a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Fußzeile */
.foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-block: 28px 36px; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--muted); }
.foot a { text-underline-offset: 3px; }
.foot a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.foot .pil { color: var(--accent); font-family: var(--text); font-style: italic; font-weight: 700; }

/* Textseiten: Impressum, Datenschutz, 404. Ohne Animationen und ohne Script. */
.bar.doc-bar { justify-content: space-between; align-items: center; }
.bar .home { font: 900 1.35rem/1 var(--display); letter-spacing: -0.04em; text-decoration: none; color: var(--ink); }
.bar .home:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.doc { max-width: 46rem; padding-block: clamp(44px, 9vh, 112px) 72px; }
.doc h1 { margin: 0; font: 900 clamp(2.6rem, 7.4vw, 4.4rem)/0.95 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.doc .intro { margin: 1.2rem 0 0; max-width: 40ch; font: 400 clamp(1.12rem, 1.4vw, 1.3rem)/1.5 var(--text); text-wrap: pretty; }
.doc section { margin-top: 2.4rem; padding-top: 0.95rem; border-top: 1.5px solid var(--ink); }
.doc h2 { margin: 0 0 0.6rem; font: 700 clamp(1.08rem, 1.5vw, 1.25rem)/1.3 var(--display); letter-spacing: -0.01em; }
.doc p { margin: 0 0 0.75rem; max-width: 62ch; font: 400 clamp(1.05rem, 1.25vw, 1.16rem)/1.55 var(--text); text-wrap: pretty; }
.doc p:last-child { margin-bottom: 0; }
.doc a { text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.doc a:hover { text-decoration-thickness: 2px; }
.doc .stand { margin-top: 2.4rem; font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.02em; color: var(--muted); }
.doc .back { display: inline-block; margin-top: 1.6rem; font: 700 clamp(1.05rem, 1.35vw, 1.2rem)/1.2 var(--display); letter-spacing: -0.01em; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
