/* mysteriendramen.ch — Basisstile, v2
   Mobile-first, responsive. Motive: Schwelle/Portal, Spiegel/Symmetrie,
   Morgenlicht ("Der Sonne Licht durchflutet"). Ein externer Font (Google
   Fonts) für die Display-Überschriften, sonst keine Abhängigkeiten. */

:root {
  --bg: #f8f3ea;
  --bg-raised: #efe6d3;
  --ink: #241f18;
  --ink-soft: #5b5040;
  --rule: #d8c9a8;
  --accent: #7a2e3d;
  --accent-soft: #b8862f;
  --accent-2: #3f3a68;
  --link: #35476b;
  --glow: rgba(184, 134, 47, 0.20);
  --max-width: 42rem;
  --font-serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', 'PT Serif', serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Palatino Linotype', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --portal-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M4 30 V13 A8 8 0 0 1 20 13 V30' fill='none' stroke='%23b8862f' stroke-width='2'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14111e;
    --bg-raised: #1e1a2c;
    --ink: #efe6d2;
    --ink-soft: #bcae94;
    --rule: #35304a;
    --accent: #e08a9a;
    --accent-soft: #e3b968;
    --accent-2: #a99bf0;
    --link: #a8b8dd;
    --glow: rgba(227, 185, 104, 0.16);
    --portal-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M4 30 V13 A8 8 0 0 1 20 13 V30' fill='none' stroke='%23e3b968' stroke-width='2'/%3E%3C/svg%3E");
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--link); transition: color 0.2s ease; }
a:hover { color: var(--accent); }

/* Header: Morgenlicht-Verlauf hinter dem Titel */
header.site-header {
  position: relative;
  background: radial-gradient(ellipse 65% 100% at 50% 0%, var(--glow), transparent 72%);
  border-bottom: 1px solid var(--rule);
  padding: 2.75rem 0 1.5rem;
}

header.site-header .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 1.1em;
  background: var(--portal-glyph) no-repeat center / contain;
}

.tagline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

nav.site-nav {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

nav.site-nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.2rem 0.05rem;
}

nav.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -2px;
  height: 2px;
  background: var(--accent-soft);
  transition: left 0.25s ease, right 0.25s ease;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] { color: var(--accent); }

nav.site-nav a:hover::after,
nav.site-nav a[aria-current="page"]::after { left: 0; right: 0; }

/* Main content */
main { padding: 2.75rem 0 3rem; }

main .wrap > * + * { margin-top: 1.15em; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  margin: 0 0 0.35em;
  text-shadow: 0 0 28px var(--glow);
  animation: riseIn 0.7s ease both;
}

h2 { font-size: clamp(1.4rem, 1.25rem + 0.7vw, 1.75rem); margin-top: 1.9em; }
h3 { font-size: 1.25rem; margin-top: 1.5em; }

p { margin: 1em 0; }

blockquote {
  margin: 1.5em 0;
  padding: 0.2em 1.2em;
  border-left: 3px solid var(--accent-soft);
  color: var(--ink-soft);
  font-style: italic;
}

.meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  margin: 0 0.35rem 0.35rem 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

/* Spiegel-Trenner: zwei sich spiegelnde Linien mit Rautenpunkt in der Mitte */
hr.rule {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule) 18%, var(--rule) 82%, transparent);
  margin: 3rem 0;
  position: relative;
}

hr.rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--accent-soft);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Blog archive list */
.post-list { list-style: none; margin: 0; padding: 0; }

.post-list li {
  position: relative;
  padding: 1.15rem 0 1.15rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.2s ease;
}

.post-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 3px;
  background: var(--accent-soft);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.post-list li:hover { background: var(--bg-raised); }
.post-list li:hover::before { transform: scaleY(1); }

.post-list li:first-child { padding-top: 0.15rem; }

.post-list h2 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
}

.post-list h2 a { text-decoration: none; color: var(--ink); }
.post-list h2 a:hover { color: var(--accent); }

.post-excerpt { color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.35rem; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

footer.site-footer a { color: var(--ink-soft); }
footer.site-footer a:hover { color: var(--accent); }

footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: baseline;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 22em) {
  .wrap { padding: 0 1rem; }
}
