/* ------------------------------------------------------
   ZEITRAFFERIN – Artikeltypografie
   editorial, ruhig, perfekt lesbar
   Stand: 2025
------------------------------------------------------ */

/* Grundlayout ------------------------------------------------ */

:root {
  --accent-blue: #2b33ff;
  --accent-turquoise: #00bfae;
  --text-color: #111;
  --background: #fafafa;
  --muted: #666;
  --line-height: 1.65;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Source Serif Pro", Georgia, serif;
}

html {
  font-size: clamp(16px, 1.8vw, 20px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text-color);
  background: var(--background);
  line-height: var(--line-height);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
}

/* Container und Fließtext ----------------------------------- */

.container {
  width: min(90%, 740px);
  margin-inline: auto;
  padding: 2.5rem 0 5rem;
}

article {
  max-width: 65ch;
  margin-inline: auto;
}

/* Überschriften --------------------------------------------- */

.post-title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1.25;
  color: #0f1724;
  margin: 0 0 0.5rem 0;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Bilder ----------------------------------------------------- */

figure {
  margin: 2.5rem 0;
}

figure img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

figcaption {
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Textfluss -------------------------------------------------- */

p {
  margin: 1.3em 0;
  font-size: 1.05rem;
  max-width: 65ch;
}

p:first-child::first-letter {
  font-family: "Oswald", sans-serif;
  float: left;
  font-size: 3rem;
  line-height: 1;
  padding-right: 0.1em;
  color: var(--accent-blue);
}

/* Zitate ----------------------------------------------------- */

blockquote {
  border-left: 4px solid var(--accent-turquoise);
  padding-left: 1rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: #333;
  background: #f9fffd;
  border-radius: 4px;
}

/* Links ------------------------------------------------------ */

a {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--accent-turquoise);
  border-color: var(--accent-turquoise);
}

/* Trennlinien & Footer -------------------------------------- */

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 3rem auto;
  width: 60%;
}

footer {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  margin-top: 4rem;
  border-top: 1px solid #eee;
  padding: 1.5rem 0;
}

/* Responsivität --------------------------------------------- */

@media (max-width: 700px) {
  .container {
    width: 92%;
    padding: 2rem 0 3rem;
  }
  .post-title {
    font-size: 1.8rem;
  }
  p {
    font-size: 1rem;
  }
  p:first-child::first-letter {
    font-size: 2.4rem;
  }
}

/* Feine Details --------------------------------------------- */

::selection {
  background: var(--accent-turquoise);
  color: #fff;
}

img, blockquote, a {
  transition: all 0.25s ease;
}
