/* ── BLACK CAT ARCHIVE — SHARED STYLES ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;500;600;700;800&family=Barlow:wght@300;400&family=IBM+Plex+Mono:wght@300;400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;1,8..60,300;1,8..60,400&display=swap');

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

:root { --transition: 0.35s cubic-bezier(0.4,0,0.2,1); }

[data-theme="dark"] {
  --bg:           #0C0C0C;
  --bg2:          #161616;
  --bg3:          #202020;
  --ink:          #EDEDED;
  --ink-60:       rgba(237,237,237,0.55);
  --ink-30:       rgba(237,237,237,0.28);
  --ink-12:       rgba(237,237,237,0.09);
  --accent:       #AAAAAA;
  --accent-dim:   rgba(170,170,170,0.10);
  --logo-filter:  invert(1);
}
[data-theme="light"] {
  --bg:           #F2F2F2;
  --bg2:          #FFFFFF;
  --bg3:          #E4E4E4;
  --ink:          #111111;
  --ink-60:       rgba(17,17,17,0.55);
  --ink-30:       rgba(17,17,17,0.3);
  --ink-12:       rgba(17,17,17,0.1);
  --accent:       #555555;
  --accent-dim:   rgba(85,85,85,0.08);
  --logo-filter:  none;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

/* ── NAV ──────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--ink-12);
  display: flex; align-items: center;
  padding: 0 60px;
  transition: background var(--transition), border-color var(--transition);
}
.nav-logo { display: flex; align-items: center; cursor: pointer; text-decoration: none; }
.nav-logo img { height: 28px; width: auto; filter: var(--logo-filter); transition: filter var(--transition); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-60); text-decoration: none; cursor: pointer;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--ink-12);
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  color: var(--ink); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--ink-30); background: var(--accent-dim); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--ink-12);
  padding: 32px 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 40px;
  transition: border-color var(--transition);
}
.footer-logo img { height: 20px; width: auto; filter: var(--logo-filter); opacity: 0.4; transition: filter var(--transition); }
.footer-divider { height: 1px; background: var(--ink-12); }
.footer-meta { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: var(--ink-30); letter-spacing: 0.1em; text-align: right; line-height: 2; }

/* ── MONO LABEL ───────────────────────────────────────── */
.mono { font-family: 'IBM Plex Mono', monospace; }
.serif { font-family: 'Source Serif 4', serif; }
.condensed { font-family: 'Barlow Condensed', sans-serif; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--ink-30);
  background: transparent; color: var(--ink-60);
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all 0.15s;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { opacity: 0.85; }

/* ── LIGHTBOX ─────────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.95);
  align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; display: block; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,0.5); letter-spacing: 0.08em;
  cursor: pointer; text-transform: uppercase; transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: 'IBM Plex Mono', monospace; font-size: 24px;
  color: rgba(255,255,255,0.4); cursor: pointer;
  padding: 20px; transition: color 0.2s; user-select: none;
}
.lightbox-nav:hover { color: #fff; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.1em;
}
.lightbox-caption {
  position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  color: rgba(255,255,255,0.5); letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ── LOADING STATE ────────────────────────────────────── */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 80px 40px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--ink-30); letter-spacing: 0.1em;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 800px) {
  nav { padding: 0 24px; }
  footer { padding: 24px; grid-template-columns: 1fr; gap: 12px; }
  .footer-meta { text-align: left; }
  .footer-divider { display: none; }
}

/* ── FOOTER SOCIAL ────────────────────────────────── */
.footer-social { display: flex; gap: 16px; justify-content: flex-end; margin-top: 4px; }
.footer-social a { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.1em; color: var(--ink-30); text-decoration: none; transition: color 0.2s; text-transform: uppercase; }
.footer-social a:hover { color: var(--ink); }

@media (max-width: 800px) {
  .footer-social { justify-content: flex-start; }
}
