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

@font-face {
  font-family: 'General Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('https://lumi.ektothemes.com/assets/fonts/general-sans.woff2?v=SdP70vG8yYUNjZOc') format('woff2');
}

@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/dmserifdisplay/v16/-nFnOHM81r4j6k0gjAW3mujVU2B2K_Q.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --bg-soft: #f8f7f4;
  --text: #1a1a1a;
  --text-secondary: #777673;
  --text-tertiary: #a5a4a0;
  --border: #e8e6e1;
  --site-width: 1200px;
  --media-width: 1020px;
  --article-width: 660px;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: var(--site-width);
  height: 72px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-left, .nav-right { display: flex; align-items: center; gap: 28px; }
.nav-left { gap: 12px; }
.nav-right { justify-content: flex-end; }
.nav-logo { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.7rem; font-weight: 400; letter-spacing: -.01em; white-space: nowrap; }
.nav-social, .mobile-social-bar .nav-social { display: inline-flex; align-items: center; justify-content: center; color: var(--text); transition: color .2s; }
.nav-social:hover, .mobile-social-bar .nav-social:hover { color: var(--text-secondary); }
.nav-social svg { width: 18px; height: 18px; }

.nav-search { position: relative; width: 220px; }
.nav-search svg { position: absolute; top: 50%; left: 12px; width: 15px; height: 15px; color: var(--text-tertiary); transform: translateY(-50%); pointer-events: none; }
.nav-search input { width: 100%; height: 38px; padding: 0 14px 0 38px; border: 1px solid var(--border); border-radius: 8px; outline: none; background: var(--bg); color: var(--text); font-size: .86rem; transition: border-color .2s; }
.nav-search input::placeholder { color: var(--text-tertiary); }
.nav-search input:focus { border-color: var(--text); }
.mobile-social-bar { display: none; }

.site-menu {
  position: fixed;
  top: 73px;
  right: 0;
  left: 0;
  z-index: 98;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-menu-inner { max-width: var(--site-width); margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: center; gap: 30px; }
.site-menu a { color: var(--text-secondary); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.site-menu a:hover, .site-menu a.active { color: var(--text); }

.article-shell { padding: 144px 32px 0; }
.article-header { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.article-title { margin-bottom: 22px; font-size: clamp(2.3rem, 5vw, 3.65rem); font-weight: 440; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.article-deck { max-width: 620px; margin: 0 auto; color: var(--text-secondary); font-size: 1.02rem; line-height: 1.7; }
.article-meta { margin-top: 24px; color: var(--text-tertiary); font-size: .82rem; }

.article-hero, .article-figure-wide, .image-pair { max-width: var(--media-width); margin-right: auto; margin-left: auto; }
.article-hero { margin-bottom: 76px; }
.article-figure-wide, .image-pair { margin-top: 72px; margin-bottom: 72px; }
.article-hero img, .article-figure-wide img, .image-pair img { width: 100%; height: auto; border-radius: 8px; background: var(--bg-soft); }
.article-hero img { object-position: center; }
.article-hero--landscape img { aspect-ratio: 16 / 10; object-fit: cover; }
.article-hero--focus-bottom img { object-position: center bottom; }
figcaption { margin-top: 12px; color: var(--text-tertiary); font-size: .78rem; line-height: 1.5; }
figcaption a { text-decoration: underline; text-decoration-color: rgba(38,37,32,.25); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
figcaption a:hover { color: var(--text-secondary); text-decoration-color: currentColor; }
.image-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.image-pair img { aspect-ratio: 2 / 3; height: 100%; object-fit: cover; }
.image-pair figcaption { grid-column: 1 / -1; margin-top: -12px; }
.article-figure-portrait { max-width: var(--article-width); }

.article-content { max-width: var(--article-width); margin: 0 auto; }
.article-content p { margin-bottom: 28px; color: var(--text); font-size: 1rem; line-height: 1.78; }
.article-content .lead { font-size: 1.12rem; line-height: 1.75; }
.article-content a, .project-credits a { text-decoration: underline; text-decoration-color: rgba(38,37,32,.35); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-content h2 { margin: 72px 0 18px; font-size: clamp(1.55rem, 3vw, 1.95rem); font-weight: 480; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }

.project-credits { max-width: var(--article-width); margin: 88px auto 0; padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.project-credits h2 { margin-bottom: 24px; color: var(--text-secondary); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.project-credits dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 24px; font-size: .92rem; line-height: 1.6; }
.project-credits dt { color: var(--text-tertiary); }
.project-credits dd { margin: 0; }

.related { max-width: var(--site-width); margin: 120px auto 0; padding: 64px 32px 72px; border-top: 1px solid var(--border); }
.related-label { margin-bottom: 28px; color: var(--text-secondary); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.related-card { display: block; }
.related-card img { width: 100%; aspect-ratio: 4 / 5; height: min(34vw, 420px); margin-bottom: 16px; border-radius: 8px; object-fit: cover; }
.related-card h3 { font-size: 1.05rem; font-weight: 480; line-height: 1.35; letter-spacing: -.01em; }

@media (max-width: 768px) {
  .nav-inner { display: flex; height: 72px; padding: 0 20px; justify-content: center; }
  .nav-left, .nav-right { display: none; }
  .mobile-social-bar { position: fixed; top: 73px; right: 0; left: 0; z-index: 99; display: flex; align-items: center; gap: 18px; padding: 14px 20px; background: rgba(255,255,255,.94); }
  .mobile-social-bar .nav-search { flex: 0 1 220px; min-width: 0; margin-left: auto; }
  .mobile-social-bar .nav-search input { height: 36px; font-size: .84rem; }
  .site-menu { top: 137px; }
  .site-menu-inner { padding: 11px 20px; justify-content: flex-start; gap: 24px; overflow-x: auto; }
  .site-menu a { white-space: nowrap; font-size: .74rem; }
  .article-shell { padding: 196px 20px 0; }
  .article-header { margin-bottom: 48px; text-align: left; }
  .article-title { font-size: clamp(2rem, 11vw, 2.85rem); }
  .article-deck { margin: 0; }
  .article-hero { margin-bottom: 56px; }
  .image-pair { grid-template-columns: 1fr; gap: 20px; margin-top: 56px; margin-bottom: 56px; }
  .image-pair img { aspect-ratio: 2 / 3; height: auto; object-fit: cover; }
  .image-pair figcaption { grid-column: auto; margin-top: -8px; }
  .related { margin-top: 84px; padding: 48px 20px 56px; }
  .related-grid { grid-template-columns: 1fr; gap: 36px; }
  .related-card img { height: min(62.5vw, 320px); }
}

@media (max-width: 390px) {
  .nav-logo { font-size: 1.35rem; }
  .mobile-social-bar .nav-search { flex-basis: 200px; }
}

@media (max-width: 340px) {
  .nav-logo { font-size: 1.2rem; }
  .mobile-social-bar { gap: 14px; padding-right: 16px; padding-left: 16px; }
  .mobile-social-bar .nav-search { flex-basis: 176px; }
}
