/* ============================================================
   PORTFOLIO — shared styles
   Plain paper background, ink-blue accents, a red circled mark.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --paper:   #FBFAF6;
  --grid:    rgba(58, 90, 158, 0.11);
  --grid-strong: rgba(58, 90, 158, 0.2);
  --ink:     #1B2A4A;
  --ink-2:   #2F5AA8;
  --mark:    #C1443C;
  --mark-light: #F0A48C;
  --charcoal:#211F1B;
  --paper-raised: #ffffff;

  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-w: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

*{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  font-size: clamp(15px, 0.6vw + 13.5px, 18px);
  touch-action: pan-x pan-y;
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  touch-action: pan-x pan-y;
}
body.has-hero-bg{ background: #0a0a09; }

a{ color: inherit; }
img, video{ max-width: 100%; display:block; }

/* ---------- layout helpers ---------- */
.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  padding-left: max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-right));
}

/* ---------- top bar ---------- */
.topbar{
  position: sticky; top:0; z-index: 50;
  background: transparent;
}
.topbar .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 68px;
}
.brand{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.35rem);
  text-decoration:none;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand .dot{ color: var(--mark); }

.top-nav{
  display:flex; gap: 1.75rem;
  list-style:none; margin:0; padding:0;
}
.top-nav a{
  text-decoration:none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.top-nav a:hover,
.top-nav a[aria-current="page"]{
  border-color: var(--mark);
  color: var(--mark);
}

.menu-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width: 44px; height: 44px;
  align-items:center; justify-content:center;
  color: var(--ink);
}
.menu-toggle svg{ width:24px; height:24px; }

/* ---------- hero (home page, full-bleed photo) ---------- */
.hero-photo{
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: flex;
}
.hero-bg{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  object-fit: cover;
  object-position: center 35%;
  z-index: -2;
}
.hero-overlay{
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
}
.hero-overlay-inner{
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.hero-panel{
  background: transparent;
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 380px;
  width: 100%;
}

.hero-title{
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.05;
  margin: 0 0 0.9rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
.hero-text{
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
  margin: 0;
}

/* plain overlay menu */
.menu-plain{
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}
.menu-plain li{
  border-top: 1px solid rgba(255,255,255,0.35);
}
.menu-plain li:last-child{
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.menu-plain a{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.9vw + 0.85rem, 1.4rem);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  text-decoration: none;
  min-height: 44px;
  transition: color .18s ease;
}
.menu-plain a:hover, .menu-plain a:focus-visible{
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(255,255,255,0.5), 0 2px 10px rgba(0,0,0,0.4);
  outline: none;
}
/* ---------- generic sub-page header ---------- */
.page-head{
  padding-top: clamp(2.25rem,5vw,3.5rem);
  padding-bottom: clamp(1.5rem,4vw,2.5rem);
  border-bottom: 1px solid var(--grid-strong);
}
.page-head h1{
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3rem);
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.page-head p{
  max-width: 56ch;
  color: var(--charcoal);
  line-height: 1.6;
  margin:0;
}
.doc-link{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 1rem;
}
.doc-link:hover{ color: var(--ink); }
.back-link{
  display:inline-flex; align-items:center; justify-content:center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration:none;
  margin-bottom: 2rem;
  font-size: 1.15rem;
  line-height: 1;
  transition: background .15s ease, color .15s ease;
}
.back-link:hover{
  background: var(--ink);
  color: #fff;
}

/* ---------- content sections ---------- */
main{ padding-bottom: 4rem; }

.section{
  padding-top: clamp(2rem,5vw,3rem);
  padding-bottom: clamp(2rem,5vw,3rem);
}

/* grid section heading (e.g. Tag / Nacht) */
.grid-heading{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--ink);
  margin: 0 0 1.25rem;
}
.grid-heading:not(:first-child){
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* artist statement block */
.statement{
  border-top: 1px solid var(--grid-strong);
}
.statement p{
  max-width: 62ch;
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0 0 1.1rem;
}
.statement p:last-child{ margin-bottom: 0; }

/* visuals grid */
.grid-media{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.media-card{
  background: var(--paper-raised);
  border:1px solid var(--grid-strong);
  border-radius:4px;
  overflow:hidden;
  transition: box-shadow .18s ease;
  cursor: pointer;
  text-align: left;
  padding: 0;
  width: 100%;
  font: inherit;
  color: inherit;
}
.media-card:hover{ box-shadow: 0 6px 18px rgba(27,42,74,0.08); }
.media-card .thumb{
  position: relative;
  aspect-ratio: 4/3;
  background: #f1efe8;
  overflow: hidden;
}
.media-card .thumb img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
  touch-action: pan-x pan-y pinch-zoom;
}
.media-card:hover .thumb img{ transform: scale(1.04); }
.media-card .thumb .play-badge{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.media-card .thumb .play-badge span{
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(20,20,20,0.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  backdrop-filter: blur(2px);
}

/* ---------- lightbox popup ---------- */
.lightbox{
  position: fixed; inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(15,15,13,0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.lightbox.open{
  opacity: 1;
  pointer-events: auto;
}
.lightbox-inner{
  width: 100%;
  max-width: min(1000px, 100%);
}
.lightbox-content{
  max-height: 88vh;
  width: 100%;
}
.lightbox-content img,
.lightbox-content video{
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #000;
  touch-action: pan-x pan-y pinch-zoom;
}
@media (hover: hover) and (pointer: fine){
  .lightbox-content img{
    cursor: zoom-in;
    transition: transform .3s ease;
  }
  .lightbox-content img.zoomed{
    cursor: zoom-out;
    transform: scale(2.4);
  }
}
.lightbox-caption{
  color: rgba(255,255,255,0.75);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  margin-top: 0.9rem;
  letter-spacing: 0.03em;
}
.lightbox-close{
  position: absolute;
  top: clamp(0.75rem, 3vw, 1.75rem);
  right: clamp(0.75rem, 3vw, 1.75rem);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover{ background: rgba(255,255,255,0.12); }
.media-card figcaption{
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
}
.media-card figcaption .kind{
  display:block;
  font-family: var(--font-mono);
  font-size:0.68rem;
  color: var(--ink);
  text-transform:uppercase;
  letter-spacing:0.08em;
  margin-bottom:0.25rem;
}

/* words + audio, combined entries */
.entry-list{ list-style:none; margin:0; padding:0; }
.entry{
  display:grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--grid-strong);
  align-items: start;
}
.entry:first-child{ padding-top:0; }
.entry .date{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  display: block;
  margin-bottom: 0.4rem;
}
.entry h3{
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.9vw + 0.9rem, 1.5rem);
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.entry p{ margin:0; line-height:1.6; }
.entry .entry-audio{
  padding-top: 1.9rem;
}
.entry .entry-audio .label{
  display:block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.entry audio{ width: 100%; }

/* joint CV list */
.statement-intro{
  max-width: 62ch;
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0 0 2rem;
}
.cv-list{ list-style:none; margin:0; padding:0; }
.cv-entry{
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--grid-strong);
}
.cv-entry:first-child{ padding-top:0; }
.cv-entry .date{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  display: block;
  margin-bottom: 0.4rem;
}
.cv-entry h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9vw + 0.9rem, 1.3rem);
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.cv-entry p{
  margin:0;
  line-height:1.6;
  max-width: 62ch;
}

/* ---------- footer ---------- */
footer{
  border-top: 1px solid var(--grid-strong);
  padding: 2rem 0;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}
footer .wrap{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap: wrap; gap: 0.75rem;
}
footer p{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  margin:0;
}
.footer-contact{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.footer-contact:hover{
  color: var(--ink);
  border-color: currentColor;
}

body.has-hero-bg footer{
  position: relative;
  z-index: 1;
  border-top: none;
  background: transparent;
}
body.has-hero-bg footer p{
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
body.has-hero-bg .footer-contact{
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
body.has-hero-bg .footer-contact:hover{
  color: #fff;
}

/* ---------- mobile ---------- */
@media (max-width: 860px){
  .hero-photo{ min-height: 78vh; }
  .hero-overlay-inner{ justify-content: center; }
  .hero-panel{ max-width: 92%; }
}

@media (max-width: 680px){
  .menu-toggle{ display:flex; }
  .top-nav{
    position:absolute; top:68px; left:0; right:0;
    flex-direction:column; gap:0;
    background: var(--paper);
    border-bottom: 1px solid var(--grid-strong);
    max-height:0; overflow:hidden;
    transition: max-height .25s ease;
  }
  .top-nav.open{ max-height: 260px; }
  .top-nav a{
    padding: 1rem clamp(1.25rem,4vw,3rem);
    width:100%;
    border-bottom: 1px solid var(--grid-strong);
    border-left: 3px solid transparent;
  }
  .top-nav a[aria-current="page"]{ border-left-color: var(--mark); border-bottom-color: var(--grid-strong); color: var(--mark); }

  .hero-photo{ min-height: 72vh; }
  .hero-panel{ padding: 1.75rem; }

  .entry{ grid-template-columns: 1fr; gap:1rem; }
}
