/*
Theme Name: Anna Pashova — Editorial
Theme URI: https://annapashova.com/
Author: Codex
Description: A monochrome editorial portfolio theme for Anna Pashova.
Version: 1.0.0
Text Domain: annapashova-editorial
*/

:root {
  --ap-black: #080808;
  --ap-white: #f7f6f2;
  --ap-paper: #eceae4;
  --ap-grey: #9d9c98;
  --ap-line: rgba(8, 8, 8, 0.22);
  --ap-gutter: clamp(18px, 3vw, 48px);
  --ap-header: 72px;
  --ap-display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --ap-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ap-black);
  background: var(--ap-white);
  font-family: var(--ap-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--ap-header);
  padding: 0 var(--ap-gutter);
  color: var(--ap-white);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.54), transparent);
  transition: background .25s ease, color .25s ease;
}
.site-header.is-solid,
.page:not(.home) .site-header,
.single .site-header {
  color: var(--ap-black);
  background: rgba(247, 246, 242, 0.96);
  border-bottom: 1px solid var(--ap-line);
  backdrop-filter: blur(12px);
}
.site-brand {
  grid-column: 2;
  font-family: var(--ap-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.menu-toggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: 700 10px/1 var(--ap-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}
.header-contact {
  grid-column: 3;
  justify-self: end;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--ap-header) + 24px) var(--ap-gutter) 40px;
  color: var(--ap-white);
  background: var(--ap-black);
  opacity: 0;
  transition: opacity .25s ease, visibility .25s;
}
.site-menu.is-open { visibility: visible; opacity: 1; }
.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu li { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.site-menu a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0 6px;
  font-family: var(--ap-display);
  font-size: clamp(38px, 7.4vw, 116px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.site-menu a::after { content: "↗"; font: 400 14px/1 var(--ap-body); letter-spacing: 0; }
.site-menu-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  color: var(--ap-grey);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ap-white);
  background: var(--ap-black);
}
.hero-media { position: absolute; inset: 0; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.05) 50%, rgba(0,0,0,.68));
}
.hero-media img { height: 100%; object-fit: cover; object-position: center; filter: grayscale(1) contrast(1.08); }
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: calc(var(--ap-header) + 30px) var(--ap-gutter) 34px;
}
.hero-kicker,
.eyebrow {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .21em;
  text-transform: uppercase;
}
.hero-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--ap-display);
  font-size: clamp(66px, 14.4vw, 232px);
  font-weight: 800;
  line-height: .74;
  letter-spacing: -.085em;
  text-transform: uppercase;
}
.hero-title span:last-child { align-self: flex-end; }
.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.55);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: clamp(32px, 8vw, 140px);
  padding: clamp(84px, 12vw, 180px) var(--ap-gutter);
}
.statement h2 {
  max-width: 1100px;
  margin: 0;
  font-family: var(--ap-display);
  font-size: clamp(56px, 9.8vw, 154px);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.statement-copy { align-self: end; max-width: 430px; }
.statement-copy p { margin: 0 0 24px; }
.text-link {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.work-index { padding: 0 var(--ap-gutter) clamp(100px, 12vw, 180px); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--ap-black);
}
.section-head h2,
.section-head p { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 48px) 18px;
}
.work-card { grid-column: span 4; }
.work-card:nth-child(1) { grid-column: 1 / span 7; }
.work-card:nth-child(2) { grid-column: 9 / span 4; margin-top: 16vw; }
.work-card:nth-child(3) { grid-column: 2 / span 4; margin-top: 4vw; }
.work-card:nth-child(4) { grid-column: 7 / span 6; }
.work-card:nth-child(5) { grid-column: 4 / span 6; }
.work-card figure { margin: 0; overflow: hidden; background: #d8d7d2; }
.work-card img { aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); transition: filter .45s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.work-card.wide img { aspect-ratio: 16 / 10; }
.work-card:hover img { filter: grayscale(0); transform: scale(1.018); }
.work-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.work-card figcaption span:last-child { color: #74736f; }

.services {
  padding: clamp(80px, 10vw, 150px) var(--ap-gutter);
  color: var(--ap-white);
  background: var(--ap-black);
}
.services-title {
  margin: 0 0 clamp(50px, 8vw, 110px);
  font-family: var(--ap-display);
  font-size: clamp(58px, 11vw, 170px);
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.services-list { border-top: 1px solid rgba(255,255,255,.42); }
.service-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255,255,255,.25);
  font-size: 12px;
  text-transform: uppercase;
}
.service-row span:first-child { color: var(--ap-grey); font-size: 10px; letter-spacing: .16em; }

.contact-cta {
  display: flex;
  min-height: 66svh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(80px, 10vw, 150px) var(--ap-gutter) 36px;
}
.contact-cta h2 {
  max-width: 1200px;
  margin: 0;
  font-family: var(--ap-display);
  font-size: clamp(62px, 12.4vw, 190px);
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.contact-cta a { display: inline-block; border-bottom: .07em solid; }
.contact-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-meta span:last-child { text-align: right; }

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px var(--ap-gutter);
  color: var(--ap-grey);
  background: var(--ap-black);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-hero { padding: calc(var(--ap-header) + 70px) var(--ap-gutter) 36px; }
.page-title {
  max-width: 1300px;
  margin: 0;
  font-family: var(--ap-display);
  font-size: clamp(64px, 13vw, 200px);
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.page-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 var(--ap-gutter) 80px; }
.page-intro > *:last-child { max-width: 560px; }
.editorial-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; padding: 0 var(--ap-gutter) 120px; }
.gallery-item { grid-column: span 4; margin: 0; }
.gallery-item:nth-child(5n + 1) { grid-column: span 7; }
.gallery-item:nth-child(5n + 2) { grid-column: 9 / span 4; margin-top: 10vw; }
.gallery-item img { height: 100%; max-height: 900px; object-fit: cover; filter: grayscale(1); transition: filter .4s ease; }
.gallery-item:hover img { filter: grayscale(0); }
.gallery-item figcaption { padding-top: 8px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.prose { max-width: 900px; margin: 0 auto; padding: 150px var(--ap-gutter); font-size: clamp(18px, 2.2vw, 30px); }
.prose p { margin: 0 0 1.2em; }

@media (max-width: 760px) {
  :root { --ap-header: 62px; }
  .header-contact { display: none; }
  .site-header { grid-template-columns: 1fr auto 1fr; }
  .hero-title { font-size: clamp(57px, 21vw, 110px); line-height: .79; }
  .hero-foot { align-items: flex-end; }
  .hero-foot span:last-child { text-align: right; }
  .statement { grid-template-columns: 1fr; }
  .statement-copy { justify-self: end; width: 78%; }
  .work-grid { gap: 44px 10px; }
  .work-card:nth-child(n) { grid-column: span 6; margin-top: 0; }
  .work-card:nth-child(1), .work-card:nth-child(4), .work-card:nth-child(5) { grid-column: span 12; }
  .work-card:nth-child(2) { margin-top: 20vw; }
  .service-row { grid-template-columns: 1fr auto; }
  .service-row span:first-child { grid-column: 1 / -1; }
  .contact-meta { grid-template-columns: 1fr; }
  .contact-meta span:last-child { text-align: left; }
  .page-intro { grid-template-columns: 1fr; }
  .editorial-gallery { gap: 36px 10px; }
  .gallery-item:nth-child(n) { grid-column: span 6; margin-top: 0; }
  .gallery-item:nth-child(3n + 1) { grid-column: span 12; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
