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

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --card: #222222;
  --border: #333333;
  --accent: #38bdf8;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted2: #64748b;
}

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.brand-radi { color: var(--muted); }
.brand-baz { color: var(--accent); }

.wm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.wm-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wm-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.wm-back:hover { color: var(--text); }

.wm-logo {
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wm-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

.wm-hero {
  margin-bottom: 32px;
}

.wm-eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wm-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.wm-lead {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1rem;
  margin-bottom: 10px;
}

.wm-hint {
  font-size: 0.85rem;
  color: var(--muted2);
}

.wm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.wm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wm-filter {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.wm-filter:hover {
  border-color: var(--accent);
  color: var(--text);
}

.wm-filter.is-active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.wm-count {
  font-size: 0.85rem;
  color: var(--muted2);
}

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

.wm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wm-card__preview {
  position: relative;
  background: #0a0a0a;
  border: none;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wm-card__preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

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

.wm-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.wm-card__format {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.wm-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.wm-card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
}

.wm-card__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

.wm-card__download:hover {
  filter: brightness(1.08);
}

.wm-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 20px;
}

.wm-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px 36px;
  text-align: center;
}

.wm-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.wm-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.wm-footer-links a:hover { color: var(--text); }

.wm-footer-copy {
  font-size: 0.78rem;
  color: var(--muted2);
}

/* Lightbox */
.wm-lightbox[hidden] { display: none !important; }

.wm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 16px;
}

.wm-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.wm-lightbox__figure {
  max-width: min(920px, 100%);
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wm-lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 8px;
}

.wm-lightbox__figure figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.wm-lightbox__figure figcaption strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 4px;
}

.wm-lightbox__download {
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .wm-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
