/* ============================================================
   Adoyo Stacey — dark editorial portfolio
   Palette: near-black surfaces, warm ivory text, champagne accent
   Type: Playfair Display (display) + Inter (body)
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --surface: #131315;
  --text: #f4f1ea;
  --text-muted: #a6a29a;
  --accent: #c9a96a;
  --border: rgba(244, 241, 234, 0.14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.icon { width: 20px; height: 20px; }

/* ---------- utilities ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #0b0b0c;
  padding: 10px 18px;
  font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

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

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  text-align: center;
  display: grid;
  gap: 14px;
  margin-bottom: 48px;
}
.section-head--left { text-align: left; }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0.01em;
}
.section-title--serif em {
  font-style: italic;
  color: var(--accent);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--accent);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--primary { background: var(--accent); color: #131008; }
.btn--primary:hover { background: #dfc188; border-color: #dfc188; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  text-decoration: none;
  letter-spacing: 0.06em;
}
.nav__brand span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  list-style: none;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a.nav__cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0 18px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav__links a.nav__cta:hover { background: var(--accent); color: #131008; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 40px) clamp(20px, 5vw, 72px) 64px;
  max-width: 1360px;
  margin: 0 auto;
}

.hero__text { display: grid; gap: 26px; justify-items: start; }

.hero__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line--italic {
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--accent);
  padding-left: clamp(24px, 5vw, 96px);
}

.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.hero__rule { width: 48px; height: 1px; background: var(--accent); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__figure {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
}
.hero__figure img {
  width: 100%;
  aspect-ratio: 11 / 14;
  object-fit: cover;
  border: 1px solid var(--border);
}
.hero__figcaption {
  position: absolute;
  right: -14px;
  bottom: 40px;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- gallery ---------- */

.work {
  padding: 96px clamp(20px, 5vw, 72px);
  max-width: 1360px;
  margin: 0 auto;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}

.filter-btn {
  min-height: 44px;
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #131008;
}

.gallery {
  columns: 3 300px;
  column-gap: 20px;
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
}
.gallery__item img {
  width: 100%;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.03); }

.gallery__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 48px 16px 14px;
  background: linear-gradient(to top, rgba(11, 11, 12, 0.85), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gallery__item:hover .gallery__overlay,
.gallery__item:focus-visible .gallery__overlay { opacity: 1; }

.gallery__caption {
  font-size: 13px;
  color: var(--text);
  text-align: left;
}
.gallery__tag {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.gallery__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  padding: 96px clamp(20px, 5vw, 72px);
  max-width: 1360px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
}

.about__body { display: grid; gap: 28px; }

.about__bio {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 56ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
.stats > div {
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}
.stats dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.stats dd {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}

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

.contact {
  padding: 112px clamp(20px, 5vw, 72px) 128px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border);
}
.contact .section-head { margin-bottom: 22px; }
.contact__lede {
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 40px;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.footer__admin {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.footer__admin:hover { color: var(--accent); }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(8, 8, 9, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox[hidden] { display: none; }

.lightbox__figure {
  max-width: min(1000px, 88vw);
  max-height: 88dvh;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(88dvh - 48px);
  object-fit: contain;
  border: 1px solid var(--border);
}
.lightbox__figure figcaption {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.lightbox__close,
.lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(19, 19, 21, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 48px);
  }
  .hero__figure { justify-self: start; width: min(100%, 420px); }
  .about { grid-template-columns: 1fr; }
  .about__figure { max-width: 420px; }
}

@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; } /* keep brand + Book Me on small screens */
  .gallery { columns: 2 160px; column-gap: 12px; }
  .gallery__item { margin-bottom: 12px; }
  .lightbox__nav { position: fixed; bottom: 20px; }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
}

/* ---------- motion preferences ---------- */

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