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

:root {
  --base: #0C0C0B;
  --type: #F0EDE6;
  --accent: #F9D9FF;
  --muted: #6b6966;
  --gap: clamp(1rem, 2vw, 1.5rem);
}

html, body {
  background: var(--base);
  color: var(--type);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ─── Header ─── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--gap);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--base);
  border-bottom: 1px solid rgba(240,237,230,0.08);
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--type);
}

/* ─── Hero ─── */
.hero {
  padding: 6rem var(--gap) 4rem;
  text-align: center;
}

.hero-wordmark {
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.hero-tagline {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: lowercase;
}

/* ─── Grid ─── */
.grid-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  padding: 0;
}

.grid-item {
  display: block;
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #1a1a19;
}

.grid-item img {
  transition: transform 0.4s ease;
}

.grid-item:hover img {
  transform: scale(1.03);
}

.grid-item-placeholder {
  width: 100%;
  height: 100%;
  background: #1a1a19;
}

.grid-item-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(12,12,11,0.9) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.grid-item:hover .grid-item-meta {
  opacity: 1;
}

.grid-item-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.grid-item-price {
  font-size: 0.875rem;
  color: var(--accent);
  white-space: nowrap;
}

/* ─── Page header ─── */
.page-header {
  padding: 4rem var(--gap) 2rem;
  border-bottom: 1px solid rgba(240,237,230,0.08);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ─── Product page ─── */
.product {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem var(--gap);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .product-hero {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .product-gallery {
    grid-column: 1;
    grid-row: 3;
  }

  .product-body {
    grid-column: 2;
    grid-row: 1 / 4;
  }
}

.product-hero-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 4px;
}

.product-gallery img {
  aspect-ratio: 1;
  object-fit: contain;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.product-gallery img:hover,
.product-gallery img.active {
  opacity: 1;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.product-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.product-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(240,237,230,0.85);
}

.product-content p + p {
  margin-top: 1em;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(240,237,230,0.1);
  padding-top: 1.5rem;
}

.meta-row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  font-size: 0.875rem;
}

.meta-row dt {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding-top: 0.1em;
}

.meta-row dd {
  color: var(--type);
}

.buy-link {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: var(--base);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: opacity 0.15s;
  align-self: flex-start;
}

.buy-link:hover {
  opacity: 0.85;
}

.verified-mark {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ─── Footer ─── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem var(--gap);
  border-top: 1px solid rgba(240,237,230,0.08);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6rem;
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 3rem var(--gap);
  font-size: 0.875rem;
}

.pagination a {
  color: var(--muted);
}

.pagination a:hover {
  color: var(--type);
}

/* ─── Static pages ─── */
.static-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem var(--gap);
}

.static-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.static-page h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--accent);
}

.static-page p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(240,237,230,0.85);
  margin-bottom: 1em;
}

.static-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.static-page th {
  text-align: left;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem 0.5rem 0;
  border-bottom: 1px solid rgba(240,237,230,0.1);
}

.static-page td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid rgba(240,237,230,0.06);
  vertical-align: top;
}
