/* aikahladikova.cz — atelier-paper design system
   Concept: a painter's atelier in daylight — warm handmade paper, canvas
   weave, charcoal ink, ochre accents. Tactile, structured, never flat white.
   Lightbox & framed shots keep their dark drama. */

@import url('/assets/fonts/fonts.css');

:root {
  --paper: #f5efe1;
  --paper-deep: #ede4d1;
  --panel: #fcf8ef;
  --line: #ddd2bb;
  --line-soft: #e7ddc9;
  --ink: #322c24;
  --ink-soft: #5c544a;
  --muted: #8e8576;
  --ochre: #a16f1d;
  --ochre-soft: #c0903b;
  --ochre-dim: rgba(161, 111, 29, .35);
  --terra: #b25c33;            /* terracotta — warm secondary accent */
  --night: #141a23;            /* the deep blue of her presentation shots */
  --frost-bg: #D4CABB;         /* frosted painting panel tint */
  --frost-spot: #F6F3EE;       /* frosted panel spotlight (warm cream) */
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  --max: 1240px;
  --pad: clamp(1.1rem, 4vw, 2.6rem);
  --ease: cubic-bezier(.22, .8, .3, 1);
  --shadow-card: 0 14px 38px -16px rgba(43, 40, 35, .35);
  --shadow-card-hover: 0 22px 50px -16px rgba(43, 40, 35, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* decorative elements (spotlights, hero hatching) must never widen the page */
html, body { overflow-x: clip; }

body {
  margin: 0;
  /* short pages: footer stays pinned to the viewport bottom */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -12%, rgba(161, 111, 29, .08), transparent 65%),
    radial-gradient(900px 700px at 88% 28%, rgba(178, 92, 51, .05), transparent 60%),
    radial-gradient(800px 700px at 8% 70%, rgba(161, 111, 29, .045), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* the structured wall — same plaster texture as the original site,
   blended into the warm paper tone (multiply keeps whites = paper) */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;   /* fallback */
  height: 100lvh;  /* large-viewport height: stays constant when the mobile address bar hides → no jump */
  z-index: 0;
  pointer-events: none;
  background: image-set(
      url('/assets/img/bg-texture.webp') type('image/webp'),
      url('/assets/img/bg-texture.jpg') type('image/jpeg')
    ) center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: .55;
}
body > * { position: relative; z-index: 1; }
main { flex: 1 0 auto; }
.site-foot { flex-shrink: 0; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ochre); text-decoration: none; transition: color .25s; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .55em;
  letter-spacing: .015em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.4rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.kicker {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--ochre);
}
.kicker::after {
  content: '';
  display: block;
  width: 2.6rem; height: 1px;
  margin: 1.1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--ochre), transparent);
}
.kicker.left::after { margin-left: 0; background: linear-gradient(90deg, var(--ochre), transparent); }

/* ---------- entrance reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line-soft);
}
/* frosting lives on a backdrop layer so the mobile menu can frost independently */
.site-head::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 243, 234, .74);
  backdrop-filter: blur(9px) saturate(1.15);
  -webkit-backdrop-filter: blur(9px) saturate(1.15);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.6rem; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand img { height: 2.5rem; width: auto; }
.brand .brand-name {
  font-family: var(--serif); font-style: italic;
  font-size: 1.3rem; color: var(--ink); letter-spacing: .03em;
  white-space: nowrap;
}
@media (max-width: 480px) { .brand .brand-name { display: none; } }

.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav > a {
  position: relative;
  color: var(--ink-soft);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem 0;
  white-space: nowrap;
}
.nav > a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--ochre);
  transition: right .3s var(--ease);
}
.nav > a:hover::after, .nav > a[aria-current]::after { right: 0; }
.nav > a:hover, .nav > a[aria-current] { color: var(--ochre); }

.lang-switch {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(43, 40, 35, .05);
  border: 0; border-radius: 2rem;
  padding: .62rem 1.25rem;
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  line-height: 1;
  color: var(--ink-soft) !important;
  transition: background .25s, color .25s;
}
.lang-switch:hover { background: rgba(161, 111, 29, .14); color: var(--ochre) !important; }
.lang-switch img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(43, 40, 35, .12); }
.lang-switch::after { display: none; }
.lang-switch:hover { border-color: var(--ochre); color: var(--ochre) !important; }

/* social icons in the header */
.site-head .socials { display: flex; align-items: center; gap: .35rem; margin: 0; }
.site-head .socials a {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  color: var(--ink-soft);
  border: 0; background: none;
  transition: color .2s, background .2s;
}
.site-head .socials a:hover { color: var(--ochre); background: rgba(161, 111, 29, .1); }
.site-head .socials svg { width: 17px; height: 17px; }
.site-head .socials img { width: 15px; height: 13px; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: .5rem;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  /* when the menu is open, header + menu share the same frosted cream */
  .site-head:has(.nav.open) { border-bottom-color: transparent; }
  .site-head:has(.nav.open)::before {
    background: rgba(247, 243, 234, .9);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
  }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(247, 243, 234, .9);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(43, 40, 35, .3);
    padding: .4rem 0 1.1rem;
  }
  .nav.open { display: flex; }
  .nav > a { padding: .85rem var(--pad); font-size: .95rem; }
  .nav > a::after { display: none; }
  .lang-switch { margin: .9rem var(--pad) 0; justify-content: center; border-radius: .4rem; }
  .site-head .socials { justify-content: center; gap: 1rem; margin: 1rem var(--pad) 0; }
  .site-head .socials a { width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); }
  .site-head .socials svg { width: 19px; height: 19px; }
}

/* ---------- hero: atelier introduction ---------- */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .kicker.left::after { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, transparent, var(--ochre), transparent); }
  /* mobile: no hero painting (the random-painting feature is desktop-only) */
  .hero-art { display: none; }
}
.hero-logo { width: min(190px, 42vw); margin-bottom: 1.8rem; }
@media (max-width: 880px) { .hero-logo { margin-left: auto; margin-right: auto; } }
.hero-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 1.4rem 0 0;
  text-wrap: balance;
}
.hero-quote::before, .hero-quote::after { color: var(--ochre); }
.hero-cta { margin-top: 2.4rem; }

/* featured painting hangs on the paper wall */
.hero-art { position: relative; }
.hero-art a {
  position: relative; z-index: 1; display: block;
  box-shadow: 0 30px 70px -22px rgba(43, 40, 35, .55);
  transition: transform .6s var(--ease), box-shadow .6s;
}
.hero-art a:hover { transform: translateY(-5px); box-shadow: 0 38px 80px -22px rgba(43, 40, 35, .6); }
.hero-art img { width: 100%; }
.hero-art .caption {
  position: relative; z-index: 1;
  margin-top: 1rem; text-align: right;
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft);
}
.hero-art .caption .d { font-family: var(--sans); font-style: normal; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* frosted hero — same fully-transparent, slight-blur panel as the painting
   detail. Fixed square box so a taller/wider painting never shifts the layout;
   the artwork is contained inside. */
.hero-art.frosted a {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; width: 100%; max-width: 480px; margin: 0 auto;
  padding: 8%; border-radius: 14px;
  background: transparent;
  -webkit-backdrop-filter: blur(4px) saturate(1.04);
  backdrop-filter: blur(4px) saturate(1.04);
  box-shadow: 0 34px 80px -34px rgba(43, 40, 35, .4);
  overflow: hidden;
}
.hero-art.frosted a:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 88px -34px rgba(43, 40, 35, .46);
}
.hero-art.frosted a::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse 72% 58% at 50% 42%, color-mix(in srgb, var(--frost-spot) 20%, transparent), transparent 72%);
}
.hero-art.frosted picture {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.hero-art.frosted img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(43, 40, 35, .4));
}

.btn {
  display: inline-block;
  border: 1px solid var(--ochre);
  color: var(--ochre);
  padding: .78rem 2.3rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  background: linear-gradient(var(--ochre), var(--ochre)) no-repeat 0 100% / 100% 0;
  transition: background-size .35s var(--ease), color .35s;
}
.btn:hover { background-size: 100% 100%; color: var(--paper); }

/* ---------- sections ---------- */

.section { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2.6rem;
}
.section-head h2 { margin: 0; }
.section-head .more {
  font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  padding-bottom: .4rem;
}

.prose-head { text-align: center; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.prose-head .kicker { display: block; margin-bottom: 1.3rem; }

/* ---------- painting grid ---------- */

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2.4rem 1.8rem;
}
/* gallery overview: two columns on mobile only (desktop/tablet unchanged) */
@media (max-width: 640px) {
  .art-grid.two-col { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .art-grid.two-col > .art-card { min-width: 0; }
  /* half-width tiles: keep it compact — show only size + status, wrap the title */
  .art-grid.two-col .art-card figcaption { padding-top: .7rem; }
  .art-grid.two-col .art-card .t { white-space: normal; font-size: 1.15rem; }
  .art-grid.two-col .art-card .d { white-space: normal; }
  .art-grid.two-col .art-card .d-tech,
  .art-grid.two-col .art-card .d-year { display: none; }
}
/* latest works: 6 uniform paintings in a tidy 3×2 — DESKTOP ONLY */
@media (min-width: 881px) {
  .art-grid.featured-first { grid-template-columns: repeat(3, 1fr); }
}
/* tablet: 4 uniform paintings (no big first); phones: the 3 newest */
@media (max-width: 880px) { .art-grid.featured-first > .art-card:nth-child(n+5) { display: none; } }
@media (max-width: 640px) { .art-grid.featured-first > .art-card:nth-child(n+4) { display: none; } }

.art-card { display: block; }
.art-card figure { margin: 0; }
/* uniform square tile: the image FILLS the tile edge-to-edge (object-fit:
   cover). The <picture> wrapper must be a block sized to the frame, otherwise
   it shrinks to the image's intrinsic size and the picture floats in the
   middle with a gap all around ("inside, not on the edge"). */
.art-card .frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: transparent;
  transition: transform .4s var(--ease);
}
.art-card .frame picture {
  display: block;
  width: 100%; height: 100%;
}
.art-card img {
  display: block;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.art-card:hover img { transform: scale(1.04); }
.art-card:hover .frame {
  transform: translateY(-4px);
}
/* frosted-panel gallery tiles — the clean artwork floats on a frosted square.
   Gallery keeps the more-opaque frosted look (visible tinted glass); the
   painting-detail stage below is the fully-transparent variant. */
.art-card.frosted .frame {
  padding: 8%;
  border-radius: 12px;
  background: color-mix(in srgb, var(--frost-bg) 52%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.14);
  backdrop-filter: blur(14px) saturate(1.14);
}
.art-card.frosted .frame::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse 72% 58% at 50% 42%, color-mix(in srgb, var(--frost-spot) 50%, transparent), transparent 72%);
}
.art-card.frosted img {
  position: relative; z-index: 1;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(43, 40, 35, .36));
}
.art-card figcaption { padding: 1rem .2rem 0; }
.art-card .t {
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink);
  transition: color .3s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.art-card:hover .t { color: var(--ochre); }
.art-card .d {
  font-size: .78rem; letter-spacing: .08em; color: var(--muted); margin-top: .2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.art-card .badge { margin-top: .35rem; }

/* availability — the quiet gallery convention: a small dot, nothing more */
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.badge::before {
  content: '';
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--muted);
}
.badge.available::before { background: #5f9a6e; }
.badge.sold::before { background: #b4453a; }
.badge.reserved::before { background: #c49a3f; }
.badge.nfs::before { background: #9a9282; }

/* ---------- prices — the gallery label ----------
   A price reads like the small card beside a painting in a gallery: serif
   lining numerals in ink, the currency as a tiny sans mark in the muted tone.
   Sold / reserved keep their price, but step back into --muted. */
.price {
  font-family: var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: .01em;
  line-height: 1;
}
.price .cur {
  font-family: var(--sans); font-weight: 600;
  font-size: .55em; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin-left: .38em;
  vertical-align: .12em;
}
.price.cur-first .cur { margin: 0 .38em 0 0; }
.price.muted { color: var(--muted); }

/* card: availability left, price right — one quiet line under the specs */
.art-card .art-tag {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .6rem; margin-top: .45rem;
}
.art-card .art-tag .badge { margin-top: 0; flex-shrink: 0; }
.art-card .art-tag .price { font-size: 1.2rem; }
.art-card:hover .art-tag .price:not(.muted) { color: var(--ochre); }
/* the mobile two-column tiles are narrow: keep the full status label and
   set the price on its own line beneath it, like a two-line gallery card */
@media (max-width: 640px) {
  .art-grid.two-col .art-tag.has-price { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .art-grid.two-col .art-tag .price { font-size: 1.15rem; }
}

/* ---------- painting detail ---------- */

.painting { padding-top: clamp(2.2rem, 5vw, 4rem); overflow: clip; }
.painting-stage { position: relative; text-align: center; }
.painting-stage::before {
  content: '';
  position: absolute; inset: -6% 0;
  background: radial-gradient(ellipse 75% 65% at center 42%, rgba(161, 111, 29, .1), transparent 70%);
  pointer-events: none;
}
.painting-stage img.stage {
  position: relative;
  margin: 0 auto;
  /* fixed stage height — switching photos never shifts the layout below */
  height: min(72vh, 780px);
  width: auto; max-width: 100%;
  object-fit: contain;
  cursor: zoom-in;
  box-shadow: 0 34px 80px -24px rgba(43, 40, 35, .55);
}
@media (max-width: 700px) {
  /* fixed SQUARE stage on phones: the (square) composite fills it and every
     other photo is contained in the same footprint, so switching thumbnails
     never changes the stage height / reflows the page below. */
  .painting-stage img.stage {
    width: 100%; height: auto;
    aspect-ratio: 1 / 1;
    max-height: none;
  }
}

/* ---- frosted-panel presentation (trial: ?frost=1) --------------------------
   The clean artwork floats on a translucent, frosted, rounded panel — the page
   paper shows through the frost and around the corners (like the header). No
   baked wall; the panel + spotlight are pure CSS, themeable via --frost-* vars. */
.painting-stage.frosted::before { display: none; }   /* drop the old dark glow */
.painting-stage.frosted picture {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: min(82vh, 720px); max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 5%;
  border-radius: 14px;
  /* more transparent so the page paper shows through; no inner hairline */
  background: transparent;
  -webkit-backdrop-filter: blur(4px) saturate(1.04);
  backdrop-filter: blur(4px) saturate(1.04);
  box-shadow: 0 34px 80px -34px rgba(43, 40, 35, .4);
  overflow: hidden;
}
.painting-stage.frosted picture::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse 72% 58% at 50% 42%, color-mix(in srgb, var(--frost-spot) 20%, transparent), transparent 72%);
}
.painting-stage.frosted img.stage {
  position: relative; z-index: 1;
  width: 100%; height: 100%; max-height: none;
  object-fit: contain;
  box-shadow: none;
  filter: drop-shadow(0 18px 34px rgba(43, 40, 35, .4));
}
.painting-thumbs {
  display: flex; justify-content: center; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap;
}
.painting-thumbs img {
  width: 84px; height: 84px; object-fit: cover;
  cursor: pointer;
  opacity: .65; border: 1px solid var(--line);
  background: var(--panel);
  padding: 2px;
  transition: opacity .25s, border-color .25s;
}
.painting-thumbs img:hover, .painting-thumbs img.active { opacity: 1; border-color: var(--ochre); }

.painting-meta { text-align: center; max-width: 42rem; margin: 2.8rem auto 0; }
.painting-meta h1 { margin-bottom: .5rem; }
.painting-specs {
  color: var(--muted);
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  display: flex; justify-content: center; align-items: center; gap: .9rem; flex-wrap: wrap;
}
.painting-specs span + span::before {
  content: '·';
  color: var(--ochre);
  margin-right: .9rem;
}
.painting-note {
  margin: 1.6rem auto 0; max-width: 34rem;
  color: var(--ink-soft);
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.6;
  white-space: pre-line; /* notes carry poem/paragraph line breaks from the DB */
}
.painting-cta { margin-top: 2.6rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.painting-cta p { color: var(--muted); margin: 0 0 1.2rem; }
/* the price block: a kicker-like label, then the price large, like a gallery
   wall label — sits above the "write me" invitation */
.painting-price {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  margin: -.5rem 0 1.4rem;
}
.painting-price .pp-label {
  font-size: .66rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--ochre);
}
.painting-price.muted .pp-label { color: var(--muted); }
.painting-price .price { font-size: clamp(1.7rem, 3.2vw, 2.15rem); font-weight: 500; }
/* currency sits on the baseline of the amount, not floated up */
.painting-price .price .cur { font-size: .42em; vertical-align: baseline; margin-left: .4em; }

.painting-nav {
  display: flex; justify-content: space-between; align-items: stretch; gap: 1.5rem;
  margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.painting-nav .pn {
  display: flex; align-items: center; gap: 1.1rem;
  max-width: 46%;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.25;
  color: var(--ink);
}
.painting-nav .pn-next { text-align: right; }
.painting-nav .pn:hover { color: var(--ochre); }
.painting-nav .pn img {
  width: 88px; height: 88px; object-fit: cover; flex-shrink: 0;
  outline: 1px solid var(--line);
  box-shadow: 0 12px 28px -12px rgba(50, 44, 36, .45);
  transition: transform .4s var(--ease);
}
.painting-nav .pn:hover img { transform: scale(1.06); }
.painting-nav .ph {
  display: block;
  font-family: var(--sans); font-style: normal;
  color: var(--muted); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: .35rem;
}
@media (max-width: 640px) {
  .painting-nav .pn { font-size: 1.05rem; gap: .8rem; }
  .painting-nav .pn img { width: 60px; height: 60px; }
}

/* ---------- exhibition highlight (homepage) ---------- */

.exhibition-teaser {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.exhibition-highlight { max-width: 46rem; }
.exhibition-highlight .kicker { display: block; margin-bottom: 1rem; }
.exhibition-highlight h2 { font-style: italic; margin: 0 0 .5rem; text-wrap: balance; }
.exhibition-highlight .eh-where { text-wrap: balance; }
.exhibition-highlight .eh-note { text-wrap: pretty; line-height: 1.7; }
.exhibition-highlight .eh-date {
  font-family: var(--serif); font-size: 1.4rem; color: var(--ochre); margin: 0 0 .3rem;
}
.exhibition-highlight .eh-where {
  color: var(--muted); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0;
}
.exhibition-highlight .eh-note {
  color: var(--ink-soft); margin: 1rem 0 0; white-space: pre-line; max-width: 36rem;
}
.exhibition-highlight .eh-links {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.6rem;
}
.exhibition-highlight .eh-links .exh-link { margin-top: 0; }
.exhibition-highlight .eh-links .more {
  font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
}
.exhibition-teaser .ex-cta { margin-top: 2.4rem; }
.section-cta { text-align: center; margin-top: 2.6rem; }

/* ---------- about teaser (homepage) ---------- */

/* DEFAULT (plain) — kept for easy revert:
.about-teaser {
  background:
    radial-gradient(700px 400px at 80% 20%, rgba(178, 92, 51, .07), transparent 65%),
    var(--paper-deep);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
*/
/* Textured plaster panel — gives the "O mně" block its own structure */
.about-teaser {
  background:
    radial-gradient(800px 460px at 82% 18%, rgba(178, 92, 51, .12), transparent 60%),
    linear-gradient(rgba(235, 226, 208, .80), rgba(231, 221, 201, .86)),
    image-set(url('/assets/img/bg-texture.webp') type('image/webp'),
              url('/assets/img/bg-texture.jpg') type('image/jpeg')) center / cover;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.about-grid {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo { position: relative; max-width: 380px; }
@media (max-width: 800px) { .about-photo { margin: 0 auto; } }
.about-photo img {
  outline: 1px solid var(--line);
  box-shadow: 0 26px 60px -20px rgba(50, 44, 36, .5);
  transform: rotate(-2deg);
  transition: transform .6s var(--ease);
}
.about-photo:hover img { transform: rotate(0deg) scale(1.015); }
/* a stroke of paint behind the photo */
.about-photo::before {
  content: '';
  position: absolute; inset: 8% -7% -5% 12%;
  background: linear-gradient(115deg, rgba(161, 111, 29, .22), rgba(178, 92, 51, .16) 55%, transparent 80%);
  border-radius: 58% 42% 64% 36% / 48% 60% 40% 52%;
  transform: rotate(3deg);
}
.about-copy .kicker { display: block; }
.about-copy h2 { font-style: italic; margin-top: 1.9rem; }
.about-copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.signature img { height: auto; opacity: .9; display: block; }
/* homepage teaser: small sign-off, pushed to the right (block img → margin-left:auto) */
.about-copy .signature { margin: 1.1rem 0 0; }
.about-copy .signature img { width: 92px; margin: 0 2.8rem 0 auto; }
/* homepage teaser: button (left) + signature (right) share one line */
.about-copy .about-signoff { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.about-copy .about-signoff .signature { margin: 0 clamp(2rem, 13%, 5rem) 0 0; }
.about-copy .about-signoff .signature img { margin: 0; }
/* about page: small right-aligned sign-off, WITHOUT the .prose image frame */
.prose-about .signature { margin: 1.4rem 0 0; }
.prose-about .signature img { width: clamp(78px, 15vw, 105px); margin: 0 clamp(2rem, 13%, 5rem) 0 auto; outline: none; box-shadow: none; }

/* ---------- blog ---------- */

.post-list { display: grid; gap: 2.4rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.back-cta { text-align: center; margin-top: 2.8rem; }
/* homepage blog teaser: 6 on desktop, 4 on tablet, 3 on phones */
@media (max-width: 880px) { .post-list.home-posts > *:nth-child(n+5) { display: none; } }
@media (max-width: 640px) { .post-list.home-posts > *:nth-child(n+4) { display: none; } }
.post-card { display: flex; flex-direction: column; }
.post-card .frame {
  overflow: hidden;
  outline: 1px solid var(--line);
  background: var(--night);
  box-shadow: var(--shadow-card);
  transition: box-shadow .4s, outline-color .4s;
}
.post-card img {
  aspect-ratio: 16 / 10; object-fit: cover; width: 100%;
  transition: transform 1.1s var(--ease);
}
.post-card:hover img { transform: scale(1.045); }
.post-card:hover .frame { outline-color: var(--ochre-dim); box-shadow: var(--shadow-card-hover); }
.post-card .body { padding: 1.1rem .2rem 0; }
.post-card time {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ochre);
}
.post-card h3 { margin: .45rem 0 .45rem; font-size: 1.45rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--ochre); }
.post-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.65; }

/* ---------- article / prose ---------- */

.prose { max-width: 44rem; margin: 0 auto; }
.prose-head time {
  color: var(--ochre); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
}
.prose p { margin: 0 0 1.35em; color: var(--ink-soft); }
.prose h2, .prose h3, .prose h4 { margin-top: 1.9em; }
.prose img {
  margin: 2.4rem auto;
  outline: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.prose blockquote {
  margin: 2.2rem 0; padding: .2rem 0 .2rem 1.6rem;
  border-left: 2px solid var(--ochre);
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.55;
  color: var(--ink);
}
.prose blockquote p { color: inherit; }
/* consecutive blockquotes (e.g. a multi-paragraph bio) read as ONE block with a
   single unbroken accent line — paragraph spacing comes from padding inside the
   border, so the line never breaks between paragraphs */
.prose blockquote:has(+ blockquote) { margin-bottom: 0; }
.prose blockquote + blockquote { margin-top: 0; padding-top: 1.3rem; }
.prose ul, .prose ol { color: var(--ink-soft); }
.prose a { border-bottom: 1px solid var(--ochre-dim); }

/* about page: painting + lead quote side by side, then bio with portrait */
.prose-about { max-width: 50rem; }
.about-lead {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2.2rem, 5vw, 3.2rem);
}
.about-lead-art { margin: 0; }
.about-lead-art img {
  outline: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transform: rotate(-1.2deg);
}
.about-lead-quote {
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
@media (max-width: 700px) {
  .about-lead { grid-template-columns: 1fr; text-align: center; }
  .about-lead-art { max-width: 320px; margin: 0 auto; }
}
.about-page-photo {
  float: right;
  width: min(300px, 42%);
  margin: .4rem 0 1.4rem 2rem;
  shape-outside: margin-box;
}
.about-page-photo img {
  outline: 1px solid var(--line);
  box-shadow: 0 24px 55px -20px rgba(50, 44, 36, .5);
  transform: rotate(1.5deg);
}
@media (max-width: 700px) {
  .about-page-photo { float: none; width: min(300px, 80%); margin: 0 auto 1.8rem; }
}
/* awards ("Ocenění") — quiet year + title list under the bio */
.about-awards { clear: both; margin-top: clamp(2.4rem, 5vw, 3.4rem); }
.about-awards h2 { margin-bottom: 1rem; }
.awards-list { list-style: none; padding: 0; margin: 0; }
.awards-list li {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 1.2rem;
  align-items: baseline;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}
.awards-list li:last-child { border-bottom: 1px solid var(--line); }
.award-year {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ochre);
  letter-spacing: .04em;
}
.award-body { color: var(--ink-soft); }
.award-title { color: var(--ink); }
.award-desc { color: var(--muted); font-size: .92rem; white-space: nowrap; }
@media (max-width: 700px) {
  .award-desc { white-space: normal; display: block; margin-top: .1rem; }
}

/* ---------- press (Psali o mně) ---------- */

.press-note { color: var(--muted); font-size: .85rem; text-align: center; margin: 0 0 2rem; letter-spacing: .02em; }
.press-list { display: grid; gap: 2.4rem; max-width: 56rem; margin: 0 auto; }
.press-item {
  display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start;
}
.press-thumb { display: block; overflow: hidden; }
.press-thumb img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  outline: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform 1.1s var(--ease);
}
.press-thumb:hover img { transform: scale(1.04); }
.press-body h3 { font-size: 1.55rem; margin: .2rem 0 .6rem; }
.press-body h3 a { color: var(--ink); }
.press-body h3 a:hover { color: var(--ochre); }
.press-body p { color: var(--ink-soft); margin: 0 0 .9rem; }
.press-link {
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
}
@media (max-width: 640px) {
  .press-item { grid-template-columns: 1fr; gap: 1rem; }
  .press-thumb img { aspect-ratio: 16 / 10; }
}

/* ---------- exhibitions ---------- */

.exhibition-list { display: grid; gap: 0; max-width: 54rem; margin: 0 auto; }
.exhibition {
  display: grid; grid-template-columns: 10.5rem 1fr; gap: 1.6rem;
  padding: 1.7rem .4rem;
  border-bottom: 1px solid var(--line);
}
.exhibition:first-child { border-top: 1px solid var(--line); }
.exhibition .when {
  font-family: var(--serif);
  font-size: 1.25rem; line-height: 1.35;
  color: var(--ochre);
}
.exhibition .when .y {
  display: block;
  font-family: var(--sans);
  color: var(--muted); font-size: .72rem; letter-spacing: .2em;
}
.exhibition h3 { margin-bottom: .25rem; }
.exhibition .where {
  color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
/* exhibition links: matching icon pair (map + website), labels via tooltip */
.exhibition .exh-actions { display: flex; align-items: center; gap: .55rem; margin-top: .9rem; }
.exhibition .exh-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;        /* comfortable tap target */
  border: 1px solid var(--ochre-dim); color: var(--ochre);
  transition: background .25s, color .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.exhibition .exh-ico svg { width: 18px; height: 18px; }
.exhibition .exh-ico:hover, .exhibition .cal-toggle[aria-expanded="true"] { background: var(--ochre); border-color: var(--ochre); color: var(--paper); }
.exhibition .cal-toggle { cursor: pointer; background: none; font: inherit; }

/* "Add to calendar" popover */
.exhibition .cal-add { position: relative; display: inline-flex; }
.exhibition .cal-menu {
  position: absolute; top: calc(100% + .5rem); left: 0; z-index: 30;
  min-width: 190px; padding: .4rem; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: .7rem;
  box-shadow: 0 20px 46px -14px rgba(43, 40, 35, .4);
}
.exhibition .cal-menu[hidden] { display: none; }
.exhibition .cal-menu-head {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: .25rem .65rem .45rem;
}
.exhibition .cal-menu a {
  padding: .55rem .65rem; border-radius: .45rem; font-size: .92rem; color: var(--ink);
  white-space: nowrap; transition: background .15s, color .15s;
}
.exhibition .cal-menu a:hover { background: rgba(161, 111, 29, .1); color: var(--ochre); }
.exhibition .note { color: var(--ink-soft); font-size: .95rem; margin-top: .55rem; white-space: pre-line; }
@media (max-width: 620px) {
  .exhibition { grid-template-columns: 1fr; gap: .5rem; }
}
.exhibitions h2 { text-align: center; margin: 3.5rem 0 1.8rem; }
.exhibitions h2:first-of-type { margin-top: 0; }

/* nearly invisible year delimiter in the past list */
.year-sep {
  display: flex; align-items: center; gap: 1.2rem;
  margin: 2.4rem 0 .4rem;
}
.year-sep:first-child { margin-top: .6rem; }
.year-sep span {
  font-family: var(--serif);
  font-size: .95rem; letter-spacing: .3em;
  color: var(--muted); opacity: .55;
}
.year-sep::before, .year-sep::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.year-sep::after { background: linear-gradient(90deg, var(--line), transparent); }
/* the year is now told by the delimiter — quiet the per-row repeat */
.exhibition .when .y { opacity: .5; }
.past-more-wrap { text-align: center; margin-top: 2rem; }
/* the hidden attribute must beat .exhibition{display:grid} / .year-sep{display:flex} */
.exhibition[hidden], .year-sep[hidden], .past-more-wrap[hidden] { display: none !important; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid; gap: 3.5rem;
  grid-template-columns: 1.15fr .85fr;
  max-width: 62rem; margin: 0 auto;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.3rem; }
.field label {
  display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .45rem;
}
.field input, .field textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  padding: .8rem .95rem;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ochre);
  box-shadow: 0 0 0 3px rgba(161, 111, 29, .12);
}
.field textarea { min-height: 13rem; resize: vertical; }
.hp { position: absolute; left: -5000px; }

button.btn { cursor: pointer; font-family: inherit; background-color: transparent; }

.alert { padding: 1rem 1.3rem; margin-bottom: 1.5rem; font-size: .95rem; border: 1px solid; }
.alert.ok { background: #e8f0e6; border-color: #9dbd9a; color: #2c5a36; }
.alert.err { background: #f4e7e3; border-color: #cfa49a; color: #7c382e; }

.contact-aside h3 { font-size: 1.5rem; font-style: italic; }
.contact-aside p { color: var(--ink-soft); }
.socials { display: flex; gap: 1rem; margin-top: 1.4rem; }
.socials a {
  display: grid; place-items: center;
  width: 2.7rem; height: 2.7rem; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-soft);
  background: var(--panel);
  transition: border-color .25s, color .25s, transform .25s;
}
.socials a:hover { border-color: var(--ochre); color: var(--ochre); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- pagination ---------- */

.pagination {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem;
  margin-top: 3.4rem; font-size: .85rem;
}
.pagination a, .pagination span {
  min-width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-soft); padding: 0 .6rem;
  transition: border-color .25s, color .25s;
}
.pagination a:hover { border-color: var(--ochre); color: var(--ochre); }
.pagination .current { background: var(--ochre); border-color: var(--ochre); color: var(--paper); }
.pagination .gap { border: 0; background: none; min-width: 1.2rem; padding: 0; color: var(--muted); }
.pagination .arrow { font-size: 1.15em; line-height: 1; }
/* mobile overrides must come AFTER the base rules (same specificity) */
@media (max-width: 600px) {
  /* worst case is 9 pills (‹ 1 … 3 4 5 … 25 ›) — must fit a 360px viewport */
  .pagination { gap: .3rem; margin-top: 2.4rem; }
  .pagination a, .pagination span { min-width: 2rem; height: 2rem; padding: 0 .3rem; font-size: .8rem; }
  .pagination .gap { min-width: .9rem; padding: 0; }
}
@media (max-width: 380px) {
  .pagination { gap: .25rem; }
  .pagination a, .pagination span { min-width: 1.8rem; height: 1.8rem; padding: 0 .2rem; font-size: .75rem; }
  .pagination .gap { min-width: .8rem; padding: 0; }
}

/* ---------- footer: the night anchors the page ---------- */

.site-foot {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(1.1rem, 2.5vw, 1.8rem) 0 clamp(1rem, 2vw, 1.5rem);
  background: var(--night);
  color: #9aa1ac;
  font-size: .82rem;
}
.site-foot::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ochre-soft), transparent);
}
.site-foot .wrap {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem;
}
.site-foot .brand img { height: 2.6rem; width: auto; filter: invert(1) brightness(1.4); }
.site-foot .copy { margin-bottom: .4rem; }
.site-foot nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
@media (max-width: 640px) {
  .site-foot .brand img { height: 2.2rem; }
}
.site-foot a { color: #9aa1ac; }
.site-foot a:hover { color: var(--ochre-soft); }
.site-foot .socials { margin-top: 0; gap: .7rem; }
.site-foot .socials a {
  width: 2.4rem; height: 2.4rem;
  border-color: #2b3340; color: #aeb5c0; background: none;
}
.site-foot .socials a:hover { border-color: var(--ochre-soft); color: var(--ochre-soft); }
.site-foot .socials img { filter: invert(.8); }

/* ---------- lightbox (stays dark — viewing room) ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 12, 16, .97);
  display: none; place-items: center;
}
.lightbox.open { display: grid; }
.lightbox img {
  /* identical stage for every photo, with breathing room around it */
  width: 90vw; height: 88vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .35s cubic-bezier(.22, .8, .3, 1);
  touch-action: none;
}
.lightbox.zoomed { overflow: hidden; }
.lightbox.zoomed img { cursor: zoom-out; transition: transform .25s ease-out; }
.lightbox.zoomed .lb-prev, .lightbox.zoomed .lb-next { display: none; }
.lightbox button {
  position: absolute; z-index: 2;
  background: none; border: 0; color: #cfc9be;
  font-size: 2.2rem; cursor: pointer; padding: 1rem;
  transition: color .2s;
}
.lightbox button:hover { color: var(--ochre-soft); }
.lightbox .lb-close { top: .4rem; right: .9rem; }
.lightbox .lb-prev { left: .4rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: .4rem; top: 50%; transform: translateY(-50%); }

/* ---------- misc ---------- */

.center { text-align: center; }
.muted { color: var(--muted); }
.error-page { text-align: center; padding: 7rem var(--pad); }

::selection { background: var(--ochre); color: var(--paper); }
