@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #14161a;
  --surface: #1c1f24;
  --surface-2: #23272d;
  --line: #2f343b;
  --text: #edebe4;
  --text-dim: #9198a3;
  --accent: #e8b923;
  --accent-dim: #8a6d1c;
  --radius: 3px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 22, 26, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  color: var(--accent);
  text-decoration: none;
  transform: skewX(-6deg);
  display: inline-block;
}

.wordmark span {
  color: var(--text);
}

nav.site-nav {
  display: flex;
  gap: 28px;
}

nav.site-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

nav.site-nav a:hover,
nav.site-nav a:focus-visible { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      -35deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 2px,
      transparent 2px,
      transparent 34px
    ),
    radial-gradient(ellipse at 20% -10%, rgba(232,185,35,0.10), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  max-width: 14ch;
  margin: 0 0 18px;
}

.hero p.lede {
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 1.08rem;
  margin: 0 0 28px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #16130a;
}
.btn-primary:hover { background: #f2c53e; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-dim); }

/* ---------- filters ---------- */

.filters {
  position: sticky;
  top: 68px;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.filters .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filters .count {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.9rem;
  white-space: nowrap;
}

.pill {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill:hover { border-color: var(--text-dim); color: var(--text); }

.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #16130a;
  font-weight: 500;
}

.sort-select {
  margin-left: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 7px 12px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-family: inherit;
}

/* ---------- gallery grid ---------- */

.gallery {
  padding: 36px 0 80px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.card .thumb-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-2);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover img { transform: scale(1.04); }

.card .meta {
  padding: 12px 14px 14px;
}

.card .meta .track {
  font-size: 0.95rem;
  font-weight: 500;
}

.card .meta .sub {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 3px;
}

/* ---------- empty state ---------- */

.empty {
  text-align: left;
  padding: 60px 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-dim);
  max-width: 560px;
}

.empty h2 {
  font-family: 'Oswald', sans-serif;
  color: var(--text);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.empty code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85em;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 13, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px 20px;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

@media (max-width: 760px) {
  .lightbox-inner { grid-template-columns: 1fr; }
}

.lightbox-img {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img img { width: 100%; height: auto; }

.lightbox-info { padding: 26px; }

.lightbox-info h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  margin: 0 0 4px;
}

.lightbox-info .meta-row {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.lightbox-info .exif {
  font-size: 0.82rem;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 14px;
  line-height: 1.7;
}

.lightbox-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }

.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.close-btn:hover { color: var(--text); }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }

footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--text); }

/* ---------- legal pages ---------- */

main.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 90px;
}

main.legal h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  margin-bottom: 6px;
}

main.legal h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  margin-top: 34px;
}

main.legal p, main.legal li { color: var(--text-dim); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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