/* Sneaker Era Matcher — styles */
:root {
  --bg: #0f0f11;
  --bg-card: #1a1a1f;
  --bg-elevated: #23232a;
  --text: #e8e6e3;
  --text-muted: #9a9a9a;
  --accent: #c8ff00;
  --accent-dim: #8ab300;
  --border: #2a2a30;
  --radius: 12px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
  --space: 1rem;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 calc(var(--space) * 1.5); }

.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--accent); color: #000;
  padding: 0.5rem 1rem; z-index: 100;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text); font-weight: 700; font-size: 1.1rem;
}
.logo:hover, .logo:focus-visible { text-decoration: none; }
.logo-icon { width: 32px; height: 32px; color: var(--accent); }

.nav { display: flex; gap: 1.25rem; }
.nav a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav a:hover, .nav a:focus-visible { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: calc(var(--space) * 4) 0 calc(var(--space) * 3);
  text-align: center;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; }
.hero-sub { color: var(--text-muted); font-size: 1.1rem; margin-top: 0.75rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.5rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-dim); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--text-muted); text-decoration: none; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

/* Sections */
section { padding: calc(var(--space) * 3) 0; }
section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-note { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 600px; }

/* Matcher */
.matcher-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.matcher-form { display: grid; gap: 1.25rem; }
.form-group { border: none; }
.form-label { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; display: block; }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip label {
  display: inline-block; padding: 0.45rem 1rem;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.85rem; cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.chip input:checked + label {
  background: var(--accent); color: #000;
  border-color: var(--accent); font-weight: 600;
}
.chip input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }

.match-result {
  margin-top: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: none;
}
.match-result.visible { display: block; }
.match-result h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.match-result p { color: var(--text-muted); font-size: 0.95rem; }
.match-result .match-card-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.match-result .match-era {
  font-size: 0.8rem; font-weight: 700;
  background: var(--accent); color: #000;
  padding: 0.2rem 0.6rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.match-result .match-model { font-size: 1.25rem; font-weight: 700; }
.match-result .match-reason { margin-top: 0.75rem; }
.match-result .match-pairs { margin-top: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.match-actions { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Archive */
.archive-section { padding-top: calc(var(--space) * 3.5); }
.decade-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.tab {
  padding: 0.45rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.tab.active, .tab:hover, .tab:focus-visible {
  background: var(--text); color: var(--bg);
  border-color: var(--text);
  text-decoration: none;
}

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

.sneaker-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.15s;
}
.sneaker-card:hover { border-color: var(--text-muted); }
.sneaker-card .card-era {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-dim); margin-bottom: 0.25rem;
}
.sneaker-card .card-name { font-size: 1.1rem; font-weight: 700; }
.sneaker-card .card-silhouette {
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.sneaker-card .card-desc { font-size: 0.9rem; color: var(--text-muted); }
.sneaker-card .card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.sneaker-card .tag {
  font-size: 0.7rem; padding: 0.15rem 0.5rem;
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-muted);
}

/* Context */
.context-section { background: var(--bg-card); border-top: 1px solid var(--border); }
.context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.context-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.context-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.context-card p { font-size: 0.9rem; color: var(--text-muted); }

.tips-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.tips-block h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.tips-block ul { padding-left: 1.25rem; }
.tips-block li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.tips-block p { font-size: 0.9rem; color: var(--text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: calc(var(--space) * 2) 0;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-note, .footer-meta { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; gap: 0.5rem; }
  .nav { gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
  .hero { padding: calc(var(--space) * 2.5) 0 calc(var(--space) * 2); }
  .card-grid { grid-template-columns: 1fr; }
  .context-grid { grid-template-columns: 1fr; }
}

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

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



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
