/* ============================================================
   Anne Rosinski – Stylesheet
   ============================================================ */

@font-face {
    font-family: 'Raleway';
    src: url('../fonts/raleway-v12-latin-300.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* ── Variables ──────────────────────────────────────────────── */

:root {
  --color-text:    #2a2a2a;
  --color-bg:      #ffffff;
  --color-surface: #f9f9f8;
  --color-muted:   #888888;
  --color-border:  #e8e8e6;

  --font-heading: Raleway,Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max-content:  87.5rem;  /* 1400px */
  --max-text:     60rem;    /*  960px */

  --section-pad:    5rem;
  --section-pad-sm: 3rem;
}

/* ── Reset ──────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout helpers ─────────────────────────────────────────── */

.container {
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.text-block {
  max-width: var(--max-text);
  margin-inline: auto;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ── Header ─────────────────────────────────────────────────── */

header {
  text-align: center;
}

.site-title {
  padding-block: 2.5rem;
}

.site-title h1 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.75rem;
  letter-spacing: 0.3em;
  color: var(--color-text);
}

.header-image img {
  display: block;
  width: 100%;
  max-height: 25rem;
  object-fit: cover;
  object-position: center;
}

/* ── Sections ───────────────────────────────────────────────── */

main section {
  padding-block: var(--section-pad);
}

main section:nth-child(even) {
  background-color: var(--color-surface);
}

h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}

/* ── Artist Statement ───────────────────────────────────────── */

#artist-statement .text-block p + p {
  margin-top: 1.25rem;
}

.portfolio-note {
  margin-top: 2rem;
  font-size: 0.9375rem;
  text-align: center;
}

.portfolio-note a {
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.portfolio-note a:hover {
  text-decoration: underline;
}

.process-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
  font-style: italic;
}

/* ── Aktuelles ──────────────────────────────────────────────── */

.aktuelles-event {
  text-align: center;
}

.event-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.aktuelles-event address {
  font-style: normal;
  line-height: 2;
}

.aktuelles-event address a {
  color: var(--color-text);
  text-decoration: none;
}

.aktuelles-event address a:hover {
  text-decoration: underline;
}

/* ── Vita ───────────────────────────────────────────────────── */

.vita-entries {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
}

.vita-entries dt {
  font-weight: 400;
  white-space: nowrap;
  padding-top: 0;
}

.vita-entries dd {
  margin: 0;
}

/* ── Ausstellungen ──────────────────────────────────────────── */

.exhibitions {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
}

.exhibitions dt {
  font-weight: 400;
}

.exhibitions dd {
  margin: 0;
}

/* ── Kontakt ────────────────────────────────────────────────── */

#kontakt .text-block {
  text-align: center;
}

#kontakt a {
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.05em;
  font-size: 1.0625rem;
}

#kontakt a:hover {
  text-decoration: underline;
}

/* ── Footer ─────────────────────────────────────────────────── */

footer {
  text-align: center;
  padding-block: 2rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

/* ── Responsive: Tablet ─────────────────────────────────────── */

@media (max-width: 48rem) {
  :root {
    --section-pad: var(--section-pad-sm);
  }

  .site-title h1 {
    font-size: 1.375rem;
    letter-spacing: 0.2em;
  }

  h2 {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  .header-image img {
    max-height: 16rem;
  }

  .vita-entries {
    grid-template-columns: 4.5rem 1fr;
    column-gap: 1rem;
  }

  .exhibitions {
    grid-template-columns: 2.75rem 1fr;
    column-gap: 1rem;
  }
}

/* ── Responsive: Mobile ─────────────────────────────────────── */

@media (max-width: 30rem) {
  body {
    font-size: 0.9375rem;
    line-height: 1.75;
  }

  .site-title {
    padding-block: 1.75rem;
  }

  .container {
    padding-inline: 1rem;
  }

  .vita-entries {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .vita-entries dt {
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
  }

  .vita-entries dd {
    margin-bottom: 0.25rem;
  }

  .exhibitions {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .exhibitions dt {
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
  }

  .exhibitions dd {
    margin-bottom: 0.25rem;
  }
}
