/* Спокойный стиль: почти белый фон, один шрифт с засечками, мелкое меню,
   работы — единственное цветное пятно. Без анимаций. */

:root {
  --bg: #fbfbf9;
  --text: #1f1f1d;
  --muted: #6b6b66;
  --line: #e6e5e0;
  --link-hover: #000;
  --font: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --side: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --text-w: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

em { font-style: italic; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--bg); padding: 8px 12px; border: 1px solid var(--text);
}
.skip:focus { left: var(--side); z-index: 10; }

/* ---------- шапка ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 32px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--side) 0;
}
.brand { font-size: 17px; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.nav a { color: var(--muted); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- основное ---------- */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--side) 72px;
}

.page-title {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 40px;
}

.label {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin: 2.6em 0 0.8em;
}
.label:first-child { margin-top: 0; }

/* ---------- главная ---------- */
.home-figure { margin: 0 auto; max-width: 900px; }
.home-figure img {
  margin: 0 auto;
  max-height: 74vh;
  width: auto;
}
.home-figure a:hover { text-decoration: none; }
.home-figure figcaption { margin-top: 16px; font-size: 15px; text-align: center; }

.home-intro {
  max-width: var(--text-w);
  margin: clamp(56px, 9vw, 112px) auto 0;
  text-align: center;
}
.series-index { list-style: none; padding: 0; margin: 28px 0 0; }
.series-index li { margin: 6px 0; }

/* ---------- работы ---------- */
.jump {
  display: flex; flex-wrap: wrap; gap: 4px 22px;
  font-size: 15px; color: var(--muted);
  margin: -24px 0 24px;
}
.jump a { padding: 6px 0; }

.series { padding-top: 56px; scroll-margin-top: 16px; }
.series + .series { border-top: 1px solid var(--line); margin-top: 56px; }
.series-head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.series-head h2 { font-size: 22px; font-weight: 400; margin: 0; }
.series-text { max-width: var(--text-w); margin: 14px 0 0; }

.grid {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px clamp(24px, 4vw, 56px);
}
.grid a { display: block; }
.grid a:hover { text-decoration: none; }
.grid a:hover .cap em { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.thumb {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.cap { display: block; margin-top: 12px; font-size: 15px; text-align: center; }

/* ---------- одна работа ---------- */
.main--work { padding-top: 40px; }
.work-figure { margin: 0; }
.work-figure img {
  margin: 0 auto;
  max-height: 78vh;
  width: auto;
}
.work-info {
  max-width: var(--text-w);
  margin: 28px auto 0;
  font-size: 15px;
}
.caption { margin-bottom: 1em; }
.note { color: var(--text); }
.status { color: var(--muted); }
.enquire { color: var(--text); margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.work-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--muted);
}
.work-nav a { padding: 6px 0; }

/* ---------- выставки ---------- */
.ex-list { list-style: none; padding: 0; margin: 0; max-width: 52rem; }
.ex {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.ex p { margin: 0 0 2px; }
.ex-year { color: var(--muted); }
.ex-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.about:has(.portrait) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.about-text { max-width: var(--text-w); }
.portrait { margin: 0; }

/* ---------- cv ---------- */
.cv { max-width: 46rem; }
.cv-head { margin-bottom: 0; }
.cv-rows { list-style: none; padding: 0; margin: 0; }
.cv-rows li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0 24px; margin: 0 0 6px; }
.cv-year { color: var(--muted); }
.cv-pdf { margin-top: 48px; }

/* ---------- подвал ---------- */
.site-footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--side) 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer p { margin: 0 0 4px; }
.sep { margin: 0 10px; }

/* ---------- адаптивность ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  .about:has(.portrait) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header { padding-top: 20px; }
  .nav { gap: 2px 18px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .thumb { aspect-ratio: auto; }
  .thumb img { position: static; height: auto; }
  .ex, .cv-rows li { grid-template-columns: 4rem 1fr; gap: 0 14px; }
  .ex-views { grid-template-columns: minmax(0, 1fr); }
  .work-figure img { max-height: none; width: 100%; }
  .home-figure img { max-height: none; width: 100%; }
}

@media print {
  .site-header .nav, .site-footer, .work-nav, .jump { display: none; }
  body { background: #fff; }
}

/* длинные адреса почты переносятся на узких экранах */
.about-text a, .site-footer a, .cv a { overflow-wrap: anywhere; }
