/* SMOALD Model Supercars — showroom look: near-black, warm white text, Ferrari-red accent. */

:root {
  --bg: #0d0d0f;
  --panel: #17171b;
  --panel-2: #1f1f25;
  --line: #2c2c34;
  --text: #f3f1ec;
  --muted: #a8a59e;
  --accent: #e0262f;
  --accent-ink: #ffffff;
  --gold: #d9a441;
  --radius: 14px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Archivo", "Inter", sans-serif; line-height: 1.15; margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(13, 13, 15, .9); backdrop-filter: blur(8px); z-index: 5; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; gap: 12px; }
.brand { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.1rem; text-decoration: none; letter-spacing: .01em; }
.brand::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--accent); border-radius: 2px; margin-right: 10px; vertical-align: 1px; }
.header-link { color: var(--muted); text-decoration: none; font-size: .92rem; }
.header-link:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 40px; background: radial-gradient(900px 380px at 15% 0%, rgba(224, 38, 47, .18), transparent 70%); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--gold); font-weight: 600; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; max-width: 18ch; }
.accent { color: var(--accent); }
.hero-sub { font-size: 1.15rem; color: var(--text); margin: 18px 0 6px; }
.hero-note { color: var(--muted); max-width: 60ch; margin: 0; }

/* Toolbar */
.collection { padding: 24px 0 64px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .9rem; cursor: pointer;
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px;
}
.chip:hover { border-color: var(--muted); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
select {
  font: inherit; font-size: .9rem; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.count { color: var(--muted); font-size: .88rem; margin: 18px 0; }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: #45454f; }
.card-link { display: block; text-decoration: none; height: 100%; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--panel-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; }
.card-maker { margin: 0 0 4px; color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.card h3 { font-size: 1.15rem; }
.card-livery { color: var(--muted); font-size: .9rem; margin: 6px 0 10px; }
.card-edition { margin: 0; font-size: .85rem; font-weight: 600; }
.card.status-sold { opacity: .55; }

.badge {
  position: absolute; top: 12px; left: 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
}
.status-soon .badge, .badge.status-soon { background: var(--panel); color: var(--gold); border: 1px solid var(--gold); }
.status-sold .badge, .badge.status-sold { background: #444; }
.badge-inline { position: static; display: inline-block; margin-bottom: 14px; }

.placeholder {
  height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #4a4a55; background: linear-gradient(160deg, var(--panel-2), #111114);
}
.placeholder svg { width: 62%; max-width: 260px; }
.placeholder span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.empty { color: var(--muted); }

/* How buying works */
.how { border-top: 1px solid var(--line); padding: 56px 0 64px; background: var(--panel); }
.how h2 { font-size: 1.8rem; margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--muted); }
.steps li::before { content: counter(step); display: block; font: 800 1.6rem "Archivo", sans-serif; color: var(--accent); margin-bottom: 6px; }
.steps strong { color: var(--text); }

/* Detail page */
.detail-page { padding: 40px 0 72px; }
.detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.main-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.main-photo img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lead { color: var(--muted); font-size: 1.05rem; margin: 14px 0 22px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0 0 28px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.specs dt { color: var(--muted); font-size: .9rem; }
.specs dd { margin: 0; font-weight: 500; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--accent); color: var(--accent-ink); padding: 14px 24px; border-radius: 999px;
}
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.hint { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.email { color: var(--text); user-select: all; word-break: break-all; }
.noscript { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--muted); }
.noscript a { color: var(--text); }
.missing { text-align: center; padding: 60px 0; }
.missing p { color: var(--muted); margin-bottom: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer .small { font-size: .8rem; }

@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 48px 0 28px; }
  .header-link { font-size: .85rem; }
}
@media (max-width: 420px) {
  .header-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
