/* studio oswald — archiv. Sprache von studiooswald.com: gebrochenes Weiß, schwarze Linien,
   Mono-Labels in Versalien, ein roter Punkt. Werktitel stehen immer gerade in der Grotesk. */
@font-face { font-family: "Atkinson"; src: url(/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Whyte"; src: url(/fonts/ABCWhyte-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Atkinson Mono"; src: url(/fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }

:root {
  --bg: #f7f6f2; --ink: #161616; --soft: #6d6a63; --line: #161616; --hair: #d9d6cf; --acc: #ff3d1f;
  --mono: "Atkinson Mono", ui-monospace, monospace; --serif: "Instrument Serif", Georgia, serif;
  --pad: clamp(20px, 3.4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.45 "Atkinson", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-weight: 400; margin: 0; }
.crumb, .filters, nav a, .count, .cap span, dt, .bar, .next a, .foot, .meta, .when, .n, .sr-text span { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }

/* ---------------------------------------------------------------- Kopf */
.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: stretch; min-height: 72px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 var(--pad); text-decoration: none; white-space: nowrap; }
.brand img { width: 26px; height: auto; flex: none; }
.brand .word { font: 500 21px/1 "Whyte", "Atkinson", sans-serif; letter-spacing: -.015em; }
.brand i { font: italic 400 21px/1 var(--serif); color: var(--soft); margin-left: 2px; }
.top nav { display: flex; }
.top nav a { display: flex; align-items: center; padding: 0 22px; border-left: 1px solid var(--line); text-decoration: none; white-space: nowrap; }
.top nav a:hover { background: var(--ink); color: var(--bg); }
.top nav a.on { background: var(--ink); color: var(--bg); }

/* ---------------------------------------------------------------- Einleitung + Filter */
.intro { padding: clamp(40px, 9vh, 96px) var(--pad) clamp(28px, 5vh, 48px); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.intro h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -.03em; }
.intro h1 em { font: italic 400 1.06em var(--serif); letter-spacing: -.01em; }
.intro p { color: var(--soft); font-size: 18px; max-width: 34ch; margin: 0; }
.intro p a { color: var(--ink); text-decoration-color: var(--acc); }
.filters { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); position: relative; }
.filters > a, .filters summary { display: block; padding: 16px 22px; border-right: 1px solid var(--line); text-decoration: none; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters > a:hover, .filters summary:hover { background: var(--ink); color: var(--bg); }
.filters .on { background: var(--acc); color: #fff; }
.filters .pick .menu { position: absolute; z-index: 5; background: var(--bg); border: 1px solid var(--line); border-top: 0; min-width: 260px; display: flex; flex-direction: column; }
.filters .pick .menu a { padding: 12px 18px; text-decoration: none; border-top: 1px solid var(--hair); text-transform: none; letter-spacing: 0; font: 15px "Atkinson", sans-serif; }
.filters .pick .menu a:hover, .filters .pick .menu a.on { background: var(--ink); color: var(--bg); }
.filters .count { margin-left: auto; padding: 16px 22px; border-left: 1px solid var(--line); color: var(--soft); }
.empty { padding: 48px var(--pad); color: var(--soft); }

/* ---------------------------------------------------------------- Raster */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cell { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 28px 28px 22px; display: flex; flex-direction: column; gap: 18px; text-decoration: none; }
.cell:nth-child(4n) { border-right: 0; }
.cell:hover .cap b { text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 3px; }
.pic { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: contain; }
.cap b { display: block; font-weight: 400; font-size: 16px; line-height: 1.25; }
.cap span { display: block; color: var(--soft); margin-top: 6px; letter-spacing: .04em; text-transform: none; }

/* ---------------------------------------------------------------- Werk */
.work { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.4fr); min-height: calc(100svh - 72px - 66px); border-bottom: 1px solid var(--line); }
.work .text { padding: 48px var(--pad); display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.crumb { color: var(--soft); margin: 0; }
.crumb a { color: var(--ink); text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-decoration-color: var(--acc); }
.work h1 { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.04; letter-spacing: -.025em; margin-top: auto; padding-top: 64px; }
dl { margin: 36px 0 0; display: grid; grid-template-columns: 9rem 1fr; border-top: 1px solid var(--line); }
dt, dd { padding: 14px 0; border-bottom: 1px solid var(--hair); margin: 0; }
dt { color: var(--soft); padding-top: 17px; }
dd { font-size: 17px; }
dd a { text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 3px; }
.work .img { display: flex; flex-direction: column; min-width: 0; }
.work .stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 56px); }
.work .stage img { width: 100%; height: auto; max-height: calc(100svh - 72px - 66px - 160px); object-fit: contain; }
.work .more { display: flex; gap: 16px; padding: 0 clamp(24px, 4vw, 56px) 24px; flex-wrap: wrap; }
.work .more img { height: 110px; width: auto; }
.bar { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; padding: 18px 24px; color: var(--soft); text-transform: none; letter-spacing: .04em; }
.next { display: flex; border-bottom: 1px solid var(--line); }
.next a, .next span { flex: 1; padding: 22px var(--pad); text-decoration: none; }
.next a:hover { background: var(--ink); color: var(--bg); }
.next a + a, .next span + a, .next a + span { border-left: 1px solid var(--line); text-align: right; }

/* ---------------------------------------------------------------- Serien */
.series-list { display: flex; flex-direction: column; }
.series-row { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; border-bottom: 1px solid var(--line); text-decoration: none; }
.series-row:hover { background: #efede7; }
.sr-text { padding: 28px var(--pad); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.sr-text b { font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.02em; }
.sr-text span { color: var(--soft); }
.sr-pics { display: grid; grid-template-columns: repeat(4, 1fr); }
.sr-pics .pic { padding: 18px; border-right: 1px solid var(--hair); }
.sr-pics .pic:last-child { border-right: 0; }
.serie { padding: clamp(40px, 9vh, 96px) var(--pad) clamp(28px, 5vh, 48px); border-bottom: 1px solid var(--line); }
.serie h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -.03em; margin: 18px 0 22px; }
.serie .desc p { font-size: 18px; line-height: 1.5; max-width: 60ch; margin: 0 0 .8em; }
.serie .meta { color: var(--soft); margin: 18px 0 0; }

/* ---------------------------------------------------------------- Ausstellungen */
.show { display: grid; grid-template-columns: 12rem 1fr; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.show:target { background: #efede7; }
.when { padding: 26px var(--pad); border-right: 1px solid var(--line); margin: 0; color: var(--soft); }
.what { padding: 22px var(--pad) 26px; }
.what h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.015em; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 12px; }
.thumbs img { height: 84px; width: auto; }
.thumbs a:hover img { outline: 2px solid var(--acc); outline-offset: 2px; }
.n { color: var(--soft); margin: 0; }

/* ---------------------------------------------------------------- Fuß */
.foot { display: flex; flex-wrap: wrap; color: var(--soft); }
.foot > * { padding: 22px var(--pad); border-right: 1px solid var(--line); }
.foot a { color: var(--ink); text-decoration: none; margin-left: auto; border-right: 0; border-left: 1px solid var(--line); }
.foot a:hover { color: var(--acc); }

/* ---------------------------------------------------------------- schmal */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cell:nth-child(4n) { border-right: 1px solid var(--hair); }
  .cell:nth-child(3n) { border-right: 0; }
  .top nav .ext { display: none; }
}
@media (max-width: 820px) {
  .top { flex-direction: column; min-height: 0; }
  .brand { padding: 16px 20px; font-size: 20px; }
  .brand i { font-size: 20px; }
  .top nav { border-top: 1px solid var(--line); overflow-x: auto; }
  .top nav a { padding: 13px 16px; flex: 1; justify-content: center; }
  .top nav a:first-child { border-left: 0; }
  .intro { grid-template-columns: 1fr; gap: 14px; padding: 36px 20px 28px; }
  .intro p { font-size: 16px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; }
  .filters > a, .filters summary, .filters .count { padding: 14px 16px; white-space: nowrap; }
  .filters .pick .menu { position: fixed; left: 0; right: 0; max-height: 60vh; overflow: auto; }
  .grid { grid-template-columns: 1fr 1fr; }
  .cell { padding: 16px 14px 14px; gap: 12px; }
  .cell:nth-child(3n) { border-right: 1px solid var(--hair); }
  .cell:nth-child(2n) { border-right: 0; }
  .cap b { font-size: 14px; }
  .work { grid-template-columns: 1fr; min-height: 0; }
  .work .text { border-right: 0; padding: 28px 20px 32px; order: 2; }
  .work .img { order: 1; border-bottom: 1px solid var(--line); }
  .work .stage { padding: 20px; }
  .work .stage img { max-height: 70svh; }
  .work h1 { padding-top: 22px; margin-top: 0; }
  dl { grid-template-columns: 7.5rem 1fr; margin-top: 24px; }
  .bar { padding: 14px 20px; }
  .next a, .next span { padding: 18px 20px; }
  .series-row { grid-template-columns: 1fr; }
  .sr-text { border-right: 0; border-bottom: 1px solid var(--hair); padding: 22px 20px; }
  .sr-pics .pic { padding: 10px; }
  .serie { padding: 36px 20px 28px; }
  .show { grid-template-columns: 1fr; }
  .when { border-right: 0; padding: 18px 20px 0; }
  .what { padding: 8px 20px 22px; }
  .foot > * { padding: 16px 20px; }
}
