/* harald muenz — three-column layout, white on black (inverse of the reference) */

@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/jost-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 300; font-display: swap; src: url('/fonts/jost-latin-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jost-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/jost-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jost-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jost-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: 'Jost'; font-style: italic; font-weight: 300; font-display: swap; src: url('/fonts/jost-latin-ext-300-italic.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #000000;          /* inverse of #ffffff */
  --fg: #ffffff;          /* inverse of #000000 */
  --panel: #0b0b0b;       /* inverse of #f4f4f4 */
  --button: #f5f5f5;      /* inverse of #0a0a0a */
  --accent: #9bff00;      /* inverse of #6400ff */
  --radius: 3.2px;
  --font: 'Jost', 'Futura PT', Futura, 'Avenir Next', 'Century Gothic', sans-serif;

  --pad-x: 3vw;           /* 42.75px at 1440 */
  --pad-top: 20px;
  --gap: 3vw;
  --h2: 9vw;              /* ABOUT / WORK / NEWS (as large as the wider font allows) */
  --text: 26px;
  --lh: 30px;            /* same line pitch as the reference */
  --rule-pad: 14.25px;

  --title: 8.2vw;         /* project page title (140px reference; longest word must fit) */
  --subtitle: 5.5vw;      /* project page subtitle (80px reference) */
  --body: 24px;
  --body-lh: 1.2;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--text);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
strong, b { font-weight: 500; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
.sb { font-family: 'Courier New', Courier, monospace; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--accent); color: #000; }

/* ---------- home: three columns ---------- */
.home {
  max-width: 2100px;
  margin: 0 auto;
  padding: var(--pad-top) var(--pad-x) 42.75px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.col { min-width: 0; display: flex; flex-direction: column; }

.col h2 {
  margin: 0;
  font-size: var(--h2);
  line-height: 0.8;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.col h2 a:hover { color: var(--accent); }

/* ABOUT */
.about-text { margin-top: 21px; }
.rules { margin-top: 16px; }
.rule {
  border-top: 1px solid var(--fg);
  padding: var(--rule-pad) 0;
}
.rule:last-child { border-bottom: 1px solid var(--fg); }
.rule.bold { font-weight: 500; }
.rule a { white-space: nowrap; }

/* WORK */
.col-work { padding-top: 11px; }
.col-work h2 { order: 2; margin-top: 12px; }
.work-list { order: 1; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--fg); }
.work-list li { border-top: 1px solid var(--fg); }
.work-list li { padding: 6px 0 7px; }
.work-list a.cat { display: block; }
.work-list .samples { margin-top: 3px; font-size: 18px; line-height: 23px; }
.work-list .samples em { font-style: normal; }
.work-list .samples .nw { white-space: nowrap; }
.work-list .samples .y { opacity: 0.55; font-size: 15px; }
.work-list strong.sb, .news-item strong.sb { font-weight: 700; letter-spacing: -0.02em; }

/* NEWS */
.news-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.news-item { display: block; }
.news-item img { width: 100%; }
.news-item.has-image p { margin-top: 5px; }
.news-item:not(.has-image) { border-top: 1px solid var(--fg); padding-top: 6px; }
.news-list .news-item:not(.has-image) + .news-item.has-image { margin-top: 6px; }
.news-empty { opacity: 0.6; }

/* ---------- project pages ---------- */
.page {
  max-width: 2100px;
  margin: 0 auto;
  padding: var(--pad-top) var(--pad-x) 42.75px;
}
.page-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.page-title { grid-column: 1 / 3; grid-row: 1; min-width: 0; }
.page-title .title {
  margin: 0;
  font-size: var(--title);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
.page-title .title.sb { font-family: 'Courier New', Courier, monospace; font-weight: 700; letter-spacing: -0.04em; }
.page-title .subtitle {
  margin-top: 20px;
  font-size: var(--subtitle);
  line-height: 1;
  font-weight: 400;
}
.back { grid-column: 3; grid-row: 1; justify-self: end; text-align: right; }
.back-link {
  margin: 0;
  font-size: var(--subtitle);
  line-height: 1;
  font-weight: 400;
}
.prevnext { margin: 18px 0 0; font-size: var(--body); line-height: var(--body-lh); }

.page-body {
  margin-top: 110px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
  font-size: var(--body);
  line-height: var(--body-lh);
}
.page-text { grid-column: 1 / 3; min-width: 0; }
.page-text p + p, .page-text p + ul, .page-text ul + p { margin-top: 20px; }
.page-text h3 { margin: 40px 0 6px; font-size: var(--body); font-weight: 500; letter-spacing: 0.02em; }
.page-text h3 + p { margin-top: 0; }
.page-text a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page-text .members { list-style: none; padding: 0; margin: 20px 0 0; }
.page-text .members li { border-top: 1px solid var(--fg); padding: 6px 0 5px; }
.page-text .members li:last-child { border-bottom: 1px solid var(--fg); }
.page-text .note { margin-top: 40px; }
.page-links { margin-top: 40px; }
.page-links .rule { padding: 9px 0; }
.page-links a { text-decoration: none; }
.page-media { grid-column: 3; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }

/* complete work lists on the category pages */
.page-text .worklist { list-style: none; padding: 0; margin: 10px 0 0; font-size: 19px; line-height: 1.35; border-bottom: 1px solid var(--fg); }
.page-text .worklist li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); column-gap: 14px; border-top: 1px solid var(--fg); padding: 8px 0 9px; }
.page-text .worklist .y { opacity: 0.6; }
.page-text .worklist em { font-style: normal; font-weight: 500; }
.page-text .worklist a { text-decoration: none; }
.page-text .worklist a em { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page-text .worklist a:hover em { color: var(--accent); }
.page-text .worklist-note { margin-top: 10px; font-size: 19px; }
.page-text .page-links + h3 { margin-top: 60px; }

/* click-to-load video (nothing is sent to youtube/vimeo before the click) */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: rgba(83, 84, 84, 0.3) 0 -1px 10px 0;
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-load {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 25px;
  background: transparent; border: 0; color: var(--fg); cursor: pointer;
  font: 500 17px/1.3 var(--font); text-align: center;
}
.video-load .btn {
  display: inline-block; padding: 9px 12px;
  background: var(--accent); color: #000; border-radius: 0;
  font: 400 13px/13px Helvetica, Arial, sans-serif;
}
.video-load small { font: 300 13px/1.3 var(--font); opacity: 0.7; }
.video-load:hover .btn { background: var(--fg); }

/* footer of project pages */
.page-foot {
  margin-top: 43px;
  border-top: 1px solid var(--fg);
  padding-top: 43px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  font-size: var(--body);
  line-height: 1.36;
}
.page-foot strong { display: block; }
.page-foot { grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; }
.foot-nav .nd { word-spacing: -0.12em; }
.foot-nav { grid-column: 1; }
.foot-nav .here { color: var(--accent); }
.foot-nav .sb { letter-spacing: -0.09em; font-size: 0.92em; }
.foot-contact { grid-column: 2; margin: 0; }
.page-text h3 .sel { font-weight: 300; }
.page-text .worklist.it em { font-style: italic; }

/* news editor */
.editor { max-width: 900px; font-size: 18px; line-height: 1.4; }
.editor h1 { font-size: 60px; line-height: 0.9; font-weight: 500; margin: 0 0 20px; }
.editor .help { opacity: 0.8; margin-bottom: 24px; }
.editor .help li { margin-bottom: 4px; }
.editor fieldset { border: 1px solid var(--fg); border-radius: var(--radius); margin: 0 0 16px; padding: 14px 16px 16px; }
.editor legend { padding: 0 6px; font-weight: 500; }
.editor label { display: block; margin-top: 10px; font-size: 14px; letter-spacing: 0.03em; }
.editor input, .editor textarea {
  width: 100%; margin-top: 4px; padding: 8px 10px;
  background: var(--panel); color: var(--fg);
  border: 1px solid #555; border-radius: var(--radius);
  font: 300 18px/1.3 var(--font);
}
.editor textarea { min-height: 70px; resize: vertical; }
.editor .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor button {
  padding: 10px 14px; margin: 6px 8px 0 0;
  background: var(--button); color: #000; border: 0; border-radius: var(--radius);
  font: 400 15px/1 Helvetica, Arial, sans-serif; cursor: pointer;
}
.editor button.primary { background: var(--accent); }
.editor button.danger { background: transparent; color: var(--fg); border: 1px solid #777; }
.editor .actions { position: sticky; bottom: 0; background: var(--bg); padding: 14px 0; border-top: 1px solid var(--fg); margin-top: 20px; }
.editor .preview { margin-top: 30px; max-width: 418px; font-size: var(--text); line-height: var(--lh); }
.editor .status { margin-left: 8px; color: var(--accent); }

/* ---------- tablet & phone: columns stack ---------- */
@media (max-width: 999px) {
  :root {
    --pad-x: 5vw;
    --h2: 27.5vw;
    --text: 22px;
    --lh: 26px;
    --title: 45px;
    --subtitle: 30px;
    --body: 20px;
    --body-lh: 1.3;
  }
  .home { display: block; padding-bottom: 30px; }
  .col + .col { margin-top: 18vw; }
  .col-work { padding-top: 0; }
  .col-work h2 { order: 0; margin-top: 0; }
  .work-list { order: 1; margin-top: 14px; }
  .about-text { margin-top: 16px; }
  .news-list { margin-top: 16px; }

  .page-head { display: block; }
  .page-head::after { content: ''; display: block; clear: both; }
  .back { float: right; margin-left: 16px; }
  .prevnext { margin-top: 8px; font-size: 16px; }
  .page-foot { display: block; }
  .foot-contact { margin-top: 24px; }
  .page-title .title { overflow-wrap: normal; }
  .page-title .subtitle { margin-top: 14px; }
  .page-body { display: block; margin-top: 50px; }
  .page-media { margin-top: 30px; position: static; }
  .page-text .worklist { font-size: 17px; }
  .page-text .worklist li { grid-template-columns: 1fr; }
  .work-list .samples { font-size: 16px; line-height: 21px; }
  .page-foot { column-gap: 12px; font-size: 18px; line-height: 1.33; }
  .page-foot strong { overflow-wrap: anywhere; }
}

/* ---------- social icons in ABOUT ---------- */
.rule.icons { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.icon { display: inline-flex; line-height: 0; }
.icon svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- legal line: bottom right on every page ---------- */
.site-foot {
  max-width: 2100px;
  margin: 0 auto;
  padding: 0 var(--pad-x) 24px;
  font-size: 16px;
  line-height: 1.4;
}
.legal-line { text-align: right; }
.layout-switch { text-align: right; margin: 0 0 0.4em; }
.layout-switch a:hover { color: var(--accent); }
.legal-text {
  max-width: 879px;
  margin: 18px 0 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--fg);
  font-size: 15px;
  line-height: 1.45;
}
.legal-text h3 { margin: 18px 0 4px; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.legal-text p + p { margin-top: 8px; }
.legal-text a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- news admin extras ---------- */
.editor .hint { min-height: 1em; margin: 4px 0 0; font-size: 14px; color: #ff6b6b; }
.editor .image-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: start; margin-top: 12px; }
.editor .thumb { width: 140px; height: 100px; object-fit: cover; border: 1px solid #555; border-radius: var(--radius); }
.editor .thumb.empty { display: flex; align-items: center; justify-content: center; font-size: 14px; opacity: 0.6; }
.editor .upload input[type=file] { background: transparent; border: 0; padding: 6px 0; font-size: 15px; }
.editor .actions.top { position: static; border: 0; padding-top: 0; display: flex; gap: 12px; align-items: center; }
.editor .actions .view { font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.editor .preview-title { font-size: 40px; font-weight: 500; margin: 30px 0 0; }
.editor .pw { margin-top: 40px; border-top: 1px solid var(--fg); padding-top: 14px; }
.editor .pw summary { cursor: pointer; }
.editor .pw form { margin-top: 10px; max-width: 420px; }
.editor .login { max-width: 420px; }
@media (max-width: 600px) {
  .editor .row, .editor .image-row { grid-template-columns: 1fr; }
}

/* address and e-mail in the impressum as pictures (not readable as text) */
img.txtimg { display: inline-block; height: 1.3em; width: auto; max-width: 100%; vertical-align: -0.33em; }

/* video stills (self-hosted) and captions */
.video.has-poster { background: #000; }
.video-load .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: opacity .2s; }
.video-load > span, .video-load > small { position: relative; z-index: 1; }
.video.has-poster .video-load > span:first-of-type, .video.has-poster .video-load small { text-shadow: 0 0 8px #000, 0 0 2px #000; }
.video.has-poster .video-load:hover .poster { opacity: 0.75; }
.media-fig { margin: 0; }
.media-fig figcaption { margin-top: 8px; font-size: 15px; line-height: 1.35; opacity: 0.75; }

/* picture under the ABOUT column */
.about-img { margin-top: 28px; width: 100%; }
