:root {
  --bg-deep: #0a0b0f;
  --bg-card: #12141c;
  --bg-card-hover: #1a1d28;
  --accent: #c45c26;
  --accent-glow: rgba(196, 92, 38, 0.35);
  --text: #e8e6e3;
  --text-muted: #8a8793;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  top: -20%;
  right: -15%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1.5rem 4rem;
}

header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto;
}

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

.site-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(196, 92, 38, 0.25);
  box-shadow: 0 0 0 1px rgba(196, 92, 38, 0.08), 0 20px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

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

button.site-card {
  font: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  border: none;
  appearance: none;
  -webkit-appearance: none;
}

.site-card.disabled {
  pointer-events: none;
  opacity: 0.45;
  cursor: default;
}

.site-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.site-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.site-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.site-meta span:last-child {
  opacity: 0.9;
}

footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-dev code {
  font-size: 0.88em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.45em;
  border-radius: 6px;
}

.footer-dev a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.footer-dev a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .site-card {
    transition: none;
  }
  .site-card:hover {
    transform: none;
  }
}
