/* ═══════════════════════════════════════════════════════════════════════════
   Lucas Gatsas — v2
   Portiert aus dem v1-Theme. Masse, Abstaende und Farben stammen von dort,
   die Klassennamen sind neu. Schrift: Geist, wie auf lucasgatsas.ch.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Werte ──────────────────────────────────────────────────────────────── */
:root{
  --font:        "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono:   "Geist Mono", Menlo, monospace;

  --unit:        4px;
  --brand:       #003d71;
  --ico-ext:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 11 13'/%3E%3Cpath d='M18 13.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h5.5'/%3E%3C/svg%3E");

  --measure:     640px;
  --pad-top:     8rem;
  --pad-bottom:  2rem;
  --pad-side:    1rem;
  --radius:      .5rem;
  --ease:        all .3s cubic-bezier(.4, 0, .2, 1);

  --bg:          #fff;
  --bg-sticky:   #fff;
  --bg-soft:     #09021d0a;
  --ink:         #09021d;
  --ink-soft:    #09021d55;
  --line:        #09021d11;
  --line-link:   #09021d22;
  --tint:        #ad24cf;

}

@media (prefers-color-scheme: dark){
  :root{
    --bg:        #222324;
    --bg-sticky: #222324;
    --bg-soft:   #ffffff0a;
    --ink:       #fff;
    --ink-soft:  #fff6;
    --line:      #fff1;
    --line-link: #fff2;
    --tint:      #ffc32c;
    --brand:     #7ab6e8;   /* gleicher Farbton, auf Dunkel lesbar */
  }
}

@media (max-width: 680px){ :root{ --pad-top: 4rem; } }
@media (max-width: 450px){ :root{ --pad-top: 1rem; --pad-bottom: 1rem; } }

/* ── Grundlage ──────────────────────────────────────────────────────────── */
*, *::before, *::after{ box-sizing: border-box; }

html{ scrollbar-gutter: stable; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6{ line-height: 1.4; }

code, pre{ font-family: var(--font-mono); font-size: 80%; }
pre{ font-size: 90%; overflow-x: auto; }

img{ max-width: 100%; }

/* ── Spalte ─────────────────────────────────────────────────────────────── */
.page{
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--pad-top) var(--pad-side) var(--pad-bottom);
}
.page--article{ padding-top: 3rem; }
@media (max-width: 450px){ .page--article{ padding-top: 1.5rem; } }

/* ── Verweise: Farbwisch beim Zeigen ────────────────────────────────────── */
a{ color: inherit; text-decoration: none; transition: var(--ease); }
@media (max-width: 680px){ a{ transition: none; } }

a:not(.plain){
  color: var(--ink);
  border-bottom: 1px solid var(--line-link);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
a:not(.plain):hover{ color: var(--ink-soft); }

/* schon im Grundzustand zurueckgenommen, z.B. ausgeschriebene Adressen */
a:not(.plain).is-soft{ color: var(--ink-soft); }
a:not(.plain).is-soft:hover{ color: var(--ink); }

/* ── Kopf der Startseite ────────────────────────────────────────────────── */
.masthead{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead__name{
  font-size: clamp(1.5rem, 1.425rem + .25vw, 1.75rem);
  line-height: 1.375;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 calc(var(--unit) * 3);
}

/* ── Symbolreihe ────────────────────────────────────────────────────────── */
.social{ display: flex; align-items: center; flex: none; }
.social a{ display: flex; align-items: center; margin-left: 1.125rem; color: var(--ink-soft); }
.social a:hover{ color: var(--ink); }
.social svg{ width: 1.125rem; height: 1.125rem; }

/* ── Textblock der Startseite ───────────────────────────────────────────── */
.intro p{ margin: 1rem 0; }

.rule{ border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.heading{ margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 500; }

.blurb{ margin: 0 0 1.5rem; }

/* ── Beitragsliste ──────────────────────────────────────────────────────── */
.archive__row{ display: flex; align-items: baseline; padding: .5rem 0; }
.archive__row.has-year:not(:first-child){ margin-top: 1rem; }
.archive__year{ flex: none; width: 5rem; color: var(--ink-soft); }
@media (max-width: 450px){
  .archive__row{ display: block; }
  .archive__row.has-year .archive__year{ margin-bottom: .5rem; }
}

/* ── Einzelne Verweiszeile ──────────────────────────────────────────────── */
.linkrow{ padding: .5rem 0; }

/* ausgeschriebene Adresse unter der Zeile */
.linkrow__url{ margin-top: .25rem; font-size: .9375rem; }

/* Pfeil hinter Verweisen, die aus der Seite hinausfuehren */
.ext::after{
  content: ""; display: inline-block; width: .72em; height: .72em;
  margin-left: calc(var(--unit) * 1.5); vertical-align: baseline;
  background: currentColor;
  -webkit-mask: var(--ico-ext) center/contain no-repeat;
          mask: var(--ico-ext) center/contain no-repeat;
}

/* ── Klebende Leiste der Beitragsseiten ─────────────────────────────────── */
.topbar{
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-sticky);
  border-bottom: 1px solid transparent;
  transition: var(--ease);
}
.topbar.is-stuck{ border-bottom-color: var(--line); }
.topbar__inner{
  max-width: var(--measure); margin: 0 auto; padding: .75rem var(--pad-side);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar__name{ border-bottom: 0; font-size: 1rem; font-weight: 700; }
.topbar .social a{ margin-left: 1rem; }
.topbar .social svg{ width: 1rem; height: 1rem; }

/* ── Beitrag ────────────────────────────────────────────────────────────── */
.entry__title{ margin: 0; font-size: 1.75rem; font-weight: 700; }
.entry__date{ margin: .5rem 0 3rem; color: var(--ink-soft); }

.entry__body h2,
.entry__body h3{ margin: 0 0 1rem; padding-top: 3rem; font-size: 1.25rem; font-weight: 500; }
.entry__body img{ display: block; margin: 2rem auto; }
.entry__body img + figcaption{ margin-top: -1.5rem; margin-bottom: 2rem; }
.entry__body figcaption{ text-align: center; color: var(--ink-soft); }
.entry__body blockquote{
  margin: 2rem 0; padding-left: 1.5rem;
  border-left: 4px solid var(--tint); font-style: italic;
}
.entry__body ul{ list-style: none; padding-left: 1.5rem; }
.entry__body ul li::before{
  content: "•"; display: inline-block; width: 1.5rem; margin-left: -1.5rem; color: var(--tint);
}
.entry__body hr{ border: 0; border-top: 1px solid var(--line); margin: 4rem 0; }
.entry__body .note,
.entry__body .bottom{ color: var(--ink-soft); }

@media (max-width: 680px){
  .entry__title{ font-size: 1.5rem; }
  .entry__date{ margin-bottom: 2rem; }
  .entry__body img{ margin: 1.75rem auto; }
  .entry__body img + figcaption{ margin-bottom: 1.75rem; }
  .entry__body figcaption{ font-size: .875rem; }
}
@media (max-width: 450px){
  .entry__date{ margin-bottom: 1.5rem; }
}

/* ── Fusszeile ──────────────────────────────────────────────────────────── */
.site-footer{
  max-width: var(--measure); margin: 0 auto;
  padding: 2rem var(--pad-side); color: var(--ink-soft);
}
