/* Gemeinsame Basis fuer Impressum, Datenschutz und Platzhalter — karimi.me */
:root {
  --cream: #F5EFE0;
  --cream-deep: #ECE4D0;
  --paper: #FBF7EC;
  --ink: #2D2A24;
  --ink-soft: #5A554B;
  --ink-mute: #8C8676;
  --teal: #1F4E5C;
  --teal-deep: #143842;
  --saffron: #C99A3A;
  --saffron-bright: #E2B254;
  --pomegranate: #903237;
  --olive: #6B7F4B;
  --rule: #D8CFB8;
  --rule-soft: #E8E0CC;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--pomegranate); border-bottom-color: var(--pomegranate); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  background: rgba(245, 239, 224, 0.92);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 10;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.025em;
  border-bottom: 0;
}
.wordmark .dot { color: var(--pomegranate); }
.wordmark .tld { color: var(--ink-soft); font-weight: 400; }
.site-header nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.site-header nav a {
  color: var(--ink-soft);
  border-bottom: 0;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--pomegranate); border-bottom-color: var(--pomegranate); }
.site-header nav a.active { color: var(--pomegranate); border-bottom-color: var(--pomegranate); }

/* Masthead */
main { flex: 1; padding: 72px 0 96px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pomegranate);
  margin-bottom: 28px;
}
.eyebrow .swatch { width: 32px; height: 4px; background: var(--pomegranate); }

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 32px;
}
h1 .accent { color: var(--pomegranate); }

.deck {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 620px;
  letter-spacing: -0.005em;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 56px 0 18px;
  line-height: 1.15;
  scroll-margin-top: 96px;
}

h2 .num {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pomegranate);
  margin-right: 14px;
  vertical-align: middle;
}

h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 28px 0 10px;
  line-height: 1.25;
}

p, ul, ol {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 720px;
}

ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

strong { font-weight: 600; }
em { font-style: italic; color: var(--ink-soft); }

.callout {
  background: var(--paper);
  border-left: 3px solid var(--saffron);
  padding: 18px 22px;
  margin: 24px 0;
  font-family: 'Source Serif 4', serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 720px;
}
.callout strong { color: var(--ink); }

dl.meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 28px;
  margin: 18px 0 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  max-width: 620px;
}
dl.meta dt {
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}
dl.meta dd { color: var(--ink); }

.toc {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 22px 28px;
  margin: 28px 0 56px;
  max-width: 720px;
}
.toc-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.toc ol {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  columns: 2;
  column-gap: 36px;
}
.toc ol li {
  margin-bottom: 8px;
  break-inside: avoid;
}
.toc ol li a {
  color: var(--ink);
  border-bottom: 0;
}
.toc ol li a:hover { color: var(--pomegranate); }
.toc ol li .n {
  font-family: 'Fraunces', serif;
  color: var(--pomegranate);
  font-weight: 500;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .toc ol { columns: 1; }
}

/* Footer */
.site-footer {
  padding: 36px 0 28px;
  background: var(--cream-deep);
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 13px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  justify-content: space-between;
  align-items: center;
}
.site-footer .brand {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.site-footer .brand .dot { color: var(--pomegranate); }
.site-footer .brand .tld { color: var(--ink-soft); font-weight: 400; }
.site-footer nav {
  display: flex;
  gap: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}
.site-footer nav a { color: var(--ink-soft); border-bottom: 0; }
.site-footer nav a:hover { color: var(--pomegranate); }
.site-footer .meta {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  width: 100%;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
