:root {
  color-scheme: light;
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.004 113);
  --surface-strong: oklch(0.92 0.018 112);
  --ink: oklch(0.16 0.018 250);
  --muted: oklch(0.42 0.025 250);
  --primary: oklch(0.61 0.138 113);
  --primary-strong: oklch(0.46 0.115 114);
  --accent: oklch(0.58 0.19 25);
  --accent-dark: oklch(0.32 0.105 24);
  --sky: oklch(0.57 0.092 230);
  --amber: oklch(0.73 0.15 72);
  --line: oklch(0.86 0.012 250);
  --white: oklch(1 0 0);
  --black: oklch(0.08 0 0);
  --shadow: 0 6px 12px oklch(0.2 0.02 250 / 0.12);
  --font-body: Aptos, "Segoe UI", system-ui, sans-serif;
  --font-display: Bahnschrift, "Aptos Display", "Segoe UI", system-ui, sans-serif;
  --page-pad: clamp(18px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

body.cart-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px var(--page-pad);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: oklch(1 0 0 / 0.96);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-wing {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
}

.brand-mark strong,
.brand-mark span span {
  display: block;
  line-height: 1.05;
}

.brand-mark strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.brand-mark span span {
  font-size: 0.78rem;
  color: currentColor;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  font-weight: 700;
}

.primary-nav a {
  padding: 8px 0;
}

.cart-trigger,
.button,
.icon-button,
.category-tabs button,
.product-action {
  border: 0;
  min-height: 42px;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.14);
  color: currentColor;
  font-weight: 800;
}

.is-scrolled .cart-trigger {
  background: var(--surface);
}

.cart-count {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.88rem;
}

.hero {
  position: relative;
  min-height: min(74vh, 780px);
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 124px var(--page-pad) 64px;
  background: var(--black);
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, oklch(0.08 0 0 / 0.88), oklch(0.08 0 0 / 0.58) 42%, oklch(0.08 0 0 / 0.12) 74%),
    linear-gradient(0deg, oklch(0.08 0 0 / 0.72), transparent 36%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-kicker,
.section-label {
  margin: 0 0 12px;
  color: var(--amber);
  font-weight: 900;
}

.hero h1,
.section-heading h2,
.kit-copy h2,
.dispatch h2 {
  font-family: var(--font-display);
  text-wrap: balance;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6rem);
  line-height: 0.95;
}

.hero p {
  max-width: 62ch;
  color: oklch(0.94 0.004 250);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
}

.button-primary {
  background: var(--accent);
  color: var(--white);
}

.button-ghost {
  background: oklch(1 0 0 / 0.12);
  color: var(--white);
  border: 1px solid oklch(1 0 0 / 0.36);
}

.mission-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.mission-strip div {
  padding: clamp(18px, 3vw, 28px) var(--page-pad);
  background: var(--surface);
}

.mission-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
}

.mission-strip span {
  color: var(--muted);
  font-weight: 700;
}

.storefront,
.kit-band,
.dispatch {
  padding: clamp(52px, 8vw, 96px) var(--page-pad);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2,
.kit-copy h2,
.dispatch h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1;
}

.section-heading p,
.kit-copy p,
.dispatch p {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.shop-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 12px;
  margin-bottom: 16px;
}

.search-field,
.sort-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.search-field input,
.sort-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 14px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 30px;
}

.category-tabs button {
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.category-tabs button.is-active {
  background: var(--primary-strong);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product-media {
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  inset: 12px auto auto 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.product-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
}

.product-action {
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.empty-state {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.kit-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.kit-copy p {
  color: oklch(0.84 0.012 250);
}

.kit-list {
  display: grid;
  gap: 1px;
  background: oklch(1 0 0 / 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.kit-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 6px 14px;
  align-items: start;
  padding: 18px;
  background: oklch(0.23 0.028 250);
}

.kit-list span {
  grid-row: span 2;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}

.kit-list strong {
  font-size: 1.12rem;
}

.kit-list p {
  margin: 0;
  color: oklch(0.82 0.012 250);
}

.dispatch {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  background: var(--surface);
}

.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: end;
  background: oklch(0.08 0 0 / 0.48);
}

.cart-panel.is-open {
  display: flex;
}

.cart-surface {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100vw);
  min-height: 100%;
  background: var(--white);
  box-shadow: -6px 0 12px oklch(0.08 0 0 / 0.16);
}

.cart-head,
.cart-footer {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.cart-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
}

.icon-button {
  width: 42px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 1px;
  overflow: auto;
  background: var(--line);
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--white);
}

.cart-line img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-line button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.cart-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 42px 22px;
  text-align: center;
  color: var(--muted);
}

.cart-empty strong {
  color: var(--ink);
}

.cart-empty.is-hidden {
  display: none;
}

.cart-footer {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-footer div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 1.1rem;
}

.cart-footer strong {
  font-family: var(--font-display);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--page-pad);
  background: var(--black);
  color: var(--white);
}

.site-footer span {
  color: oklch(0.78 0.01 250);
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .hero {
    min-height: 66vh;
    padding-top: 112px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, oklch(0.08 0 0 / 0.86), oklch(0.08 0 0 / 0.46)),
      linear-gradient(90deg, oklch(0.08 0 0 / 0.68), transparent);
  }

  .section-heading,
  .shop-controls,
  .kit-band,
  .dispatch {
    grid-template-columns: 1fr;
  }

  .mission-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-mark span span,
  .cart-trigger span:first-child {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.2rem);
  }

  .hero-actions,
  .product-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .product-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

