/* Bagmutskiy — Real people / conversion proof
   Theme shell: global header + footer. This file styles custom main only. */

.bagmutskiy-terms .entry-header,
.bagmutskiy-terms-main .entry-header {
  display: none;
}

body.bagmutskiy-terms,
body.bagmutskiy-terms #page,
body.bagmutskiy-terms #content,
body.bagmutskiy-terms #primary,
body.bagmutskiy-terms .site-main,
body.bagmutskiy-terms .ast-container {
  background: #f4f2ee;
}

html:has(body.bagmutskiy-terms) {
  overflow-x: visible;
}

body.bagmutskiy-terms {
  overflow-x: visible;
}

body.bagmutskiy-terms footer,
body.bagmutskiy-terms #colophon {
  overflow-x: clip;
}

.bagmutskiy-terms #primary,
.bagmutskiy-terms-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.real-people {
  --paper: #f4f2ee;
  --paper-2: #ece9e3;
  --ink: #1a1916;
  --muted: #5c5a55;
  --line: #d9d4cb;
  --accent: #1a3a32;
  --header-offset: 5rem;
  --measure: 38rem;
  --wide: 72rem;
  --hero: 86rem;
  background: var(--paper);
  color: var(--ink);
  font-family: "Graphik", "Graphik Compact", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.58;
  padding: 1.1rem 0 4.5rem;
  overflow-wrap: break-word;
}

@media (min-width: 921px) {
  .real-people {
    --header-offset: 6.25rem;
  }
}

.real-people *,
.real-people *::before,
.real-people *::after {
  box-sizing: border-box;
}

.real-people :where(h1, h2, h3, p, ul, ol, figure, blockquote) {
  margin: 0;
}

.real-people a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(26, 25, 22, 0.28);
}

.real-people a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.real-people a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.real-people img {
  display: block;
  max-width: 100%;
  height: auto;
}

.real-people [id] {
  scroll-margin-top: calc(var(--header-offset) + 0.6rem);
}

.rp-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.real-people h1,
.real-people h2 {
  font-family: "Graphik Compact", "Graphik", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.real-people h1 {
  font-size: clamp(2.15rem, 5vw, 3.7rem);
  max-width: 16ch;
}

.real-people h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.real-people h3 {
  font-family: "Graphik Compact", "Graphik", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.rp-open {
  max-width: var(--hero);
  margin: 0 auto 3.75rem;
  padding: 0.35rem 1.25rem 0;
}

.rp-hero {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
}

.rp-lead {
  margin-top: 1rem;
  color: var(--ink);
  max-width: 36rem;
}

.rp-featured {
  max-width: var(--hero);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.rp-open .shot--work img {
  max-height: 72vh;
}

@media (min-width: 900px) {
  .rp-open {
    display: grid;
    grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr);
    gap: 1.25rem 2.4rem;
    align-items: start;
    margin-bottom: 3.5rem;
  }

  .rp-open .rp-hero {
    margin: 0;
    padding-top: 0.2rem;
  }

  .rp-open .person--hero {
    margin: 0;
  }
}

.person {
  margin: 0 0 3.25rem;
}

.person--hero {
  margin-bottom: 3.75rem;
}

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.05fr);
  gap: 0.55rem 0.7rem;
  align-items: start;
}

.shot figcaption {
  margin-top: 0.4rem;
}

.shot-label {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  padding: 0.18rem 0.42rem;
}

.shot img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--paper-2);
}

.crop-face {
  object-position: 50% 12%;
}

.crop-scene {
  object-position: 50% 28%;
}

.crop-ina {
  object-position: 50% 68%;
}

.crop-sveta {
  object-position: 50% 16%;
}

.crop-minira {
  object-position: 50% 24%;
}

#denis .crop-face,
#kristina .crop-face,
#anastasia .crop-face,
#yulya .crop-face,
#alyona .crop-face {
  object-position: 50% 8%;
}

#oleg .crop-scene {
  object-position: 50% 22%;
}

.person-copy {
  margin-top: 0.9rem;
  max-width: 34rem;
}

.person-copy p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.person-link {
  margin-top: 0.45rem;
}

.rp-mid {
  max-width: var(--hero);
  margin: -0.5rem auto 2.75rem;
  padding: 0 1.25rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.rp-more {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem 0.5rem;
}

.rp-more > h2 {
  margin-bottom: 1.5rem;
}

.rp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem 1.5rem;
}

.rp-grid .person {
  margin: 0;
}

.rp-grid .pair {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
}

.rp-grid .person-copy {
  margin-top: 0.7rem;
}

.rp-grid h3 {
  font-size: 1.18rem;
}

.rp-next {
  max-width: var(--wide);
  margin: 3.25rem auto 0;
  padding: 2.25rem 1.25rem 0;
  border-top: 1px solid var(--line);
}

.rp-next p {
  margin-top: 0.55rem;
  color: var(--muted);
  max-width: 32rem;
}

.rp-next ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin-top: 0.95rem;
}

.rp-next a {
  font-size: 1.05rem;
}

@media (max-width: 960px) {
  .rp-grid {
    grid-template-columns: 1fr;
    max-width: 42rem;
  }

  .rp-grid .pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

@media (max-width: 700px) {
  .real-people {
    font-size: 1.05rem;
    padding-top: 0.35rem;
  }

  .rp-open {
    margin-bottom: 2.4rem;
    padding-top: 0;
  }

  .rp-hero {
    margin-bottom: 1.1rem;
  }

  .real-people h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.35rem);
  }

  .rp-lead {
    margin-top: 0.75rem;
    font-size: 1.02rem;
  }

  .person,
  .person--hero {
    margin-bottom: 2.4rem;
  }

  .pair,
  .rp-grid .pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
  }

  .shot-label {
    font-size: 0.62rem;
  }
}

@media (max-width: 360px) {
  .pair,
  .rp-grid .pair {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 2.05fr);
    gap: 0.4rem;
  }
}

@media (max-width: 320px) {
  .real-people {
    overflow-x: clip;
  }

  .rp-open,
  .rp-featured,
  .rp-more,
  .rp-mid,
  .rp-next {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .real-people * {
    animation: none !important;
    transition: none !important;
  }
}
