@font-face {
  font-family: "ABC Areal";
  src: url("assets/fonts/ABCAreal-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #000;
  --soft: #767676;
  --faint: #cfcfcf;
  --paper: #fff;
  --line: 0.5px solid var(--ink);
  --edge: 14px;
  --rail: clamp(340px, 33vw, 560px);
  --small: 17px;
  --index: clamp(38px, 3.9vw, 66px);
}

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

html { background: var(--paper); -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 500 var(--small)/1.18 "ABC Areal", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; background: #eee; }

/* Signs: [ ] for what you can press or where you are, ( ) for facts, * for a marker or note. */
.top nav a[aria-current="page"] { position: relative; }
.top nav a[aria-current="page"]::before { content: "["; position: absolute; right: 100%; }
.top nav a[aria-current="page"]::after { content: "]"; position: absolute; left: 100%; }
.index a[aria-current]::after { content: "*"; }
.more a::before, .more button::before, .big-action::before, .direct a::before { content: "["; }
.more a::after, .more button::after, .big-action::after, .direct a::after { content: "]"; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* The rail: name, tabs, intro and the project index. Same place on both pages. */
.top {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: var(--rail);
  padding: var(--edge);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
}
.top nav { display: contents; }
.top nav a { color: var(--soft); }
.top nav a[aria-current="page"], .top nav a:hover { color: var(--ink); }

.work { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  padding: calc(var(--edge) * 2 + 1.18em) var(--edge) var(--edge);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: var(--line);
}
.intro { max-width: 25em; font: inherit; letter-spacing: inherit; }

.index { margin-top: auto; list-style: none; padding: 0; font-size: var(--index); line-height: 1.02; letter-spacing: -0.045em; }
.index a { display: inline-block; color: var(--faint); }
.index a[aria-current], .index a:hover, .index a:focus-visible { color: var(--ink); }

/* The work runs edge to edge, images touching, each project in a hairline frame. */
.project { border-right: var(--line); padding-bottom: clamp(56px, 7vw, 120px); }
.project:first-child { border-top: var(--line); }
.project:last-child { border-bottom: var(--line); padding-bottom: 0; }
.row { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); }
.n2 { --n: 2; }
.n3 { --n: 3; }
.n4 { --n: 4; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-colodea { aspect-ratio: 1600 / 954; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-portrait { aspect-ratio: 9 / 16; }
.ratio-square { aspect-ratio: 1; }
.ratio-sheet { aspect-ratio: 1400 / 990; }

.deck { padding: var(--edge) var(--edge) clamp(36px, 5vw, 80px); display: grid; gap: clamp(14px, 1.7vw, 26px); }
.deck-meta { display: flex; justify-content: space-between; gap: var(--edge); margin-bottom: clamp(14px, 2vw, 32px); }
.deck-meta p + p { color: var(--soft); }
.deck img { height: auto; background: none; }

.caption {
  display: grid;
  grid-template-columns: 1.1fr 2.2fr 10em;
  gap: var(--edge);
  padding: 10px var(--edge) 14px;
}
.caption h2 { font: inherit; letter-spacing: inherit; }
.caption p { color: var(--soft); max-width: 30em; }
.caption p:nth-child(3) { text-align: right; }
.caption .more { grid-column: 2; margin-top: -8px; }
.caption .more, .more a, .more button { color: var(--ink); }
.more a:hover, .more button:hover, .direct a:hover { color: var(--soft); }
.more button { font: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* Info */
.info { padding: calc(var(--edge) * 2 + 1.18em) var(--edge) var(--edge); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.statement {
  margin-top: clamp(48px, 7vw, 120px);
  font-size: clamp(38px, 6.7vw, 128px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 500;
  text-align: justify;
}
.columns {
  --gap: clamp(24px, 4vw, 72px);
  margin-top: clamp(48px, 7vw, 110px);
  display: grid;
  grid-template-columns: calc(var(--rail) - var(--gap)) repeat(2, minmax(0, 1fr));
  gap: var(--edge) var(--gap);
}
.portrait img { width: min(210px, 100%); height: auto; background: none; }
.portrait figcaption { margin-top: 8px; color: var(--soft); max-width: 16em; }
.columns p { max-width: 28em; }
.columns p + p { margin-top: 0.9em; }
.services { list-style: none; margin: clamp(48px, 7vw, 110px) 0 0 var(--rail); padding: 0; }
.services li { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 72px); }
.services li + li { margin-top: 0.5em; }
.services span + span { color: var(--soft); }
.contact { margin-top: auto; padding-top: clamp(72px, 10vw, 160px); }
.contact p { color: var(--soft); }
.contact > p:first-child { margin-bottom: 6px; }
.big-action {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: clamp(38px, 6.7vw, 128px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: left;
  cursor: pointer;
}
.big-action:hover { color: var(--soft); }
.big-action[hidden] { display: none; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--line);
  border-left: var(--line);
  margin-top: 10px;
}
.form[hidden] { display: none; }
.field {
  display: block;
  padding: 10px var(--edge) 14px;
  border-right: var(--line);
  border-bottom: var(--line);
}
.field:focus-within { outline: 2px solid var(--ink); outline-offset: -2px; }
.field-wide { grid-column: 1 / -1; }
.field span { display: block; color: var(--soft); margin-bottom: 6px; }
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  resize: vertical;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.form .big-action { grid-column: 1 / -1; padding: 10px var(--edge) 14px; border-right: var(--line); border-bottom: var(--line); }
.form-note { grid-column: 1 / -1; padding: 10px var(--edge) 14px; border-right: var(--line); border-bottom: var(--line); color: var(--soft); }
.form-note a { color: var(--ink); }
.form-note a:hover { color: var(--soft); }
.trap { position: absolute; left: -9999px; }
.direct { margin-top: 12px; }
.direct a { color: var(--ink); }

.legal { display: flex; justify-content: flex-end; gap: 18px; color: var(--soft); padding-top: var(--edge); }
.rail .legal { justify-content: flex-start; }
.legal a:hover { color: var(--ink); }

/* Impressum, Datenschutz, 404 */
.page { padding: calc(var(--edge) * 2 + 1.18em) var(--edge) var(--edge); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page h1 { margin-top: clamp(48px, 7vw, 120px); font-size: clamp(38px, 6.7vw, 128px); font-weight: 500; line-height: 1; letter-spacing: -0.05em; }
.prose { margin: clamp(48px, 7vw, 110px) 0 clamp(72px, 9vw, 150px) var(--rail); max-width: 38em; line-height: 1.3; letter-spacing: -0.012em; }
.prose h2 { font: inherit; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { color: var(--soft); margin-top: 0.5em; }
.prose ul { padding-left: 1.1em; }
.prose a { color: var(--ink); }
.prose a::before { content: "["; }
.prose a::after { content: "]"; }
.prose a:hover { color: var(--soft); }
.page .legal { margin-top: auto; }

@media (max-width: 820px) {
  :root { --small: 16px; }
  .top { position: static; width: auto; }
  .work { display: block; }
  .rail { position: static; height: auto; padding: 0 var(--edge) 40px; border-right: 0; }
  .rail .legal { padding-top: 12px; }
  .project { border-right: 0; }
  .intro { font-size: 24px; line-height: 1.08; letter-spacing: -0.035em; }
  .index { display: none; }
  .n4 { --n: 2; }
  .caption { grid-template-columns: 1fr auto; }
  .caption p:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .caption .more { grid-column: 1 / -1; margin-top: 0; }
  .info { padding-top: 0; min-height: 0; }
  .contact { padding-top: 72px; }
  .statement { margin-top: 32px; text-align: left; }
  .columns { grid-template-columns: 1fr; }
  .services { margin-left: 0; }
  .services li { grid-template-columns: 1fr; gap: 0; }
  .services li + li { margin-top: 0.9em; }
  .portrait img { width: 170px; }
  .legal { justify-content: flex-start; }
  .form { grid-template-columns: 1fr; }
  .page { padding-top: 0; min-height: 0; }
  .page h1 { margin-top: 32px; }
  .prose { margin-left: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
