/* ---------------------------------------------------------------
   Freya Katharina Gerz — Portfolio
   Farben & Typografie gemäß Design „2b“:
   Text #171815 · Akzent #A8C900 · Hintergrund #F5F4EF
   Schrift: Söhne (falls lokal vorhanden), sonst Familjen Grotesk
   --------------------------------------------------------------- */

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

/* Familjen Grotesk, lokal eingebunden (variable Fonts, 400–700) */
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/familjen-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/familjen-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/familjen-grotesk-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/familjen-grotesk-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Söhne', 'Soehne', 'Familjen Grotesk', '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); }

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 32px 72px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.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;
}

.rule {
  width: 56px;
  height: 4px;
  background: var(--accent);
  margin: 0 auto 26px;
  border: 0;
}

.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; }
.about .kicker { margin-bottom: 36px; }

.portrait {
  display: block;
  width: 280px;
  height: 360px;
  margin: 0 auto;
  object-fit: cover;
  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: space-between;
  padding: 20px 72px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--faint);
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer a { color: var(--faint); }

/* ---- 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; }
}
