/* Layout: white, one tight centred strip (content + narrow sticky contact), works stacked like a magazine article. Single light theme by choice. */
:root {
  --bg: #ffffff;
  --fg: #00d43b;
  --muted: #00d43b;
  --tile: #f2f2f2;
  --body: "Courier New", Courier, monospace;
  --strip: 900px;
  --col: 62ch;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 12px;
  line-height: 1.5;
  padding: 0 16px;
  padding-block: 28px 48px;
}

.strip {
  max-width: var(--strip);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 24px;
  align-items: start;
}

main { min-width: 0; display: grid; gap: 24px; }

/* landing: title, intro and first image fill the first screen */
.landing {
  min-height: calc(100svh - 28px);
  display: grid;
  align-content: center;
  gap: 24px;
  padding-block: 16px 40px;
}
.landing, .years, .works, footer { width: 100%; max-width: var(--col); margin-inline: auto; }
.hero { display: grid; gap: 6px; }
.hero .ph { width: 100%; aspect-ratio: 3 / 2; }
.hero .cap { max-width: 100%; }
/* rich text from the editor */
.rich { display: grid; gap: 0.8em; }
.rich > * { margin: 0; }
.rich ul, .rich ol { padding-left: 2.5ch; }
.rich a { color: inherit; text-underline-offset: 2px; }

figure { margin: 0; }
.ph { background: var(--tile); overflow: hidden; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: 100%; }

.works { display: grid; gap: 44px; }
.work { display: grid; gap: 8px; }
.work .ph { aspect-ratio: 3 / 2; }
.work p { margin: 0; }
.work .rich { min-width: 0; }
.work .side { display: grid; gap: 8px; align-content: start; min-width: 0; }
.work.v { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.work.v .ph { aspect-ratio: 4 / 5; }
.work.v .cap { white-space: normal; }

.cap {
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.years { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; }
.years button {
  font: inherit; color: var(--fg); background: none; border: 0; padding: 0; cursor: pointer;
}
.years button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 3px; }
.years button:hover { text-decoration: underline; }
.years button:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }

.work.ex { gap: 4px; padding-block: 10px; border-block: 1px solid var(--fg); }
.ex-row { display: grid; grid-template-columns: 9ch minmax(0, 1fr); gap: 8px; }
/* exhibitions-only view: plain rows sharing their dividers, no "výstava" label */
.works.only-ex { gap: 0; }
.works.only-ex .work.ex { padding-block: 8px; border-top: 0; }
.works.only-ex > .work.ex:first-child { border-top: 1px solid var(--fg); }
.works.only-ex .ex-row { grid-template-columns: minmax(0, 1fr); }
.works.only-ex .ex-row span:first-child { display: none; }

.js .reveal { opacity: 0; transition: opacity .9s ease; }
.js .reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transition: opacity .3s linear; } }

aside {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 28px);
  display: grid;
  gap: 4px;
  font-size: 12px;
}
aside a { color: var(--fg); text-decoration: none; white-space: nowrap; }
aside a:hover { text-decoration: underline; }
a:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }

footer { font-size: 11px; color: var(--muted); }

@media (max-width: 760px) {
  .strip { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .work.v { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  aside { position: static; order: -1; grid-auto-flow: column; justify-content: start; gap: 16px; }
}

