/* ===================================================================
   Wandsbek Markt — Bike Lanes & Conflict Areas
   Design language: black ground + hazard yellow, borrowed from the
   Konfliktkarte and from Baustelle (construction-site) warning tape —
   both are literally part of the site's subject matter.
   =================================================================== */

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

:root{
  --bg:        #0c0c0d;
  --surface:   #17161a;
  --surface-2: #1f1e22;
  --border:    #333037;
  --yellow:    #f5c400;
  --yellow-dim:#c9a300;
  --red:       #e14a3c;
  --text:      #f2ede2;
  --text-muted:#a8a49b;

  --display: 'Titillium Web', 'Arial Narrow', sans-serif;
  --body:    'Inter', Arial, sans-serif;
  --mono:    'IBM Plex Mono', 'Courier New', monospace;
}

*{
  box-sizing: border-box;
}

body{
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.65;
}

main{
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg);
  padding: 0 0 40px;
  border: none;
}

a{
  color: var(--yellow);
}

a:hover{
  color: var(--text);
}


/* ---------- Hazard stripe ---------- */

.hazard{
  height: 14px;
  width: 100%;
  background: repeating-linear-gradient(
    135deg,
    var(--yellow) 0,
    var(--yellow) 18px,
    #111 18px,
    #111 36px
  );
}


/* ---------- Hero ---------- */

header.hero{
  padding: 64px 32px 40px;
  text-align: left;
}

.authors{
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.authors .sep{
  color: var(--yellow);
}

.eyebrow{
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--yellow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}

.title-line{
  height: 6px;
  width: 96px;
  background: var(--yellow);
  margin: 22px 0 20px;
}

h2{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--text);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.subtitle{
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0;
}


/* ---------- Body copy ---------- */

main > p{
  padding: 0 32px;
  max-width: 60ch;
  margin: 28px auto;
  font-size: 1rem;
  color: var(--text);
}


/* ---------- Figures and captions ---------- */

figure{
  margin: 36px 32px;
}

.image-figure{
  margin: 36px 32px;
}

img.chart{
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border);
}

figcaption{
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-muted);
  background: var(--surface);
  border-left: 3px solid var(--yellow);
  margin-top: 10px;
  padding: 9px 12px;
  line-height: 1.5;
}

figcaption .fig-num{
  color: var(--yellow);
  font-weight: 600;
}

figcaption .todo{
  color: var(--red);
}


/* ---------- Map frames ---------- */

.map-frame{
  position: relative;
  margin: 36px 32px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.map-frame::before,
.map-frame::after,
.map-frame .bracket-tl,
.map-frame .bracket-br{
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--yellow);
}

.map-frame::before{
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.map-frame::after{
  right: 8px;
  bottom: 8px;
  border-top: none;
  border-left: none;
}

.map-frame .map-label{
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 14px;
}

.map-frame iframe{
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
  background: #0a0a0a;
}

.map-frame .fullscreen-link{
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow);
  border: 1px solid var(--yellow-dim);
  padding: 8px 14px;
  text-decoration: none;
}

.map-frame .fullscreen-link:hover{
  background: var(--yellow);
  color: var(--bg);
}

.map-frame figcaption{
  margin-top: 16px;
}


/* ---------- Juxtapose comparison ---------- */

.compare-figure{
  margin: 36px 32px;
}

.juxtapose-container{
  position: relative;
  width: 100%;
  aspect-ratio: 43 / 25;
  overflow: hidden;
  background: var(--bg);
}

.juxtapose-container iframe.juxtapose{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.compare-figure figcaption{
  margin-top: 10px;
}


/* ---------- Sources ---------- */

.sources-section{
  margin: 56px 32px 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.sources-section h2{
  margin: 0 0 12px;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sources-list{
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 68ch;
}

.sources-list li{
  margin: 5px 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.sources-list span{
  color: var(--text-muted);
}

.sources-list a{
  color: var(--text-muted);
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.sources-list a:hover{
  color: var(--yellow);
  text-decoration-color: var(--yellow-dim);
}


/* ---------- Section divider text ---------- */

.section-break{
  margin: 44px 0;
}


/* ---------- Footer ---------- */

footer{
  position: static;
  padding: 28px 32px;
  margin: 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.logo{
  float: none;
  height: 46px;
  padding: 0;
  filter: grayscale(1) brightness(1.6);
}

.name{
  font-style: normal;
  text-align: right;
}


/* ---------- Responsive ---------- */

@media (max-width: 600px){

  header.hero{
    padding: 44px 20px 28px;
  }

  main > p{
    padding: 0 20px;
  }

  figure,
  .image-figure,
  .compare-figure,
  .map-frame{
    margin: 28px 20px;
  }

  .map-frame iframe{
    height: 360px;
  }

  figcaption{
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .sources-section{
    margin: 48px 20px 8px;
    padding-top: 18px;
  }

  .sources-list li{
    font-size: 0.76rem;
  }

}


/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce){

  *{
    scroll-behavior: auto !important;
  }

}