/* ============ TOKENS (geteilt mit Hauptseite) ============ */
:root {
  --cream:        #F5F0E6;
  --paper:        #FBF8F1;
  --ink:          #14110E;
  --ink-soft:     #4F4A42;
  --ink-mute:     #8A847A;
  --line:         rgba(20, 17, 14, 0.10);
  --line-soft:    rgba(20, 17, 14, 0.06);
  --sage:         #2C5240;
  --sage-deep:    #1B3826;
  --sage-soft:    #DCE6D8;
  --warm-glow:    #E8C9A0;
  --warm-deep:    #B17A3F;

  --serif: Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --max:  760px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'ss02', 'kern';
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--sage);
  text-decoration: underline;
  text-decoration-color: rgba(44, 82, 64, 0.30);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease, color .2s ease;
}
a:hover { text-decoration-color: var(--sage); color: var(--sage-deep); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: top .2s ease;
}
.skip:focus-visible { top: 16px; outline-offset: 0; }

/* Ambient (slim) */
body::before {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 720px; height: 720px;
  top: -300px; right: -200px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.40;
  background: radial-gradient(circle, var(--warm-glow) 0%, transparent 60%);
}

main, header, footer, .l-nav { position: relative; z-index: 2; }

/* === Nav === */
.l-nav {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}
.l-nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 9px 9px 9px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.30));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(20,17,14,0.05),
    0 14px 40px -16px rgba(20,17,14,0.20);
  font-size: 14px;
}
.l-nav-logo {
  display: inline-flex; align-items: baseline;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.l-nav-logo .dot-mark { font-style: normal; font-family: var(--sans); font-size: 20px; color: var(--sage); }
.l-nav-logo:hover { text-decoration: none; color: var(--ink); }
.l-nav-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .3s ease, transform .3s ease;
  min-height: 38px;
}
.l-nav-back:hover { background: var(--sage); color: var(--paper); text-decoration: none; transform: translateY(-1px); }
.l-nav-back svg { width: 12px; height: 12px; }

/* === Layout === */
.l-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px 28px 60px;
}

.l-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 24px;
}
.l-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 16px;
}
h1 .serif-i { font-family: var(--serif); font-style: italic; }

.l-stand {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 60px;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  margin: 56px 0 16px;
}
h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 32px 0 10px;
}
p, li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
ul, ol { padding-left: 22px; margin-bottom: 16px; }
li { margin-bottom: 8px; }
strong { color: var(--ink); font-weight: 500; }
hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}

/* Info / Todo callout boxes */
.l-info {
  background: rgba(44, 82, 64, 0.06);
  border-left: 2px solid var(--sage);
  padding: 16px 22px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
  font-size: 15px;
  color: var(--ink);
}
.l-info p:last-child { margin-bottom: 0; }
.l-todo {
  background: rgba(232, 201, 160, 0.22);
  border-left: 2px solid var(--warm-deep);
  padding: 16px 22px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
  font-size: 14.5px;
  color: #6E4C20;
}
.l-todo strong { color: #6E4C20; }
.l-todo p:last-child { margin-bottom: 0; }

/* TOC at top */
.l-toc {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-bottom: 48px;
}
.l-toc-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 12px;
}
.l-toc ol {
  padding-left: 22px;
  margin: 0;
}
.l-toc li {
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 4px;
  color: var(--ink-soft);
}
.l-toc a {
  color: var(--ink);
  text-decoration: none;
}
.l-toc a:hover { color: var(--sage); }

/* === Footer === */
.l-foot {
  border-top: 1px solid var(--line);
  padding: 50px 0 40px;
  margin-top: 60px;
}
.l-foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}
.l-foot-logo {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--ink);
  display: inline-flex; align-items: baseline;
  text-decoration: none;
}
.l-foot-logo .dot-mark { font-style: normal; font-family: var(--sans); font-size: 20px; color: var(--sage); }
.l-foot-logo:hover { text-decoration: none; }
.l-foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.l-foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.l-foot-links a:hover { color: var(--ink); }

@media (max-width: 768px) {
  .l-wrap { padding: 110px 22px 50px; }
  h1 { font-size: 36px; }
  h2 { font-size: 22px; }
  .l-foot-inner { padding: 0 22px; }
}
