/* raffael-heiniger.ch — nach Entwurf «Photography Portfolio Website» (Okt. 2026) */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #ededed;
  --muted: #8a8a8a;
  --gap: clamp(16px, 2.2vw, 30px);
  --pad: clamp(16px, 2.2vw, 30px);
  --max: 1366px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.45;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  max-width: var(--max); margin: 0 auto;
  background: linear-gradient(#000 70%, rgba(0,0,0,0));
}
.logo { font-weight: 900; font-size: 26px; letter-spacing: -0.06em; text-decoration: none; font-stretch: 85%; }
.nav { display: flex; gap: 24px; font-size: clamp(17px, 1.9vw, 26px); }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }

/* Typografie */
.display {
  margin: 0;
  font-weight: 700; font-stretch: 92%;
  text-transform: uppercase;
  font-size: clamp(54px, 9vw, 124px);
  line-height: .9; letter-spacing: -0.035em;
}
.headline {
  margin: 0; font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 3.3vw, 45px); line-height: 1.12; letter-spacing: .005em;
}
.label { margin: 0; font-weight: 700; text-transform: uppercase; font-size: .95em; letter-spacing: .02em; }

main > section, .contact { margin-top: clamp(56px, 7vw, 110px); }
main > section:first-child { margin-top: 0; }

/* Raster */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; }
.self-end { align-self: end; }
.down { margin-top: clamp(40px, 9vw, 125px); }

figure { margin: 0; position: relative; }
.stock::after {
  content: "stock-image"; position: absolute; left: 4px; bottom: 3px;
  font-size: 9px; font-weight: 700; color: #ccc; text-shadow: 0 0 3px #000;
}

/* Home */
.hero h1 { margin-bottom: clamp(20px, 3vw, 34px); }
.hero .aside { padding-top: clamp(40px, 9vw, 120px); }
.hero .aside p { margin: 2.2em 0 0; max-width: 22em; }
.list { list-style: none; padding: 0; margin: 1.2em 0 0; font-size: .92em; }
.list li::before { content: "• "; }
.about p { margin: .2em 0 0; max-width: 34em; }
.about h2 { margin: .4em 0 .8em; }

/* Kontakt */
.contact { padding-bottom: clamp(30px, 4vw, 60px); }
.contact .left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.icons { display: flex; gap: 22px; align-items: center; }
.icons a { display: block; width: 44px; height: 44px; }
.icons svg { width: 100%; height: 100%; fill: #fff; }
.contact dl { margin: 0; text-transform: uppercase; }
.contact dt { font-weight: 700; margin-top: 1.1em; }
.contact dd { margin: 0; }
.contact dd a { text-decoration: none; }
.contact dd a:hover { text-decoration: underline; }

/* Portfolio */
.caption { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; }
.caption .nr { font-weight: 700; font-size: clamp(30px, 3.3vw, 44px); line-height: .9; letter-spacing: -.02em; }
.caption .t { font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.caption .s { font-size: .88em; }
.series h2 { margin-bottom: clamp(20px, 3vw, 38px); }
.zoom { cursor: zoom-in; }

dialog.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lb::backdrop { background: rgba(0,0,0,.92); }
dialog.lb img { max-width: 96vw; max-height: 92vh; width: auto; cursor: zoom-out; }

footer { color: var(--muted); font-size: 12px; padding: 30px var(--pad) 24px; }

.first { padding-top: 20px; }
.mt-2 { margin-top: 2em; }
.mt-gap { margin-top: var(--gap); }

/* Schmal */
@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .grid > * { grid-column: auto; }
  .down { margin-top: 0; }
  .hero .aside { padding-top: 0; }
  .order-first { order: -1; }
  .nav { gap: 16px; }
}
