/*
Theme Name: Olusegun Adejumo
Theme URI: https://olusegunadejumo.com
Author: Studio
Description: Custom theme for the official archive and studio site of Olusegun Adejumo.
Version: 1.0
Text Domain: olusegun
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-warm: #faf9f7;
  --ink: #111111;
  --ink-soft: #4a4a4a;
  --line: #e4e2de;
  --accent: #6b1f1f; /* muted oxblood — used sparingly, e.g. active nav state */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 144px;

  --max-width: 1440px;
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }

/* ==========================================================================
   TYPE SCALE
   ========================================================================== */
.type-hero {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.05;
}
.type-h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }
.type-h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.2; }
.type-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.full-bleed {
  width: 100%;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  mix-blend-mode: difference;
}
.site-header,
.site-header a,
.site-header .menu-toggle span {
  color: #fff;
}
.site-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
}

/* Primary nav — full screen overlay, revealed via [data-nav-open] on body */
.primary-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
body[data-nav-open] .primary-nav {
  opacity: 1;
  pointer-events: auto;
}
.primary-nav ul {
  text-align: center;
}
.primary-nav li {
  margin: var(--space-2) 0;
}
.primary-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--ink);
  transition: opacity 0.2s ease;
}
.primary-nav a:hover { opacity: 0.5; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.hero video,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  z-index: 1;
}
/* Dark gradient scrim so the caption stays legible over busy/light artwork */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.32) 32%, rgba(0,0,0,0) 62%);
  z-index: 2;
  pointer-events: none;
}
.hero-caption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  color: #fff;
  max-width: 640px;
  z-index: 3;
}
.hero-caption .type-eyebrow { color: rgba(255,255,255,0.7); margin-bottom: var(--space-1); }
.hero-caption h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
}
.section-head a {
  font-size: 0.85rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.intro-statement {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink);
}

/* Grid of works/exhibitions */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}
.grid-item figure { margin: 0; }
.grid-item img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  margin-bottom: var(--space-2);
}
.grid-item figcaption .work-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.grid-item figcaption .work-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   PAGE HEADER (inner pages)
   ========================================================================== */
.page-header {
  padding: var(--space-7) 0 var(--space-4);
}
.page-header .type-eyebrow { margin-bottom: var(--space-2); }
.page-header p.lede {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ==========================================================================
   BIOGRAPHY / CV
   ========================================================================== */
.cv-columns {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 900px) {
  .cv-columns { grid-template-columns: 1fr; gap: var(--space-4); }
}
.cv-block { margin-bottom: var(--space-5); }
.cv-block h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-1);
}
.cv-list { }
.cv-list .cv-row {
  display: flex;
  gap: var(--space-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.cv-list .cv-year {
  flex: 0 0 64px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.cv-list .cv-detail strong { font-weight: 500; }
.cv-list .cv-detail span.venue { color: var(--ink-soft); }

/* ==========================================================================
   EXHIBITIONS
   ========================================================================== */
.exhibition-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .exhibition-feature { grid-template-columns: 1fr; }
}
.exhibition-feature img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: cover;
}
.exhibition-feature .type-eyebrow { margin-bottom: var(--space-1); }

/* ==========================================================================
   FILTER BAR (The Work — medium filtering)
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.filter-btn {
  background: none;
  border: 1px solid var(--line);
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.filter-btn.active { color: var(--ink); border-color: var(--ink); }
.grid-item[hidden] { display: none; }

/* ==========================================================================
   CURATORIAL / CONTENT NOTE
   ========================================================================== */
.content-note {
  max-width: 680px;
  padding: var(--space-2) 0;
  margin-bottom: var(--space-4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.92rem;
}

/* ==========================================================================
   AVAILABILITY / STATUS TAGS
   ========================================================================== */
.availability-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}
.grid-item .inquire-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}
.contact-block { margin-bottom: var(--space-5); }
.contact-block h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-1);
}
.contact-block .email-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: inline-block;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.contact-block p { color: var(--ink-soft); }

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  padding: var(--space-5) 0 var(--space-4);
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
}
.site-footer .footer-links a {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 0.85rem;
}
.site-footer .footer-meta {
  font-size: 0.75rem;
  color: var(--ink-soft);
}
