/* Archivo (titles) + Roboto Flex (text), variable, latin + latin-ext; from Google Fonts, self-hosted. */
/* latin-ext */
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/Archivo-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/Archivo-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/Archivo-normal-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/Archivo-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Roboto Flex";
  font-style: oblique 0deg 10deg;
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-display: swap;
  src: url(fonts/RobotoFlex-normal-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Roboto Flex";
  font-style: oblique 0deg 10deg;
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-display: swap;
  src: url(fonts/RobotoFlex-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* kaddari.net: work pages + home. Type: Archivo condensed 800 (titles) + Roboto Flex (text); @font-face in fonts.css (prepended at build).
   Each page sets --bg / --tile / --player / --dim on <html> from its own materials (build.py → tint). */

:root {
	--bg: #e4e4e0;
	--ink: #000;
	--dim: #5b5b57;
	--rule: #000;
	--tile: #d3d3ce;
	--player: #d8d8d3;
	--mark: #bcc6ff;
	--display: "Archivo", "Arial Narrow", sans-serif;
	--sans: "Roboto Flex", system-ui, sans-serif;
	--yellow: #ffe500;
	--gutter: clamp(16px, 2.6vw, 40px);
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.55 var(--sans); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }   /* footer always at the very bottom */
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

.site-head { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: baseline; padding: 14px var(--gutter); }
.site-head a { text-decoration: none; }
.site-head .name { font: 800 condensed 1.5rem/1 var(--display); letter-spacing: -.01em; }
.site-head nav { display: flex; flex-wrap: wrap; gap: .3em 1.1em; font: 500 condensed 1.15rem/1 var(--display); }

/* ---------------------------------------------------------------- work page: text left, documentation right */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding: clamp(36px, 8vh, 96px) var(--gutter) 0; align-items: start; }

h1 { margin: 0; font: 800 condensed clamp(2.6rem, 5vw, 5.4rem)/.9 var(--display); letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; }
.medium { margin: .5em 0 0; font-style: oblique 10deg; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.25; }
.facts { margin: 1rem 0 0; font-size: .95rem; line-height: 1.45; }
.facts span { display: block; }

.cover-mobile { display: none; }
.text, .part { max-width: 34em; }
.text { margin-top: clamp(36px, 6vh, 72px); }
.text p, .part p { margin: 0 0 1em; text-wrap: pretty; }

.part { margin-top: 48px; }
.part h2 { margin: 0 0 14px; padding-top: 10px; border-top: 2px solid var(--rule); font: 800 condensed clamp(1.3rem, 1.8vw, 1.65rem)/1.05 var(--display); }
.part--excerpt p { margin-inline: 2.2em; text-align: justify; hyphens: auto; font-style: oblique 5deg; }
.part--rule { border-top: 2px solid var(--rule); }
.part--rule > h3:first-child { margin-top: 14px; }
.part--rule + .part--rule { margin-top: 40px; border-top-width: 1px; }   /* a run of units (Concert Works) */
.part h3 { margin: 32px 0 6px; font: 800 condensed 1.5rem/1.05 var(--display); }
.part h3 + p em:only-child { font-style: italic; }
.part ul { list-style: none; margin: 0 0 1em; padding: 0; border-top: 1px solid var(--rule); font-size: .82rem; line-height: 1.4; }
.part li { padding: 5px 0; border-bottom: 1px solid var(--rule); }
.part--small h2 { font-size: 1.25rem; padding-top: 8px; border-top-width: 1px; }
.part--small { margin-top: 36px; }
.news ul { font-size: 1rem; }   /* News: date column + what */
.news li { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 1em; padding: 8px 0; }
.news-date { color: var(--dim); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .news li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.fn-ref { font-size: .65em; line-height: 0; margin-left: .1em; }
.fn-ref a { text-decoration: none; }
.text .footnote { margin-top: 1.6em; padding-top: .6em; border-top: 1px solid var(--rule); font-size: .82rem; line-height: 1.45; max-width: 30em; }
.footnote > a:first-child { text-decoration: none; margin-right: .2em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.part blockquote { margin: 0 0 1em; padding-left: 1em; border-left: 2px solid var(--rule); font-style: italic; }

.credits { margin-top: 48px; font-size: .88rem; max-width: 34em; }
.credits { padding-top: 12px; border-top: 1px solid var(--rule); }
.credits-note { margin-top: 1.2em; color: var(--dim); }
.credits dl { margin: 0 0 .8em; display: grid; grid-template-columns: 11.5em 1fr; gap: .4em 1em; }
.credits dt { color: var(--dim); }
.credits dd { margin: 0; }
.credits p { margin: 0 0 .6em; }
.credits-note a { color: var(--ink); }

.media { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.split > * { min-width: 0; }
.caption { font-size: .8rem; color: var(--dim); margin: 0 0 22px; }
.cover img { width: 100%; }
.cover .caption { margin-top: 6px; }
.photos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.photos + .caption { margin-top: -2px; }
.photos img { width: 100%; }
.doc-link { margin: 0 0 22px; font: 800 condensed 1.3rem/1.1 var(--display); }

.video { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px; background: #000 center / cover no-repeat; color: #fff; }
.video:hover, .video:focus-visible { outline: 4px solid var(--mark); outline-offset: 0; }
.video + .caption, .video-frame + .caption { margin-top: 6px; }
.video-play { width: 0; height: 0; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.video-label { font: 800 condensed clamp(1.4rem, 2.2vw, 2.1rem)/1 var(--display); display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.video-note { font: 400 .78rem/1.3 var(--sans); color: #c9c9c5; }
.video.is-pending { cursor: default; background: var(--tile); color: var(--ink); margin-bottom: 22px; }
.video.is-pending .video-note { color: var(--dim); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video.is-sc { aspect-ratio: auto; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 12px 14px; margin: .2em 0 1.2em; }
.video.is-sc .video-play { flex: none; border-width: 9px 0 9px 14px; }
.video.is-sc .video-label { margin: 0; font-size: 1.1rem; gap: 3px; }
.sc-frame { width: 100%; height: 166px; border: 0; display: block; margin: .2em 0 1.2em; }
.bandcamp-frame { width: 100%; height: 420px; border: 0; display: block; margin-bottom: 22px; }
.media > .video, .media > .video-frame { margin-bottom: 22px; }

.audio { display: grid; gap: 6px; margin-bottom: 22px; }
.player { display: grid; grid-template-columns: 40px 1fr 3.5em; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 10px 14px 12px 10px; background: var(--player); }
.player-btn { all: unset; cursor: pointer; grid-row: 1 / 3; width: 40px; height: 40px; background: var(--ink); display: grid; place-items: center; }
.player-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.player-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--bg); margin-left: 2px; }
.is-playing .player-icon { width: 12px; height: 14px; border: 0; margin: 0; border-left: 4px solid var(--bg); border-right: 4px solid var(--bg); }
.player-title { font: 800 condensed 1.3rem/1.1 var(--display); }
.player-time { grid-column: 3; grid-row: 1; text-align: right; font-variant-numeric: tabular-nums; font-size: .9rem; }
.player-bar { grid-column: 2 / 4; grid-row: 2; height: 18px; position: relative; cursor: pointer; background: linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 1px no-repeat; }
.player-fill { position: absolute; left: 0; top: 3px; bottom: 3px; width: 0; background: var(--mark); border-right: 2px solid var(--ink); }

/* ---------------------------------------------------------------- works index: images; hover darkens + shows the title */
.index { margin-top: clamp(96px, 16vh, 180px); padding: 0 var(--gutter); }
.tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; --row: clamp(150px, 19vw, 300px); }
.tiles::after { content: ""; flex: 10 1 0; }
.tile { flex: var(--r) 1 calc(var(--r) * var(--row)); }
.tile a, .tile-link { display: block; position: relative; aspect-ratio: var(--r); text-decoration: none; background: var(--tile); overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s; }
.tile-title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; color: #fff; font: 800 condensed clamp(1.3rem, 1.9vw, 1.9rem)/1 var(--display); opacity: 0; transition: opacity .2s; }
.tile a:hover img, .tile a:focus-visible img, .tile-link:hover img, .tile.is-current img { filter: brightness(.55); }
.tile a:hover .tile-title, .tile a:focus-visible .tile-title, .tile-link:hover .tile-title, .tile.is-current .tile-title { opacity: 1; }
.tile a:focus-visible { outline-offset: 3px; }

/* ---------------------------------------------------------------- home: the moon square fills the first screen (black), the index follows */
.home .site-head { position: absolute; inset: 0 0 auto; z-index: 2; color: var(--yellow); text-transform: uppercase; padding-top: 18px; }
.home .site-head .name { font: 700 1.9rem/1 var(--display); letter-spacing: .07em; }
.home .site-head nav { font: 500 1rem/1 var(--display); letter-spacing: .14em; }
.landing { position: relative; height: 100vh; height: 100svh; background: #000; }
.landing { overflow: hidden; }
.landing .backdrop--moonsquare { position: absolute; top: 0; overflow: hidden; }
.home .index { margin-top: 0; padding-top: 8px; }

@media (hover: none) {
	.tile a, .tile-link { aspect-ratio: auto; background: none; }
	.tile img { aspect-ratio: var(--r); }
	.tile-title { position: static; display: block; opacity: 1; padding: 6px 0 2px; text-align: left; color: var(--ink); font-size: 1.15rem; }
	.tile.is-current img { filter: none; }
}

.site-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: .3em 1.2em; margin-top: 64px; padding: 0 var(--gutter) 18px; font-size: .68rem; color: var(--dim); opacity: .7; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- phones: one column, cover right under the title */
@media (max-width: 820px) {
	.site-head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.split { grid-template-columns: minmax(0, 1fr); }
	.cover-mobile { display: block; margin: 24px calc(-1 * var(--gutter)) 0; }
	.cover-mobile .caption { padding: 0 var(--gutter); }
	.cover-wide { display: none; }
	.media { margin-top: 48px; }
	.tiles { --row: 130px; }
}
@media (max-width: 480px) { .part--excerpt p { margin-inline: 1em; text-align: left; hyphens: manual; }
	.home .site-head .name { font-size: 1.12rem; letter-spacing: .05em; }
	.home .site-head nav { font-size: .74rem; letter-spacing: .06em; gap: .3em .75em; } .credits dl { grid-template-columns: 1fr; gap: 0; } .credits dd { margin-bottom: 6px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* site pages (About, Impressum) */
.split--single { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 821px) { .split--site:not(.split--single) { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); } }
.split--site .media { justify-items: center; }
.split--site .cover { max-width: 420px; }

/* Newsletter: the sign-up form (Mailchimp, plain HTML) and pictures inside site-page text */
.signup { margin: 0 0 2.4em; }
.text p:has(+ .signup) { margin-bottom: .9em; }   /* the line above the form ("Maximum once per season") */
.signup label { display: block; margin-bottom: .35em; color: var(--dim); font-size: .85rem; }
.signup-row { display: flex; gap: 0; max-width: 28em; }
.signup input { flex: 1; min-width: 0; padding: .55em .7em; font: inherit; color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-right: 0; border-radius: 0; }
.signup button { padding: .55em 1.1em; font: 600 condensed 1.05rem/1 var(--display); color: var(--bg); background: var(--ink); border: 1.5px solid var(--ink); border-radius: 0; cursor: pointer; }
.signup button:hover, .signup button:focus-visible { color: var(--ink); background: transparent; }
.signup input:focus-visible, .signup button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.inline-fig { margin: 1.4em 0; }
.inline-fig img { display: block; width: 100%; max-width: 30em; height: auto; }
.nl-date { color: var(--dim); }
.text h3 { margin: 0 0 .2em; padding-top: 10px; border-top: 2px solid var(--rule); font: 800 condensed clamp(1.3rem, 1.8vw, 1.65rem)/1.05 var(--display); }
