/* ==========================================================================
   Motor City Pixel Works / kjamesmakesgames.com
   Base stylesheet — edit colors in :root to re-theme the whole site.
   ========================================================================== */

:root {
  --bg: #0b0d12;
  --bg-elevated: #14171f;
  --bg-elevated-2: #1b1f2a;
  --text: #eef0f4;
  --text-muted: #9aa1b1;
  --border: #2a2f3d;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --danger: #ff6b6b;
  --radius: 14px;
  --max-width: 1180px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-gradient);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(600px 300px at 15% -10%, rgba(124, 92, 255, 0.25), transparent 60%),
    radial-gradient(500px 260px at 90% 0%, rgba(34, 211, 238, 0.18), transparent 60%);
}

.hero .eyebrow {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 16ch;
}

.hero p.lede {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 56ch;
  margin: 0 0 32px;
}

.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent-gradient);
  color: #0b0d12;
}

.btn-primary:hover { opacity: 0.92; }

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover { border-color: var(--accent-2); }

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-head {
  margin-bottom: 40px;
  max-width: 60ch;
}

.section-head .eyebrow {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Portfolio grid ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-bar button {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-bar button.active,
.filter-bar button:hover {
  color: var(--text);
  border-color: var(--accent-2);
}

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--accent-2);
  transform: translateY(-3px);
}

.card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--accent-gradient);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

/* Placeholder art tiles — replace .thumb background with:
   background-image: url("../images/your-piece.jpg");
   background-size: cover;
   background-position: center;
   and remove the gradient + tint classes below. */
.card .thumb.tint-2 { background: linear-gradient(135deg, #22d3ee, #7c5cff); }
.card .thumb.tint-3 { background: linear-gradient(135deg, #ff6b6b, #7c5cff); }
.card .thumb.tint-4 { background: linear-gradient(135deg, #f5c542, #ff6b6b); }

.card .thumb .thumb-label {
  background: rgba(11, 13, 18, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.card .body { padding: 18px 20px 22px; }

.card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

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

.card .tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.card .tags span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-2);
}

/* ---------- Store ---------- */

.product-card .body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card .price {
  font-size: 1.15rem;
  font-weight: 700;
}

.snipcart-add-item {
  align-self: flex-start;
}

.store-note {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 40px;
}

.store-note strong { color: var(--text); }

/* ---------- About / info blocks ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

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

.stat-list {
  display: grid;
  gap: 18px;
}

.stat-list .stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.stat-list .stat .num {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-list .stat .label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Contact form ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}

form.contact-form {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
}

.field textarea { min-height: 140px; resize: vertical; }

.hp-field { position: absolute; left: -9999px; }

.form-status {
  font-size: 0.9rem;
  margin-top: 4px;
}

.form-status.success { color: #4ade80; }
.form-status.error { color: var(--danger); }

.contact-info .item {
  margin-bottom: 24px;
}

.contact-info .item .k {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.contact-info .item .v { font-size: 1.05rem; font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  text-decoration: none;
  color: var(--text-muted);
}

.site-footer a:hover { color: var(--text); }
