/* LOM space. Same visual language as lom.audio: grey ground, black hairlines,
   Helvetica, poster tiles with black caption bars.

   Layout rule: every page is a stack of bands, and every band is a row of cells
   on a 12-column grid. Cells touch; a 1px black line separates them. Nothing
   floats outside a cell. On small screens the cells of a band stack. */

:root {
  --bg: #ececec;
  --text: #000;
  --muted: #595959;
  --tile: #d8d8d8;
  --accent: #f15656;
  --edge: 16px;
  --line: 1px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip, .visually-hidden { position: absolute; left: -9999px; }
.skip:focus { left: var(--edge); top: 8px; z-index: 1; padding: 6px 10px; background: var(--text); color: #fff; }

/* Header */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px var(--edge) 14px;
  border-bottom: var(--line) solid var(--text);
}
.wordmark {
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(46px, 13.5vw, 68px);
  font-style: italic;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #c4c4c4;
  text-decoration: none;
  filter: url(#etch);
  padding: 0.08em 0.22em 0.08em 0.04em;
  margin: -0.08em -0.16em -0.08em -0.1em;
}
.wordmark:hover { color: #c4c4c4; }
.tagline { margin: 0; font-size: 15px; line-height: 1.3; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 10px var(--edge);
  border-bottom: var(--line) solid var(--text);
  font-size: 15px;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; }
.site-nav a[aria-current] { color: inherit; }
.site-nav { align-items: center; }
.site-nav .gap { flex: 1 1 24px; }
.pages { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pages .out { margin-left: 0.15em; font-size: 0.8em; }     /* leaves this site */
.social { display: flex; align-items: center; gap: 14px; }
.social a { display: block; line-height: 0; color: var(--text); }
.social a:hover { color: var(--accent); }
.social svg { display: block; fill: currentColor; }
.newsletter { display: flex; align-items: center; gap: 6px; }
.newsletter label { color: var(--muted); }
.newsletter input[type="email"] { width: 11.5em; padding: 4px 8px 5px; font: inherit; color: var(--text); background: #fff; border: var(--line) solid var(--text); border-radius: 0; }
.newsletter button { padding: 4px 10px 5px; font: inherit; color: #fff; background: var(--text); border: var(--line) solid var(--text); border-radius: 0; cursor: pointer; }
.newsletter button:hover, .newsletter button:focus-visible { background: var(--accent); color: #000; }
.hp { position: absolute; left: -9999px; }
.band.signup { display: none; }  /* the newsletter form at the end of the page, phones only */

/* Bands and cells */

/* A short page still fills the window: the last band stretches, so the footer sits on the
   bottom edge and no empty strip is left under it. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > :last-child { flex: 1 0 auto; }

.band { border-bottom: var(--line) solid var(--text); }
.cell { min-width: 0; padding: 18px var(--edge) 24px; }
.cell + .cell { border-top: var(--line) solid var(--text); }
.cell.flush { padding: 0; }
.cell.photo { padding: 0; background: var(--tile); }
.cell.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.title { margin: 0; font-size: 22px; font-weight: 400; line-height: 1.2; }
.title a { text-decoration: none; }
.title a:hover { text-decoration: underline; }
.note { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.note a { color: inherit; }
.display { margin: 0; font-size: clamp(26px, 3.4vw, 44px); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.display a { text-decoration: none; }
.display a:hover { text-decoration: underline; }
.empty { margin: 0; max-width: 46ch; font-size: 17px; }

/* Poster grid */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--line);
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid > li { display: flex; min-width: 0; outline: var(--line) solid var(--text); }
.tile { flex: 1; display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
/* The poster keeps its own proportions and fills the cell's width; in a row of mixed
   formats the black caption below grows to take up the difference. */
.pic { display: block; background: var(--tile); }
.pic img { display: block; width: 100%; height: auto; }
.pic.text {
  flex: 1;
  aspect-ratio: auto;
  padding: 18px var(--edge) 28px;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px var(--edge) 11px;
  background: var(--text);
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  transition: background-color 0.15s;
  flex: 1 0 auto;
}
.pic.text + .cap { flex: 0 0 auto; }
.label { min-width: 0; }
.when { display: block; color: #a8a8a8; font-size: 13px; }
.what { display: block; overflow-wrap: anywhere; }
.arrow { color: #a8a8a8; transition: transform 0.2s, color 0.2s; }
a.tile:hover, a.tile:focus-visible { color: inherit; }
a.tile:hover .cap, a.tile:focus-visible .cap { background: var(--accent); color: #000; }
a.tile:hover .when, a.tile:hover .arrow,
a.tile:focus-visible .when, a.tile:focus-visible .arrow { color: #000; }
a.tile:hover .arrow, a.tile:focus-visible .arrow { transform: translateX(4px); }
a.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* Text in cells */

.lead { margin: 0; max-width: 34ch; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.3; letter-spacing: -0.005em; }
.description li { margin-bottom: 0.4em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 5px 16px; margin: 22px 0 0; font-size: 15px; line-height: 1.4; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.cell > .description:first-child, .cell > .langs:first-child { margin-top: 0; }

/* Event page */

.event { border-bottom: var(--line) solid var(--text); }
.event-poster { display: block; background: var(--tile); border-bottom: var(--line) solid var(--text); }
.event-poster img { display: block; width: 100%; height: auto; }
.event-info { padding: 20px var(--edge) 30px; }
.event-info > * { max-width: 44rem; }
.event-date { margin: 0 0 6px; font-size: 17px; color: var(--muted); }
.badge { margin-left: 8px; padding: 2px 8px; background: var(--accent); color: #000; font-size: 13px; }
.event h1 { margin: 0 0 18px; font-size: clamp(28px, 4vw, 46px); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.event-who { margin: -8px 0 18px; font-size: clamp(18px, 2vw, 24px); line-height: 1.25; color: var(--muted); }
.event h2 { margin: 28px 0 8px; font-size: 13px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.btn {
  display: inline-block;
  padding: 11px 18px 12px;
  background: var(--text);
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  border: var(--line) solid var(--text);
  transition: background-color 0.15s;
}
.btn.quiet { background: transparent; color: var(--text); }
/* "Add to calendar": a button that opens a short list of choices (no JavaScript). */
.add-cal { position: relative; }
.add-cal summary { list-style: none; cursor: pointer; }
.add-cal summary::-webkit-details-marker { display: none; }
.add-cal summary::after { content: " ▾"; font-size: 0.8em; }
.add-cal[open] summary { background: var(--text); color: #fff; }
.add-cal ul {
  position: absolute; z-index: 2; top: 100%; left: 0; min-width: 16em; margin: -1px 0 0; padding: 0; list-style: none;
  background: var(--bg); border: var(--line) solid var(--text);
}
.add-cal li + li { border-top: var(--line) solid var(--text); }
.add-cal ul a { display: block; padding: 10px 14px 11px; text-decoration: none; }
.add-cal ul a:hover, .add-cal ul a:focus-visible { background: var(--accent); color: #000; }
.add-cal .hint { display: block; font-size: 13px; color: var(--muted); }
.add-cal ul a:hover .hint { color: #000; }
.btn:hover, .btn:focus-visible { background: var(--accent); color: #000; }
.lineup { margin: 0; padding: 0; list-style: none; border-top: var(--line) solid var(--text); font-size: 17px; }
.lineup li { display: flex; gap: 16px; padding: 7px 0; border-bottom: var(--line) solid var(--text); }
.slot { flex: 0 0 auto; min-width: 3.2em; font-variant-numeric: tabular-nums; }
.slot:empty { display: none; }
.description { margin-top: 26px; font-size: 17px; }
.description p { margin: 0 0 0.85em; max-width: 66ch; }
.langs { display: flex; flex-wrap: wrap; }
.langs input { position: absolute; opacity: 0; pointer-events: none; }
.langs label { padding: 6px 14px 7px; margin-right: -1px; border: var(--line) solid var(--text); border-bottom: 0; font-size: 15px; line-height: 1.2; cursor: pointer; }
.langs label:hover { background: var(--accent); }
.langs input:checked + label { background: var(--text); color: #fff; }
.langs input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.lang-text { display: none; flex: 0 0 100%; padding-top: 18px; border-top: var(--line) solid var(--text); }
.langs input.sk:checked ~ .lang-sk, .langs input.en:checked ~ .lang-en { display: block; }
.description ul { margin: 0 0 0.85em; padding-left: 1.2em; max-width: 66ch; }
.where { margin: 30px 0 0; font-size: 15px; color: var(--muted); }
.back { margin: 6px 0 0; font-size: 15px; }

/* Archive */

.years {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.filter { margin-left: auto; font-size: 15px; color: var(--muted); }
.filter input {
  width: 12em;
  margin-left: 6px;
  padding: 5px 8px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: var(--line) solid var(--text);
  border-radius: 0;
}
.event-date a { color: inherit; }
.event-title { margin: 0 0 18px !important; font-size: clamp(28px, 4vw, 46px) !important; font-weight: 400; line-height: 1.08; letter-spacing: -0.015em !important; color: var(--text) !important; text-transform: none !important; overflow-wrap: anywhere; }
.event-title a { text-decoration: none; }
.event-title a:hover { text-decoration: underline; }
.numeral { margin: 0; font-size: clamp(40px, 5vw, 64px); font-weight: 700; font-style: italic; line-height: 0.95; letter-spacing: -0.02em;
  /* Room for the slanted glyphs, which otherwise get clipped at the edge of the (sticky) box. */
  padding: 0.08em 0.16em; margin: -0.08em -0.16em; }
.year { scroll-margin-top: 8px; }
.rows { margin: 0; padding: 0; list-style: none; }
.row {
  display: grid;
  grid-template-columns: 5.4em minmax(0, 1fr);
  gap: 0 12px;
  align-items: center;
  padding: 8px var(--edge);
  border-top: var(--line) solid #c4c4c4;
}
.row:first-child { border-top: 0; }
.row .badge { margin-left: 0; }
/* Exhibition runs are long ("11 Dec 2025 – 30 Jan 2026"): on a phone the dates get their own line. */
.runs .row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.runs .row-meta { grid-column: 1; }
.row time { color: var(--muted); font-variant-numeric: tabular-nums; }
.row-title { display: flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.row-title a { text-decoration: none; }
.row-title a:hover { text-decoration: underline; }
.thumb { flex: 0 0 auto; width: 40px; height: auto; outline: var(--line) solid var(--text); }
.who { color: var(--muted); }
.row-title .who { margin-left: 0.35em; }
.pic.text .who { display: block; margin-top: 0.45em; font-size: 0.62em; line-height: 1.25; letter-spacing: 0; }
.row-meta { grid-column: 2; display: flex; gap: 14px; align-items: baseline; font-size: 14px; color: var(--muted); }
.row-meta:empty { display: none; }
.kind { display: none; }

/* Event photos: a tight grid of 3:2 tiles separated by hairlines; each opens the full photo. */
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--line); margin: 0; padding: 0; list-style: none; }
.photos li { min-width: 0; outline: var(--line) solid var(--text); }
.photos a { display: block; aspect-ratio: 3 / 2; background: var(--tile); }
.photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photos a:hover img, .photos a:focus-visible img { opacity: 0.85; }

/* Footer */

.site-footer { font-size: 14px; line-height: 1.5; color: var(--muted); border-bottom: 0; }
.site-footer p { margin: 0; }
.site-footer strong { color: var(--text); font-weight: 400; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 6.4em minmax(0, 1fr) auto; }
  .row-meta { grid-column: 3; justify-self: end; }
  .kind { display: inline; }
  .runs .row { grid-template-columns: 12.5em minmax(0, 1fr) auto; gap: 0 12px; }
  .runs .row time { white-space: nowrap; }
  .runs .row-meta { grid-column: 3; }
}

@media (min-width: 720px) {
  :root { --edge: 20px; }
  .site-header { padding-top: 28px; padding-bottom: 18px; gap: 10px; }
  .wordmark { font-size: clamp(84px, 8vw, 124px); }
  .tagline { font-size: clamp(16px, 1.4vw, 20px); }
  .site-nav { font-size: 17px; }
  .title { font-size: clamp(22px, 2vw, 28px); }
  .cap { font-size: 17px; padding-top: 12px; padding-bottom: 13px; }
  .when { font-size: 14px; }
}

/* Phones: the four pages become a row of tabs (the current one filled in), with the
   newsletter form on a line of its own. The social links stay in the footer only. */
@media (max-width: 719px) {
  /* Phones: the header is just the name; the address is on the About page and in the footer. */
  .tagline { display: none; }
  .site-nav { display: block; padding: 0; }
  /* Six tabs in two rows of three. */
  .pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-bottom: var(--line) solid var(--text); }
  .pages a { padding: 11px 4px 12px; text-align: center; border-left: var(--line) solid var(--text); }
  .pages a:nth-child(3n+1) { border-left: 0; }
  .pages a:nth-child(n+4) { border-top: var(--line) solid var(--text); }
  .site-nav .pages a[aria-current] { background: var(--text); color: #fff; text-decoration: none; }
  /* The header stays short on a phone: the newsletter form moves to the end of the page. */
  .site-nav .gap, .social, .site-nav .newsletter { display: none; }
  .band.signup { display: block; }
  .signup .newsletter { flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .signup .newsletter input[type="email"] { flex: 1; width: auto; min-width: 0; padding: 9px 10px 10px; }
  .signup .newsletter button { padding: 9px 14px 10px; }
}

@media (max-width: 899px) {
  /* Stacked bands. One rule of hierarchy: a heavy line starts a section, its heading follows
     with a small square marker, and the content sits directly under it without another fill. */
  main > .band, main > .event { border-bottom-width: 3px; }
  .band > .cell:first-child:has(> .title) { padding-top: 20px; padding-bottom: 14px; }
  .band > .cell:first-child .title { font-size: 22px; }
  .band > .cell:first-child > .title::before {
    content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.45em;
    background: var(--text); vertical-align: 0.08em;
  }
  .band > .cell:first-child:has(> .title) + .cell:not(.flush):not(.photo) { padding-top: 0; border-top: 0; }
  .cell.photo img { max-height: 80vh; }
  .recent > li:nth-child(n+5) { display: none; }       /* four recent events are enough on a phone */
}

@media (min-width: 900px) {
  .band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cell { padding: 22px var(--edge) 30px; }
  .cell + .cell { border-top: 0; border-left: var(--line) solid var(--text); }
  .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; }
  .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c9 { grid-column: span 9; }
  .c12 { grid-column: span 12; }
  .sticky { position: sticky; top: 14px; }
  .event { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .event.no-poster { display: block; }
  /* On the Slúchadlo page the poster takes the same three columns as the headings below it. */
  .event.onview { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
  .event-poster { border-bottom: 0; border-right: var(--line) solid var(--text); }
  .event-info { padding: 22px var(--edge) 40px; }
  .event:not(.no-poster) .event-info { border-left: var(--line) solid var(--text); margin-left: -1px; min-height: 100%; }
}

@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .arrow, .cap, .btn { transition: none; }
}

/* Alternative theme "tiles" (THEME=tiles): white ground, red and yellow, and the wordmark
   in black relief on a wall of square white tiles with black grout. */

[data-theme="tiles"] { --bg: #fff; --tile: #efefef; --accent: #ed1c24; --yellow: #fff200; --muted: #4d4d4d; }
[data-theme="tiles"] .site-header {
  background-color: #fff;
  background-image: linear-gradient(#000 2px, transparent 2px), linear-gradient(90deg, #000 2px, transparent 2px);
  background-size: 34px 34px;
  background-position: -1px -1px;
}
[data-theme="tiles"] .wordmark, [data-theme="tiles"] .wordmark:hover {
  color: #000;
  filter: url(#pour);
}
[data-theme="tiles"] .tagline { padding: 3px 9px 4px; background: var(--yellow); border: var(--line) solid var(--text); }
/* The menu is black, so no colour of the theme touches the posters below it. */
[data-theme="tiles"] .site-nav { background: var(--text); color: #fff; }
[data-theme="tiles"] .site-nav a:hover, [data-theme="tiles"] .social a:hover { color: var(--yellow); }
[data-theme="tiles"] .social a { color: #fff; }
[data-theme="tiles"] .site-nav .newsletter label { color: #c8c8c8; }
[data-theme="tiles"] .site-nav .newsletter input[type="email"] { border-color: #fff; }
[data-theme="tiles"] .pages a { border-color: #fff; }
[data-theme="tiles"] .site-nav .pages a[aria-current] { color: var(--yellow); }
[data-theme="tiles"] a:hover { color: var(--accent); }
[data-theme="tiles"] .newsletter button { background: var(--accent); border-color: var(--text); color: #fff; }
[data-theme="tiles"] .newsletter button:hover, [data-theme="tiles"] .newsletter button:focus-visible { background: var(--yellow); color: #000; }
[data-theme="tiles"] a.tile:hover .cap, [data-theme="tiles"] a.tile:focus-visible .cap { background: var(--yellow); }
[data-theme="tiles"] .badge { background: var(--yellow); outline: var(--line) solid var(--text); }
[data-theme="tiles"] .btn:hover, [data-theme="tiles"] .btn:focus-visible,
[data-theme="tiles"] .langs label:hover { background: var(--yellow); color: #000; }
[data-theme="tiles"] .btn:not(.quiet) { background: var(--accent); color: #fff; }
[data-theme="tiles"] .numeral { color: var(--accent); }
[data-theme="tiles"] .site-footer { background: var(--yellow); color: #000; }
[data-theme="tiles"] .site-footer a:hover { color: var(--accent); }
@media (max-width: 719px) {
  /* No tiles on a phone: the wordmark alone on white. */
  [data-theme="tiles"] .site-header { background-image: none; }
  [data-theme="tiles"] .pages { border-bottom-color: #fff; }
  [data-theme="tiles"] .wordmark { filter: url(#pour-small); }
  [data-theme="tiles"] .site-nav .pages a[aria-current] { background: var(--yellow); color: #000; }
}
@media (max-width: 899px) {
  /* The section marker is a small yellow tile. */
  [data-theme="tiles"] .band > .cell:first-child > .title::before { background: var(--yellow); outline: 2px solid var(--text); outline-offset: -1px; }
}
