/* Standalone theme gallery. Same palette and type as the marketing site. */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --teal: #0d9488;
  --teal-deep: #0f766e;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 4px 18px -4px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --nav-h: 66px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}
html[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --teal: #2dd4bf;
  --teal-deep: #14b8a6;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow-sm: 0 4px 18px -4px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner, .footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 650;
}
.brand__mark { width: 32px; height: 32px; border-radius: 50%; }
.nav__links, .footer__links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav__links a, .footer__links a { color: var(--text-muted); font-weight: 500; }
.nav__actions { margin-left: auto; }
.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle__icon--sun { display: none; }
html[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
html[data-theme="dark"] .theme-toggle__icon--sun { display: inline; }
.gallery { padding: 2.5rem 0 4rem; }
.eyebrow { color: var(--teal); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; }
h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; margin: 0.2rem 0 0.6rem; }
.lead, .meta, .empty, .footer { color: var(--text-muted); }
.tools { margin: 1.5rem 0 0.5rem; }
.search input {
  width: min(420px, 100%);
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 1rem;
  font: inherit;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem 1.15rem;
}
.card h2 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.swatch { width: 1.5rem; height: 1.5rem; border-radius: 999px; border: 1px solid var(--border); display: inline-block; }
.votes { margin: 0.35rem 0; font-weight: 600; }
.actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn--primary { background: var(--teal); color: white; }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn:disabled { opacity: 0.55; cursor: default; }
.status { min-height: 1.4rem; color: var(--teal-deep); }
.footer { border-top: 1px solid var(--border); padding: 1.5rem 0 2rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@media (max-width: 720px) {
  .nav__links { display: none; }
}
