/* Dark theme to match the store images. System fonts only, so nothing loads from elsewhere. */
:root {
  --bg: #0f1217;
  --bg-raised: #171b22;
  --line: #262c36;
  --text: #e6e9ef;
  --muted: #9aa3b2;
  --accent: #2fc6f0;
  --led: #e5322b;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Cantarell, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--accent); }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow > * { max-width: 720px; }   /* same left edge as the rest; only the text is narrower */

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #151920 0%, var(--bg) 100%);
  padding: 40px 0 18px;
}
.site-header h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); letter-spacing: -0.01em; }
.tagline { margin: 0; color: var(--muted); font-size: 1.1rem; }
.tagline::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 8px var(--led);
  vertical-align: 0.15em;
}
nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; }
nav a { color: var(--text); text-decoration: none; opacity: 0.8; }
nav a:hover, nav a:focus-visible { opacity: 1; color: var(--accent); }

main section { padding: 48px 0; }
main section + section { border-top: 1px solid var(--line); }

/* Product */
.cover {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.product-body { margin-top: 28px; }
.product-text { max-width: 720px; }
.meta { margin: 0 0 1em; color: var(--muted); font-size: 0.95rem; }
.features { padding-left: 1.2em; margin: 1em 0 1.6em; }
.features li { margin: 0.25em 0; }
.features li::marker { color: var(--accent); }

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #06131a;
  font-weight: 600;
  text-decoration: none;
}
.button-soon {
  background: transparent;
  color: var(--muted);
  border: 1px dashed #3a4250;
  cursor: default;
}

/* Gallery */
.gallery-title { margin-top: 40px; }
.gallery {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.gallery a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.2s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.03); }
.gallery a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Contact */
.email { white-space: nowrap; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 8, 11, 0.94);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(6, 8, 11, 0.7); }
.lightbox figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 16px 24px;
}
.lightbox img {
  max-width: min(1600px, 100%);
  max-height: calc(100% - 48px);
  width: auto;
  height: auto;
  border-radius: 6px;
}
.lightbox figcaption { color: var(--muted); text-align: center; }
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, 0.18); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .site-header { padding-top: 28px; }
  main section { padding: 36px 0; }
  .lightbox button { width: 40px; height: 40px; font-size: 1.6rem; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
