/* DARKROOM — public styles
   Palette: the red is a darkroom safelight, used sparingly and only where it
   means something (active state, focus, the safelight strip). */
:root {
  --black:      #070707;
  --panel:      #111113;
  --line:       #232326;
  --text:       #e8e6e3;
  --text-dim:   #8d8a86;
  --safelight:  #e0312f;   /* accent red */
  --safelight-dim: #7a1a1a;
  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--line) var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--safelight); outline-offset: 3px; }
img { display: block; max-width: 100%; }

/* ---------------------------------------------------------- masthead */
.masthead {
  text-align: center;
  padding: 1.8rem 1rem .9rem;
}
.logo { display: inline-block; }
.logo img {
  display: block;
  margin: 0 auto;
  max-height: clamp(90px, 14vw, 150px);
  max-width: min(80vw, 560px);
  width: auto;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tagline {
  margin: .5rem 0 0;
  color: var(--text-dim);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------- top bar */
.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
/* the safelight strip — a thin red rule that marks the working area */
.topbar::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: var(--safelight);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .25rem;
}
.nav-group { display: flex; }
.nav > a, .nav-group > a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.nav a {
  padding: .85rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); border-bottom-color: var(--safelight); }

/* dropdown groups */
.nav-group { position: relative; }
.nav .ext { font-size: .7em; opacity: .6; }
.caret { font-size: .65em; opacity: .7; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--safelight);
  display: none;
  flex-direction: column;
  z-index: 50;
  box-shadow: 0 12px 28px rgba(0,0,0,.55);
}
.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown { display: flex; }
.dropdown a {
  padding: .6rem .9rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: none;
  margin: 0;
}
.dropdown a:hover { color: var(--text); background: rgba(224,49,47,.08); }
.dropdown a.active { color: var(--safelight); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.socials a {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
  transition: color .15s, transform .15s;
}
.socials a svg { width: 18px; height: 18px; display: block; }
.socials a:hover { color: var(--safelight); transform: translateY(-1px); }

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: .6rem; }
  .dropdown {
    display: flex;
    position: static;
    border: none;
    box-shadow: none;
    background: none;
    padding-left: .9rem;
  }
  .nav { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------- content */
.content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  min-height: 40vh;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
}

.page-body { max-width: 70ch; color: var(--text); }
.page-body a { color: var(--safelight); }
.page-body img { margin: 1rem 0; }

.empty { color: var(--text-dim); }
.empty a { color: var(--safelight); }

/* ---------------------------------------------------------- gallery */
.gallery {
  columns: 3 320px;
  column-gap: 14px;
}
.gallery-item {
  display: block;
  margin-bottom: 14px;
  break-inside: avoid;
  overflow: hidden;
  background: var(--panel);
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
}
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color .2s;
  pointer-events: none;
}
.gallery-item:hover::after { border-color: var(--safelight-dim); }

/* ---------------------------------------------------------- album cards */
.album-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: .5rem;
}
.album-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--panel);
}
.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.album-card:hover img { transform: scale(1.03); }
.album-card-blank {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 49.6%, var(--line) 49.6%, var(--line) 50.4%, transparent 50.4%),
    var(--panel);
}
.album-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem .9rem .7rem;
  background: linear-gradient(to top, rgba(4,4,4,.88), transparent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.album-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color .2s;
  pointer-events: none;
}
.album-card:hover::after { border-color: var(--safelight); }

/* ---------------------------------------------------------- lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,4,4,.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity .2s;
}
.lb-overlay.open { opacity: 1; }

.lb-img {
  max-width: min(92vw, 1800px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0,0,0,.9);
}

.lb-caption {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: .82rem;
  letter-spacing: .06em;
  max-width: 80vw;
  text-align: center;
}

.lb-btn {
  position: fixed;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 2rem;
  line-height: 1;
  padding: 1rem;
  cursor: pointer;
  transition: color .15s;
  font-family: var(--font-body);
}
.lb-btn:hover, .lb-btn:focus-visible { color: var(--safelight); }
.lb-btn:focus-visible { outline: 2px solid var(--safelight); }
.lb-close { top: .5rem; right: .8rem; }
.lb-prev { left: .4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .4rem; top: 50%; transform: translateY(-50%); }

.lb-counter {
  position: fixed;
  top: 1.4rem;
  left: 1.5rem;
  color: var(--text-dim);
  font-size: .75rem;
  letter-spacing: .15em;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------------------------------------------------------- footer */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.2rem 1.5rem 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--safelight); }
