/* Stylesheet of the server-rendered blog (functions/lib/blog/render.ts).
   Dark like the app, system fonts only, no external requests: the blog policy
   allows nothing but this file and the cover images. */

:root {
  --bg: #0b0d0a;
  --text: #f4f7ee;
  --muted: #a9b0a0;
  --accent: #c5f25c;
  --line: #262b22;
  --surface: #141811;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.kopf,
main,
.fuss {
  width: 100%;
  max-width: calc(70ch + 2rem);
  margin: 0 auto;
  padding: 0 1rem;
}

.kopf nav,
.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.kopf nav {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.kopf a {
  text-decoration: none;
}

.kopf a:first-child {
  letter-spacing: 0.02em;
}

main {
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  margin-top: 2.25rem;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

p,
ul,
ol {
  margin: 0 0 1.1em;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.4em;
}

strong {
  font-weight: 700;
}

sup {
  font-size: 0.7em;
  line-height: 0;
}

sup a {
  padding: 0 0.1em;
}

.datum {
  color: var(--muted);
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
}

.cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 0 1.5rem;
  border-radius: 0.75rem;
  background: var(--surface);
}

.lead {
  font-size: 1.175rem;
  color: var(--text);
}

.beispiel {
  margin: 0 0 1.25em;
  padding: 0.9rem 1rem 0.1rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0.25rem 0.5rem 0.5rem 0.25rem;
}

.beispiel p {
  margin-bottom: 0.9em;
}

.quellen {
  list-style: none;
  padding-left: 0;
  font-size: 0.95rem;
}

.quellen li {
  scroll-margin-top: 1rem;
}

.quellen li:target {
  background: var(--surface);
  outline: 1px solid var(--accent);
  border-radius: 0.25rem;
}

.quelle-nr {
  display: inline-block;
  min-width: 2.2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.herausgeber {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.herausgeber p {
  margin: 0 0 0.25em;
}

.herausgeber p:last-child {
  margin-bottom: 0;
}

.herausgeber .rolle {
  color: var(--muted);
}

.foto {
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}

.eintrag {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.eintrag h2 {
  margin: 0 0 0.3em;
  font-size: 1.3rem;
}

.eintrag h2 a {
  text-decoration: none;
}

.eintrag h2 a:hover {
  text-decoration: underline;
}

.eintrag .datum {
  margin-bottom: 0.5rem;
}

.eintrag p:last-child {
  margin-bottom: 0;
}

.fuss {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.925rem;
}

.fuss a {
  color: var(--muted);
}

@media (min-width: 40rem) {
  .kopf,
  main,
  .fuss {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
