/* ---------------------------------------------------------------
   Freya Katharina Gerz — Portfolio
   Farben & Typografie gemäß Design „2b“:
   Text #171815 · Akzent #7CAA94 (Ø-Grün des Gemälde-Icons) · Hintergrund #F5F4EF
   Schrift: Geist (SIL OFL, lokal eingebunden)
   --------------------------------------------------------------- */

:root {
  --bg: #F5F4EF;
  --ink: #171815;
  --ink-soft: #33342f;
  --muted: #55564f;
  --faint: #8a8a8a;
  --accent: #7CAA94;
  --accent-dark: #618573;
  --line: #e3e1d6;
}

/* Geist, lokal eingebunden (variable Fonts, 100–900) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-italic-variable.woff2') format('woff2');
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
a:hover { color: var(--accent-dark); }

.quiet-link,
.quiet-link:hover {
  color: inherit;
  text-decoration: none;
}
.quiet-link:hover { font-weight: 600; }

/* ---- Kopfzeile ---- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 72px 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.brand-icon {
  height: 30px;
  width: auto;
}
.brand:hover { color: var(--ink); }

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  align-items: baseline;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}

/* ---- Inhalt ---- */

main { flex: 1; }

.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
  text-align: center;
  margin: 0 0 44px;
}

.prose p {
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 1.3em;
  text-align: justify;
  hyphens: auto;
}
.prose p:last-child { margin-bottom: 0; }

.accent-em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}

/* ---- About ---- */

.about { text-align: center; }

.portrait {
  display: block;
  width: 280px;
  height: auto;
  margin: 0 auto;
  background: #eae8dd;
}

.links-row {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 22px 0 52px;
  font-size: 14.5px;
  flex-wrap: wrap;
}
.links-row a {
  font-weight: 600;
  text-decoration: none;
}

/* ---- Selected Works ---- */

.works .kicker { margin-bottom: 20px; }

.pub {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.pub:last-child { border-bottom: none; }
.pub h2 {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 6px;
}
.pub p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ---- Talks & Teaching ---- */

.section-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 24px;
}

.year-grid {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 28px;
  margin-bottom: 48px;
}
.year {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.year-grid > .gap { margin-top: 14px; }

.item-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.item h3, .item .item-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}
.item .item-meta {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.item .role-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 4px;
}

/* ---- Impressum & Datenschutz ---- */

.legal h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
}
.legal h2 + .note { margin-top: -4px; }
.legal .note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 12px;
}
.legal address {
  font-style: normal;
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 20px;
}
.legal .contact { margin-bottom: 48px; }
.legal-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal-list p { margin: 0; }
.legal-list strong { color: var(--ink); font-weight: 600; }

/* ---- Fußzeile ---- */

.site-footer {
  display: flex;
  justify-content: center;
  padding: 20px 72px;
  font-size: 12.5px;
  color: var(--faint);
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer a {
  color: var(--faint);
  text-decoration: none;
}
.site-footer a:hover { font-weight: 600; }

/* ---- 404 ---- */

.error-page { text-align: center; }
.error-page .prose p { text-align: center; }
.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
  line-height: 1;
}

/* ---- Kleine Bildschirme ---- */

@media (max-width: 720px) {
  .site-header { padding: 24px 24px 16px; }
  .site-footer { padding: 20px 24px; }
  .content { padding-top: 48px; }
}

@media (max-width: 540px) {
  .prose p { text-align: left; hyphens: none; }
}
