/* David Akio Grant — Events Portfolio
   Light, minimal, gallery-first. Mirrors davidakiogrant.com.
*/

:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #8a8a8a;
  --rule: #e6e4df;
  --accent: #1a1a1a;
  --max: 1440px;
  --gap: 12px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
}

/* Small tracked labels (wordmark, eyebrows, nav) stay in a sans — high-contrast
   serifs look strange in tiny uppercase */
.wordmark, .wordmark small, .nav-links, .eyebrow,
.contact-details dt, .foot, .go, .card-label p,
.lb-counter {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 160ms ease; }
a:hover { border-bottom-color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 14px var(--pad);
  }
  .nav-links { gap: 18px; font-size: 12px; letter-spacing: 0.06em; }
  .wordmark { font-size: 14px; }
  .wordmark small { font-size: 9px; }
}
.wordmark {
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500;
}
.wordmark a { border-bottom: none; }
.wordmark small {
  display: block; font-size: 10px; letter-spacing: 0.22em;
  color: var(--ink-mute); font-weight: 400; margin-top: 2px;
}
.nav-links {
  display: flex; gap: 26px; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a { padding: 4px 0; }
.nav-links a.current { border-bottom: 1px solid var(--ink); }

/* ---------- HERO (landing) ---------- */
.hero {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  overflow: hidden;
  background: #eee;
}
@media (max-width: 640px) {
  .hero { aspect-ratio: 4 / 5; max-height: 82vh; }
}
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; }
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--pad);
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}
.hero-caption h1 {
  margin: 0; font-size: clamp(28px, 5vw, 56px); font-weight: 400;
  letter-spacing: -0.01em; line-height: 1.05;
}
.hero-caption p {
  margin: 12px 0 0; font-size: clamp(14px, 1.4vw, 17px);
  max-width: 640px; opacity: 0.92; font-weight: 400;
}

/* ---------- INTRO STRIP ---------- */
.intro {
  max-width: 820px; margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--pad);
  text-align: center;
}
.intro .eyebrow {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 20px;
}
.intro p {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6;
  color: var(--ink-soft); margin: 0;
}
.intro p a, .contact p a {
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.intro p a:hover, .contact p a:hover {
  border-bottom-color: var(--ink);
}

/* ---------- CATEGORY CARDS (landing) ---------- */
.cards {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad) clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px);
}
.card {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eee;
  border: none;
}
.card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover img { transform: scale(1.04); }
.card:hover { border-bottom: none; }
.card-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: clamp(20px, 3vw, 36px);
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 45%, rgba(0,0,0,0) 70%);
}
.card-label h2 {
  margin: 0; font-size: clamp(22px, 2.6vw, 34px); font-weight: 400;
  letter-spacing: -0.005em; line-height: 1.1;
}
.card-label p {
  margin: 8px 0 0; font-size: 13px; letter-spacing: 0.02em; opacity: 0.92;
  font-weight: 400;
}
.card-label .go {
  margin-top: 14px; font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; opacity: 0.88;
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 3 / 4; }
}

/* ---------- CATEGORY PAGE HEADER ---------- */
.cat-header {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad) clamp(24px, 4vw, 40px);
}
.cat-header .eyebrow {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 14px;
}
.cat-header h1 {
  margin: 0 0 14px; font-size: clamp(28px, 4vw, 46px);
  font-weight: 400; letter-spacing: -0.01em; line-height: 1.05;
}
.cat-header p {
  margin: 0; font-size: clamp(15px, 1.3vw, 17px);
  color: var(--ink-soft); max-width: 680px; line-height: 1.6;
}

/* ---------- 3-COLUMN GALLERY (explicit control) ---------- */
.gallery {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
}
.gallery .col {
  display: flex; flex-direction: column; gap: var(--gap);
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
}
.gallery figure {
  margin: 0;
  cursor: zoom-in; background: #f0efec;
  overflow: hidden;
}
.gallery img {
  width: 100%; height: auto; display: block;
  transition: opacity 300ms ease;
}
.gallery img:hover { opacity: 0.92; }

/* ---------- LIGHTBOX ---------- */
.lb {
  position: fixed; inset: 0;
  background: rgba(15, 15, 15, 0.96);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lb.open { display: flex; }
.lb-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  user-select: none;
  -webkit-user-drag: none;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; opacity: 0.7; font-size: 40px;
  padding: 8px 16px; line-height: 1; cursor: pointer;
  transition: opacity 160ms ease; font-weight: 200;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 24px; right: 24px; transform: none; font-size: 32px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; opacity: 0.6; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
}

/* ---------- CONTACT BLOCK ---------- */
.contact {
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
}
.contact-inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--pad);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contact h2 {
  margin: 0 0 16px; font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400; letter-spacing: -0.005em;
}
.contact p {
  margin: 0 0 12px; font-size: 15px; color: var(--ink-soft); line-height: 1.65;
  max-width: 560px;
}
.contact-details {
  font-size: 14px;
}
.contact-details dl { margin: 0; }
.contact-details dt {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: 18px;
}
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd { margin: 6px 0 0; font-size: 15px; }
.contact-details a { border-bottom: 1px solid var(--rule); }
.contact-details a:hover { border-bottom-color: var(--ink); }
@media (max-width: 720px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.foot {
  border-top: 1px solid var(--rule);
  padding: 28px var(--pad);
  font-size: 12px; color: var(--ink-mute);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  max-width: var(--max); margin: 0 auto;
}
.foot a { color: var(--ink-mute); }
.foot a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- MISC ---------- */
.back-link {
  display: inline-block; margin-top: 24px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
}
.back-link:hover { color: var(--ink); }
