/* ─────────────────────────────────────────────────────
   main.css  —  Nadine Decker
   Used by: all pages except index.html (which has its
   own inline grid/hero styles but shares these tokens)
───────────────────────────────────────────────────── */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@300;400&display=swap');

/* ── Tokens ── */
:root {
  --gold:    #b0a26f;
  --gold-dk: #8a7a4a;
  --ink:     #1a1917;
  --muted:   #8a8780;
  --rule:    #e8e6e2;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Jost', system-ui, sans-serif;
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --sw:      210px;   /* sidebar width */
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  min-height: 100vh;
  padding-left: var(--sw);   /* offset for fixed sidebar */
}
a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul  { list-style: none; }

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sw);
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  padding: 3rem 2.5rem;
  z-index: 100;
}

.site-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 3rem;
  flex-shrink: 0;
}
.site-name a { color: inherit; }
.site-name a:hover { color: var(--gold); }

nav ul { display: flex; flex-direction: column; gap: 2px; }
nav a {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.3rem 0 0.3rem 0.6rem;
  border-left: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
nav a:hover,
nav a.active {
  color: var(--ink);
  border-left-color: var(--gold);
}

/* ── Main content ── */
.main {
  padding: 4rem 4rem 6rem;
  max-width: 1280px;
}

/* ── Page title ── */
.page-title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

/* ── Aktuell ── */
.aktuell-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.aktuell-entry {}
.entry-subtitle {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.entry-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.entry-meta {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
}
.entry-meta a {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.entry-meta a:hover { border-color: var(--gold); }

/* ── Vita ── */
.vita-section { margin-bottom: 3.5rem; }
.vita-section + .vita-section {
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.vita-section-title {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.vita-entry {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink);
  padding-left: 1.25rem;
  border-left: 1px solid var(--rule);
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.contact-block + .contact-block { margin-top: 2.5rem; }
.contact-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.contact-value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink);
}
.contact-value.small {
  font-family: var(--sans);
  font-size: 0.88rem;
}
.contact-value a {
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s, border-color 0.2s;
}
.contact-value a:hover { color: var(--gold); border-color: var(--gold); }
.links-list { display: flex; flex-direction: column; gap: 0.4rem; }
.links-list a {
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.links-list a:hover { color: var(--ink); border-color: var(--rule); }
.impressum {
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 70ch;
}
.impressum strong { color: var(--ink); font-weight: 400; }

/* ── Text index / essay pages ── */
.text-list { display: flex; flex-direction: column; }
.text-item {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
}
.text-item:first-child { border-top: 1px solid var(--rule); }
.text-num {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  min-width: 1.5rem;
}
.text-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.2s;
}
.text-item:hover .text-title { color: var(--gold); }

/* ── Article (text detail pages) ── */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.article-back::before { content: '←'; }
.article-back:hover { color: var(--gold); }

.article-title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.article-meta {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.article-body {
  max-width: 68ch;
  font-size: 0.92rem;
  line-height: 1.85;
}
.article-body p            { margin-bottom: 1.15em; }
.article-body em           { font-style: italic; }
.article-body sup          { font-size: 0.65em; color: var(--muted); vertical-align: super; line-height: 0; }
.article-body h3           { font-family: var(--serif); font-size: 1.2rem; font-style: italic; margin: 2em 0 0.6em; }
.article-body blockquote   { margin: 1.5em 0 1.5em 1rem; padding-left: 1rem; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 1rem; }
.article-footnotes {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 68ch;
}

/* ── Mobile ── */
@media (max-width: 700px) {
  body { padding-left: 0; }
  .sidebar {
    position: static;
    width: 100%; height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .site-name { margin-bottom: 0; }
  nav ul { flex-direction: row; gap: 0.75rem; flex-wrap: wrap; }
  .main { padding: 2rem 1.25rem 4rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
