/* Bagmutskiy — About / editorial profile
   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;
}

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

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

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

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

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

.about img,
.about video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

.about h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
}

.about h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: end;
  max-width: var(--hero);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.25rem;
}

.about-hero__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 8% 42%;
}

.about-hero__copy p + p {
  margin-top: 1.05rem;
}

.about-hero__copy > p:last-child {
  margin-top: 1.35rem;
  max-width: 36rem;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 38.5rem);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  max-width: var(--wide);
  margin: 0 auto 4.5rem;
  padding: 0 1.25rem;
}

.about-intro__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 42% 20%;
}

.about-intro .about-prose p + p {
  margin-top: 1.1rem;
}

.about .said {
  display: block;
  font-family: "Graphik", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.28rem, 2.1vw, 1.62rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0.4em 0 0.55em;
  max-width: 28ch;
}

.about-facts {
  background: var(--paper-2);
  padding: 3.5rem 1.25rem 4rem;
  margin: 0 0 4.25rem;
}

.about-facts__inner {
  max-width: var(--wide);
  margin: 0 auto;
}

.about-facts h2 {
  margin-bottom: 2rem;
}

.about-facts ol {
  list-style: none;
  counter-reset: fact;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 3.5rem;
  padding: 0;
}

.about-facts li {
  counter-increment: fact;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.85rem;
  align-items: start;
  max-width: 28rem;
}

.about-facts li::before {
  content: counter(fact);
  font-family: "Graphik", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 2.35rem;
  line-height: 0.9;
  font-weight: 500;
  color: var(--ink);
}

.about-story {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.about-story > h2 {
  max-width: var(--measure);
  margin-bottom: 1.75rem;
}

.about-prose {
  max-width: var(--measure);
}

.about-prose p + p {
  margin-top: 1.15rem;
}

.about-beat {
  margin-bottom: 2.75rem;
}

.about-beat--essay {
  margin-top: 0.5rem;
  margin-bottom: 3.25rem;
}

.about-beat--split,
.about-beat--strong,
.about-beat--moscow {
  display: grid;
  align-items: start;
  gap: 1.75rem 3rem;
}

.about-beat--split {
  grid-template-columns: minmax(0, var(--measure)) minmax(14rem, 28rem);
}

.about-beat--strong {
  grid-template-columns: minmax(0, 34rem) minmax(18rem, 1fr);
}

.about-beat--moscow {
  grid-template-columns: minmax(0, var(--measure)) minmax(12rem, 22rem);
  align-items: end;
}

.about-beat--split .about-prose,
.about-beat--strong .about-prose,
.about-beat--moscow .about-prose {
  max-width: none;
}

.about-fig img {
  width: 100%;
}

.about-fig--camera img,
.about-fig--smoke img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-fig--archive {
  max-width: 22rem;
  justify-self: end;
}

.about-fig--archive img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 22%;
}

.about-fig--city {
  max-width: 52rem;
  margin-top: 2rem;
}

.about-fig--city img {
  aspect-ratio: 1;
  object-fit: cover;
}

.about-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0.25rem 0 2.75rem;
}

.about-spread img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.about-spread img:last-child {
  object-position: 50% 20%;
}

.about-video {
  max-width: var(--wide);
  margin: 4.5rem auto 0;
  padding: 0 1.25rem;
}

.about-video h2 {
  max-width: 22rem;
  margin-bottom: 1.1rem;
}

.about-video__copy {
  max-width: var(--measure);
  margin-bottom: 1.5rem;
}

.about-video__copy p + p {
  margin-top: 0.35rem;
}

.about-video__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 14rem);
  gap: 1rem;
  align-items: start;
}

.about-video video {
  width: 100%;
  background: #111;
}

.about-video__still img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 30%;
}

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

.about-next h2 {
  font-size: 1.15rem;
  margin-bottom: 1.15rem;
}

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

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

.about-next__quiet {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .about-hero,
  .about-intro,
  .about-video__stage,
  .about-beat--split,
  .about-beat--strong,
  .about-beat--moscow {
    grid-template-columns: 1fr;
  }

  .about-hero {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }

  .about-facts ol {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .about-fig--archive {
    justify-self: start;
    max-width: 18rem;
  }

  .about-fig--city {
    max-width: none;
  }

  .about-video__still {
    max-width: 14rem;
  }
}

@media (max-width: 768px) {
  .about-beat--split,
  .about-beat--strong,
  .about-beat--moscow {
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .about {
    font-size: 1.0625rem;
    line-height: 1.6;
  }

  .about-hero__media img {
    aspect-ratio: 1;
    object-position: 6% 38%;
  }

  .about .said {
    max-width: 32ch;
    font-size: 1.22rem;
  }

  .about-fig--camera,
  .about-fig--smoke,
  .about-fig--city,
  .about-spread {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }

  .about-fig--archive {
    margin-left: 0;
    margin-right: 0;
    max-width: 16rem;
  }

  .about-intro__media img,
  .about-fig--camera img,
  .about-fig--smoke img,
  .about-spread img {
    border-radius: 0;
  }
}

@media (max-width: 560px) {
  .about-spread {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

@media (max-width: 430px) and (max-height: 500px) {
  .about-hero__media img {
    aspect-ratio: 16 / 9;
    object-position: 10% 38%;
  }
}

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