@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=DM+Mono:wght@300;400&display=swap');

:root {
  --bg:         #0a0a0a;
  --surface:    #111111;
  --border:     #1e1e1e;
  --text:       #e8e4df;
  --muted:      #5a5550;
  --accent:     #c4a882;
  --accent-dim: #7a6a55;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  line-height: 1.6;
  cursor: none;
}

/* ── Cursor ── */
.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot  { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.cursor-ring { width: 30px; height: 30px; border: 1px solid var(--accent-dim); border-radius: 50%; transition: width .2s, height .2s; }

/* ── Navigation ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(to bottom, rgba(10,10,10,.9), transparent);
  backdrop-filter: blur(4px);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 400; letter-spacing: .3em;
  color: var(--accent); text-decoration: none;
}
.nav-links {
  display: flex; align-items: center; gap: 1rem;
  font-size: .75rem; letter-spacing: .15em;
}
.nav-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-sep { color: var(--border); }
.nav-lock { opacity: .45; transition: opacity .2s; }
.nav-lock:hover { opacity: .8; }

/* ── Scroll fade-in ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── Gallery grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.gallery-item { aspect-ratio: 1; overflow: hidden; cursor: pointer; background: var(--surface); }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .85; transition: transform .4s ease, opacity .3s ease;
}
.gallery-item:hover img { transform: scale(1.04); opacity: 1; }

/* ── Filter bar ── */
.filter-bar {
  padding: 1rem 2rem; border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 65px; z-index: 50;
}
.filter-axes, .filter-values { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-axes { margin-bottom: .6rem; }
.filter-values { min-height: 2rem; }
.filter-btn {
  background: none; border: 1px solid var(--border); color: var(--muted);
  font-family: 'DM Mono', monospace; font-size: .7rem; letter-spacing: .1em;
  padding: .3rem .8rem; cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--accent-dim); color: var(--text); }
.filter-btn.active { border-color: var(--accent); color: var(--accent); }

/* ── Modal ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92); z-index: 200;
  align-items: center; justify-content: center; padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal-img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.modal-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none; color: var(--muted);
  font-size: 1.5rem; cursor: pointer; transition: color .2s;
}
.modal-close:hover { color: var(--text); }

/* ── Auth page ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-form { width: 100%; max-width: 320px; text-align: center; }
.auth-form h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300;
  letter-spacing: .3em; color: var(--accent); margin-bottom: 2rem;
}
.auth-input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: 'DM Mono', monospace; font-size: 1rem;
  padding: .8rem 1rem; margin-bottom: 1rem; outline: none; transition: border-color .2s;
}
.auth-input:focus { border-color: var(--accent-dim); }
.auth-btn {
  width: 100%; background: none; border: 1px solid var(--accent-dim);
  color: var(--accent); font-family: 'DM Mono', monospace;
  font-size: .8rem; letter-spacing: .2em; padding: .8rem; cursor: pointer; transition: all .2s;
}
.auth-btn:hover { background: var(--accent); color: var(--bg); }
.auth-error { color: #c47a7a; font-size: .75rem; margin-top: .75rem; min-height: 1rem; }

/* ── Admin ── */
.admin-wrap { max-width: 960px; margin: 100px auto 4rem; padding: 0 2rem; }
.admin-section {
  background: var(--surface); border: 1px solid var(--border);
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.admin-section h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 400;
  letter-spacing: .2em; color: var(--accent); margin-bottom: 1.25rem;
}
.admin-textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-family: 'DM Mono', monospace; font-size: .75rem;
  padding: .8rem; resize: vertical; outline: none; min-height: 160px;
}
.admin-textarea:focus { border-color: var(--accent-dim); }
.admin-file { display: block; margin: .75rem 0; color: var(--muted); font-size: .8rem; }
.admin-btn {
  background: none; border: 1px solid var(--accent-dim); color: var(--accent);
  font-family: 'DM Mono', monospace; font-size: .75rem; letter-spacing: .15em;
  padding: .6rem 1.5rem; cursor: pointer; transition: all .2s; margin-top: .5rem;
}
.admin-btn:hover { background: var(--accent); color: var(--bg); }
.admin-btn:disabled { opacity: .4; cursor: not-allowed; }
.admin-status { font-size: .75rem; margin-top: .75rem; min-height: 1rem; color: var(--muted); }
.admin-status.ok  { color: #7ac47a; }
.admin-status.err { color: #c47a7a; }

.admin-img-list { display: grid; gap: 1rem; }
.admin-img-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem; background: var(--bg); border: 1px solid var(--border);
}
.admin-thumb { width: 72px; height: 72px; object-fit: cover; flex-shrink: 0; }
.admin-meta { flex: 1; font-size: .75rem; }
.admin-filename { color: var(--accent); margin-bottom: .25rem; }
.admin-tags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .5rem; }
.tag-pill {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: .65rem; padding: .15rem .5rem; letter-spacing: .05em;
}
.tag-pill.new { border-color: #c4a830; color: #c4a830; }

/* ── LYRA page ── */
.lyra-hero { height: 100vh; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4rem; }
.lyra-hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 18vw, 14rem); font-weight: 300;
  letter-spacing: .4em; color: var(--accent); opacity: .92; line-height: 1;
}
.lyra-section { max-width: 680px; margin: 0 auto; padding: 6rem 2rem; }
.lyra-catch {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300;
  letter-spacing: .15em; color: var(--accent); margin-bottom: 2.5rem;
}
.lyra-body { font-size: .85rem; letter-spacing: .05em; color: var(--muted); line-height: 2; }
.lyra-cuts { columns: 2; gap: 2px; margin: 4rem 0; }
.lyra-cuts img { width: 100%; display: block; margin-bottom: 2px; break-inside: avoid; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { padding: 1rem 1.25rem; }
  .admin-wrap { margin-top: 80px; }
  .lyra-cuts { columns: 1; }
}
