/* ============================================================
   LENA LABUSGA — Cargo-style anti-design
   Nur System-Schriften: Arial (UI), Times kursiv (Statement),
   Courier (Bildunterschriften). Akzent: klassisches Link-Blau.
   ============================================================ */

:root {
  --ink: #111111;
  --paper: #ffffff;
  --blue: #0000EE;
  --mute: #555555;
  --hair: #d9d9d9;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --serif: "Times New Roman", Times, serif;
  --mono: "Courier New", Courier, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
}

::selection { background: var(--blue); color: #fff; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { background: var(--blue); color: #fff; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ---------- Seitenrahmen: fixe Index-Spalte + Inhalt ---------- */

.frame {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

/* ---------- Seitenleiste / Index ---------- */

.side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 28px 28px 24px;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
}

.side h1 {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.side .role {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  margin-top: 6px;
}

.side nav { margin-top: 42px; }

.side nav ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side nav a { font-size: 15px; }

.side nav .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  margin-right: 10px;
}

.side .foot {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  line-height: 1.7;
}
.side .foot a { color: var(--blue); }

/* ---------- Hauptbereich ---------- */

main { padding: 28px 40px 120px; }

.topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 14px;
  margin-bottom: 72px;
}

/* ---------- Arbeiten: lockeres, asymmetrisches Raster ---------- */

.works {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 96px;
}

.work { grid-column: 1 / -1; }

/* 4er-Rhythmus: breit-links, klein-rechts, mittig-links, mittel-rechts */
@media (min-width: 861px) {
  .work:nth-child(4n+1) { grid-column: 1 / span 7; }
  .work:nth-child(4n+2) { grid-column: 9 / span 4; align-self: end; }
  .work:nth-child(4n+3) { grid-column: 3 / span 5; }
  .work:nth-child(4n+4) { grid-column: 9 / span 4; }
}

.work a.frame-link {
  display: block;
  text-decoration: none;
  background: none;
  cursor: crosshair;
}

.work img {
  display: block;
  width: 100%;
  height: auto;
  outline: 1px solid transparent;
  outline-offset: 6px;
  transition: outline-color 0.15s ease-out;
}

.work figcaption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  margin-top: 10px;
}
.work figcaption .num { color: var(--ink); margin-right: 8px; }

.work a.frame-link:hover { background: none; }
.work a.frame-link:hover img { outline-color: var(--blue); }
.work a.frame-link:hover figcaption { color: var(--blue); }

.empty-note { grid-column: 1 / -1; color: var(--mute); }

/* ---------- Abschnitte (Info / Kontakt / Fusszeile) ---------- */

.section {
  margin-top: 140px;
  border-top: 1px solid var(--hair);
  padding-top: 16px;
}

.section .label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  text-transform: uppercase;
}

.statement {
  font-family: var(--serif);
  font-style: italic;
  font-weight: normal;
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-top: 40px;
}

.bio {
  max-width: 58ch;
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.6;
}

.contact-list {
  list-style: none;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
}
.contact-list .mono { color: var(--mute); margin-right: 12px; }

.footer-line { color: var(--mute); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 10;
  display: none;
  flex-direction: column;
  padding: 20px;
}
.lightbox.open { display: flex; }

.lightbox .bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 12px;
}

.lightbox .stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.lightbox .stage img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.lightbox .caption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  text-align: center;
}

.lightbox button {
  font-family: var(--mono);
  font-size: 12px;
  background: none;
  border: none;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 6px;
}
.lightbox button:hover { background: var(--blue); color: #fff; text-decoration: none; }

.lightbox .nav-btns { display: flex; gap: 12px; }

/* ---------- Mobil ---------- */

@media (max-width: 860px) {
  .frame { grid-template-columns: 1fr; }
  .side {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--hair);
    padding: 20px;
  }
  .side nav { margin-top: 24px; }
  .side nav ol { flex-direction: row; gap: 20px; flex-wrap: wrap; }
  .side .foot { display: none; }
  main { padding: 20px 20px 80px; }
  .topline { margin-bottom: 48px; }
  .works { row-gap: 64px; }
  .section { margin-top: 96px; }
}
