:root {
  --bg0: #f4f6fb;
  --bg1: #ffffff;
  --card: #ffffff;
  --stroke: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0d9488;
  --accent2: #db2777;
  --on-accent: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 28px 64px rgba(15, 23, 42, 0.14);
  --page-max: min(1680px, calc(100vw - 3rem));
  --page-pad-inline: clamp(1rem, 2.5vw, 2.25rem);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  background: radial-gradient(1100px 720px at 8% -8%, rgba(13, 148, 136, 0.09) 0%, transparent 52%),
    radial-gradient(880px 620px at 96% 12%, rgba(219, 39, 119, 0.07) 0%, transparent 48%),
    var(--bg0);
  color: var(--text);
  line-height: 1.5;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  z-index: 0;
}

.hero,
.toolbar,
main,
.foot {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 3.5rem var(--page-pad-inline) 2rem;
}

.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero .amp {
  color: var(--accent2);
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.toolbar {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad-inline) 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.search-wrap {
  flex: 1 1 240px;
  min-width: 200px;
}

.search-wrap input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg1);
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.search-wrap input::placeholder {
  color: var(--muted);
}

.search-wrap input:focus {
  border-color: rgba(13, 148, 136, 0.45);
  background: var(--bg1);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.chip {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg1);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.chip:hover {
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.2);
  background: #f8fafc;
}

.chip.is-active {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad-inline) 4rem;
}

.count {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.35rem;
}

.card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%), var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: var(--shadow-lg);
}

.card-shot {
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.card-shot-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  cursor: -webkit-zoom-in;
  line-height: 0;
}

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

.card-shot-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease, filter 0.25s ease;
}

.card-shot-zoom:hover img {
  transform: scale(1.03);
  filter: brightness(1.02) contrast(1.02);
}

.card-shot-hint {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.card-shot:has(.card-shot-zoom:hover) .card-shot-hint,
.card-shot-zoom:focus-visible ~ .card-shot-hint {
  opacity: 1;
}

/* When :has not supported, hover still works on inner img parent */
@supports not selector(:has(*)) {
  .card-shot-hint {
    opacity: 0.85;
  }
}

.card-shot--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.card-group {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 700;
}

.card h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.platform {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.22);
}

.card-actions {
  margin-top: auto;
  padding-top: 0.35rem;
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #0d9488;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(219, 39, 119, 0.35);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.card-actions a:hover {
  color: var(--accent2);
  border-color: var(--accent2);
}

.foot {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.lightbox {
  margin: auto;
  padding: 0;
  border: none;
  max-width: 96vw;
  max-height: 96vh;
  width: min(1800px, 98vw);
  background: transparent;
  color: var(--text);
  position: fixed;
  inset: 0;
}

.lightbox-shell {
  position: relative;
}

.lightbox::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
}

.lightbox-inner {
  position: relative;
  background: var(--bg1);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: calc(var(--radius) + 4px);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
}

.lightbox-inner img {
  display: block;
  width: 100%;
  max-height: min(90vh, 1400px);
  height: auto;
  object-fit: contain;
  object-position: top center;
  border-radius: var(--radius);
}

.lightbox-cap {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "Syne", sans-serif;
  text-align: center;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lightbox-close:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  color: var(--on-accent);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .search-wrap input,
  .chip {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
  .card-shot-zoom img {
    transition: none;
  }
  .card-shot-zoom:hover img {
    transform: none;
    filter: none;
  }
}
