/* Eine kleine Blogmaschine – schlichtes, neutrales Stylesheet.
   Gestaltungswerte als Custom Properties; ändere hier, nicht im Markup. */

:root {
  --bg:      #fbfbf9;
  --fg:      #1b1b1a;
  --muted:   #6c6b66;
  --rule:    #e6e5e0;
  --link:    #1b1b1a;
  --link-underline: #bcbbb4;

  --measure: 36rem;            /* Satzbreite */
  --serif:   ui-serif, Georgia, "Times New Roman", serif;
  --sans:    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step: 1.6;                 /* Zeilenhöhe Fließtext */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:    #16150f;
    --fg:    #e9e7df;
    --muted: #9b988d;
    --rule:  #2f2d26;
    --link:  #e9e7df;
    --link-underline: #4a473d;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: var(--step);
  padding: 0 1.25rem;
}

main, header.site, footer.site-foot {
  max-width: var(--measure);
  margin-inline: auto;
}

/* Kopf */
header.site {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}
.site-title {
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
}
.site-sub {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

/* Links allgemein */
a { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--fg); }

/* Übersicht */
ul.index { list-style: none; margin: 0; padding: 0; }
.entry { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
.entry:last-child { border-bottom: 0; }
.entry time, .post-head time {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.entry h2 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 0.5rem; font-weight: 600; }
.entry h2 a { text-decoration: none; }
.entry h2 a:hover { text-decoration: underline; text-decoration-color: var(--fg); }
.excerpt { color: var(--muted); margin: 0; }

/* Einzelbeitrag */
.post-head { margin-bottom: 2rem; }
.post-head h1 { font-size: 2rem; line-height: 1.2; margin: 0; font-weight: 600; }

.post-body { }
.post-body h1, .post-body h2, .post-body h3 { line-height: 1.25; margin: 2rem 0 0.75rem; font-weight: 600; }
.post-body h1 { font-size: 1.7rem; }
.post-body h2 { font-size: 1.4rem; }
.post-body h3 { font-size: 1.15rem; }
.post-body p { margin: 0 0 1.25rem; }
.post-body ul, .post-body ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.post-body li { margin-bottom: 0.35rem; }
.post-body img { max-width: 100%; height: auto; }
.post-body a { }

.post-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}
.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body pre {
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border-radius: 2px;
  font-size: 0.9rem;
}
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.post-body pre code { font-size: inherit; }

.post-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.back { margin-top: 3rem; font-family: var(--sans); font-size: 0.9rem; }
.back a { text-decoration: none; color: var(--muted); }
.back a:hover { color: var(--fg); }

/* Fuß */
footer.site-foot {
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.8rem;
}
footer.site-foot a { color: var(--muted); text-decoration: none; }
footer.site-foot a:hover { color: var(--fg); }

.empty { color: var(--muted); font-family: var(--sans); }
