:root {
  --bg: #eee7d9;
  --bg-strong: #d8ccb8;
  --surface: rgba(255, 250, 240, 0.72);
  --surface-strong: #fff8ef;
  --ink: #16120f;
  --muted: #6d6459;
  --line: rgba(22, 18, 15, 0.1);
  --accent: #cb8f2c;
  --accent-deep: #8f5d17;
  --shadow: 0 28px 90px rgba(35, 27, 18, 0.14);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(203, 143, 44, 0.26), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.64), transparent 22%),
    linear-gradient(180deg, #f6f0e5 0%, var(--bg) 42%, #e8dfcf 100%);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(18, 14, 11, 0.84);
  box-shadow: 0 12px 40px rgba(22, 18, 15, 0.12);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark__eyebrow {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.brand-mark__title {
  color: #fff9f0;
  font-family: 'Syne', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-header__actions,
.hero__cta,
.inventory__toolbar,
.filter-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.solid-button,
.ghost-button,
.filter-pill {
  border: 0;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
  cursor: pointer;
}

.solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  background: linear-gradient(135deg, #f2b345 0%, #d38f21 100%);
  color: #170f06;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(203, 143, 44, 0.24);
}

.solid-button:hover,
.ghost-button:hover,
.filter-pill:hover {
  transform: translateY(-2px);
}

.solid-button--inline {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.94rem;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f6eee0;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 26px;
  margin-top: 28px;
}

.hero__content,
.hero__spotlight,
.stat-card,
.inventory,
.car-card {
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero__content {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 42px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 18%, rgba(203, 143, 44, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 248, 239, 0.85), rgba(255, 250, 244, 0.6));
}

.hero__content::after {
  content: '';
  position: absolute;
  inset: auto -10% -28% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203, 143, 44, 0.22), transparent 62%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1,
.inventory h2 {
  margin: 0;
  font-family: 'Syne', sans-serif;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 7vw, 6.1rem);
}

.inventory h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero__lead,
.inventory__meta,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero__lead {
  max-width: 56ch;
  margin: 28px 0 32px;
  font-size: 1.04rem;
}

.hero__spotlight {
  overflow: hidden;
  align-self: stretch;
  border-radius: var(--radius-xl);
  background: rgba(18, 14, 11, 0.92);
  color: #fff4e4;
}

.hero__spotlight-label {
  padding: 18px 22px 0;
  color: rgba(255, 244, 228, 0.58);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero__spotlight-media {
  min-height: 360px;
  margin: 18px;
  border-radius: calc(var(--radius-xl) - 12px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.45)),
    linear-gradient(135deg, rgba(203, 143, 44, 0.46), rgba(255, 255, 255, 0.08));
  background-size: cover;
  background-position: center;
}

.hero__spotlight-body {
  padding: 0 22px 24px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.stat-card {
  min-height: 152px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stat-card__label {
  display: inline-block;
  color: var(--muted);
  font-size: 0.88rem;
}

.stat-card__value {
  display: block;
  margin-top: 18px;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.05em;
}

.inventory {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.8), rgba(247, 239, 226, 0.66));
}

.inventory__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.inventory__meta {
  margin: 18px 0 28px;
}

.filter-pill {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  font-weight: 700;
}

.filter-pill.is-active {
  background: #120e0b;
  color: #fff4e4;
  border-color: #120e0b;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.car-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.82), rgba(250, 244, 235, 0.76));
}

.car-card__media-link {
  display: block;
}

.car-card__media {
  position: relative;
  aspect-ratio: 1.24 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(203, 143, 44, 0.16), rgba(255, 255, 255, 0.08));
}

.car-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.car-card:hover .car-card__image {
  transform: scale(1.03);
}

.car-card__overlay {
  position: absolute;
  inset: 18px 18px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip--dark {
  background: rgba(18, 14, 11, 0.88);
  color: #fff4e4;
}

.chip--ghost {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #fff9ee;
}

.car-card__body {
  padding: 22px;
}

.car-card__kicker,
.car-card__grade,
.car-specs dt,
.car-card__price-label {
  color: var(--muted);
}

.car-card__kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.car-card__title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-size: 1.58rem;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.car-card__grade {
  min-height: 44px;
  margin: 12px 0 0;
  line-height: 1.55;
}

.car-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 20px 0 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.car-specs div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.car-specs dt {
  font-size: 0.82rem;
}

.car-specs dd {
  margin: 0;
  font-weight: 700;
}

.car-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.car-card__price-label {
  display: block;
  font-size: 0.82rem;
}

.car-card__price {
  display: block;
  margin-top: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 1.76rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.site-footer {
  padding: 28px 4px 12px;
}

.site-footer p {
  margin: 0;
}

.skeleton-card,
.skeleton-line {
  position: relative;
  overflow: hidden;
}

.skeleton-card {
  min-height: 480px;
}

.skeleton-card::before,
.skeleton-line::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.54) 50%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08));
  transform: translateX(-100%);
  animation: shimmer 1.6s infinite;
}

.skeleton-line {
  height: 18px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.skeleton-line--wide {
  width: 72%;
}

.inventory.is-empty .cars-grid {
  grid-template-columns: 1fr;
}

.inventory.is-empty .car-card {
  min-height: auto;
  padding: 28px;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

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

  .hero__spotlight-media {
    min-height: 300px;
  }

  .cars-grid,
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
  }

  .site-header {
    position: static;
    min-height: auto;
    padding: 18px;
    border-radius: 30px;
  }

  .site-header,
  .inventory__head,
  .car-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__content,
  .hero__spotlight,
  .inventory,
  .stat-card,
  .car-card__body {
    padding-inline: 18px;
  }

  .hero__content {
    min-height: auto;
    padding-block: 30px;
  }

  .hero__spotlight-media {
    margin: 14px;
    min-height: 240px;
  }

  .stats-strip,
  .cars-grid,
  .car-specs {
    grid-template-columns: 1fr;
  }

  .car-card__price {
    margin-bottom: 14px;
  }
}
