:root {
  --bg: #000;
  --panel: #0e0e10;
  --text: #fff;
  --muted: #a8a8a8;
  --line: #1f1f1f;
  --field: #444;
  --accent: #5865f2;
  --accent-hover: #4752c4;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px 72px; }

.site-header {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 20px 72px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: 0.08em; white-space: nowrap; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

.main-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.main-nav a, .collection-nav a { font-weight: 500; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.main-nav a:hover, .collection-nav a:hover, .main-nav a.active, .collection-nav a.active { border-bottom-color: var(--text); }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 -24px 40px;
  padding: 56px 24px 48px;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/images/hero.png") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.hero-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #000;
  box-shadow: 0 0 0 4px #fff, 0 0 42px rgba(255, 61, 129, 0.75), 0 0 80px rgba(88, 101, 242, 0.65);
}

.hero-title {
  margin: 22px 0 6px;
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(56px, 11vw, 104px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #ffd600, #ff3d81 34%, #7c4dff 66%, #00e5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline { margin: 0 0 22px; max-width: 560px; color: #e4e4e4; font-size: 18px; }
.hero .buttons { justify-content: center; }

.collection-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin: 40px 0 48px; }
.hero + .collection-nav { margin-top: 0; }
.collection-nav a { margin: 4px 24px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 14px; }

.thumb-frame { overflow: hidden; border-radius: 8px; }

.card { display: block; }
.card .thumb { transition: transform 0.2s ease; }
.card:hover .thumb { transform: scale(1.05); }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 4px; }
.card-title { margin: 14px 0 6px; font-size: 16px; font-weight: 500; }
.card-price { margin: 0; color: var(--text); }

.thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  overflow-wrap: anywhere;
}

.back { display: inline-block; margin: 40px 0 24px; color: var(--muted); }
.back:hover { color: var(--text); }

.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.product h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
.product h2 { margin: 28px 0 8px; font-size: 18px; }
.product h3 { margin: 16px 0 2px; font-size: 15px; }
.product p { margin: 0; }
.product .spaced { margin-top: 20px; }
.product .thumb-placeholder { font-size: 34px; }

.product-price { font-size: 20px; }
.muted { color: var(--muted); }

.cta { margin-top: 24px; padding: 20px; border: 1px solid var(--field); border-radius: 6px; }
.cta strong { display: block; margin-bottom: 14px; overflow-wrap: anywhere; }

.buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--field);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.button:hover { border-color: var(--text); }
.button.primary { background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.includes { margin: 0; padding: 0; list-style: none; }
.includes li::before { content: "> "; color: var(--muted); }

.text-link { text-decoration: underline; text-underline-offset: 4px; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; max-width: 960px; margin: 56px auto 0; }
.contact h1 { margin: 0 0 12px; font-size: 26px; font-weight: 500; }
.contact p { margin: 0; }
.contact-avatar { display: block; width: 88px; height: 88px; margin-bottom: 16px; border-radius: 50%; object-fit: cover; }
.steps { margin: 0 0 24px; padding-left: 20px; }
.steps li { margin-bottom: 8px; }

.empty { margin-top: 48px; text-align: center; color: var(--muted); }

.site-footer { padding: 20px 24px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }

.edit-link {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

@media (max-width: 1000px) {
  .site-header { padding: 16px 24px; gap: 32px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  main { padding: 0 16px 48px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .hero { margin: 0 -16px 28px; padding: 36px 16px; }
  .hero-avatar { width: 104px; height: 104px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
  .collection-nav { margin: 28px 0 32px; }
  .collection-nav a { margin: 4px 12px; }
  .product, .contact { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .contact { margin-top: 32px; }
  .product .thumb-placeholder { font-size: 24px; }
  .thumb-placeholder { font-size: 15px; padding: 8px; }
}

@media (max-width: 420px) {
  .buttons .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .card .thumb { transition: none; }
  .card:hover .thumb { transform: none; }
}
