:root {
  --bg: #12090a;
  --bg-alt: #1d0d10;
  --text: #f4eaea;
  --muted: #c8b1b1;
  --soft: rgba(206, 174, 174, 0.74);
  --card: rgba(38, 15, 19, 0.84);
  --card-border: rgba(153, 0, 0, 0.36);
  --card-border-hover: rgba(219, 127, 127, 0.68);
  --accent: #990000;
  --accent-strong: #efb1b1;
  --accent-bright: #d14c4c;
}

[data-theme="light"] {
  --bg: #fdf5f5;
  --bg-alt: #f5e7e7;
  --text: #2a1416;
  --muted: #66474a;
  --soft: rgba(88, 60, 64, 0.78);
  --card: rgba(255, 245, 245, 0.82);
  --card-border: rgba(153, 0, 0, 0.28);
  --card-border-hover: rgba(153, 0, 0, 0.55);
  --accent: #990000;
  --accent-strong: #7f0000;
  --accent-bright: #b30000;
}

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

body {
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(1100px 560px at 95% -20%, rgba(153, 0, 0, 0.28), transparent 58%),
    radial-gradient(900px 480px at -15% 110%, rgba(87, 20, 20, 0.36), transparent 62%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
  transition: background 220ms ease, color 220ms ease;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: #fff4f4;
  background: var(--accent);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
.button:focus-visible,
.product-card:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 10px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-block;
  min-height: 42px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  color: var(--text);
  background: var(--card);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
}

.nav-link:hover {
  text-decoration: none;
  border-color: var(--card-border-hover);
  background: rgba(153, 0, 0, 0.14);
}

.nav-link.active {
  border-color: var(--accent-bright);
  color: var(--accent-strong);
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.4rem;
  backdrop-filter: blur(3px);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.hero {
  margin-bottom: 2.7rem;
  text-align: center;
  position: relative;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.theme-toggle {
  position: absolute;
  right: 0;
  top: -2.35rem;
  min-height: 44px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: rgba(153, 0, 0, 0.2);
  border-color: var(--card-border-hover);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.logo-mark {
  width: 128px;
  height: 128px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.52);
}

.eyebrow {
  display: inline-block;
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.07;
  margin-bottom: 0.9rem;
  text-wrap: balance;
}

.tagline {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  max-width: 56ch;
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  display: inline-block;
  min-height: 46px;
  padding: 0.64rem 1.08rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.button.primary {
  color: #fff4f4;
  background: linear-gradient(140deg, #990000, var(--accent-bright));
  box-shadow: 0 8px 22px rgba(153, 0, 0, 0.34);
}

.button.secondary {
  color: var(--text);
  border: 1px solid rgba(228, 171, 171, 0.34);
  background: rgba(153, 0, 0, 0.18);
}

.content {
  margin-bottom: 0.8rem;
}

.content p,
.catalog p {
  color: var(--muted);
}

.catalog {
  margin-top: 0.8rem;
}

.email-capture {
  margin-top: 0.95rem;
}

.email-capture h2 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.email-intro {
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.email-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.email-form input {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(228, 171, 171, 0.5);
  background: rgba(153, 0, 0, 0.06);
  color: var(--text);
  padding: 0.58rem 0.9rem;
  font: inherit;
}

.email-form input::placeholder {
  color: var(--soft);
}

.email-form input:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.email-note {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog h2 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.catalog-intro {
  margin-bottom: 0.75rem;
}

.featured-product {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--card-border-hover);
  border-radius: 14px;
  background: rgba(153, 0, 0, 0.18);
}

.featured-thumb {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  background: #000;
}

.featured-content h3 {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 0.28rem;
}

.featured-content p {
  margin: 0;
  color: var(--muted);
}

.featured-label {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.18rem !important;
}

.featured-cta {
  white-space: nowrap;
}

.catalog-group {
  margin-top: 1rem;
}

.catalog-group h3 {
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #d1b0b0;
  margin-bottom: 0.55rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.95rem;
  list-style: none;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  padding: 0.78rem;
  border-radius: 12px;
  border: 1px solid rgba(228, 171, 171, 0.2);
  background: rgba(153, 0, 0, 0.12);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.product-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  background: rgba(153, 0, 0, 0.2);
}

.product-thumb {
  width: 128px;
  height: 128px;
  min-width: 128px;
  min-height: 128px;
  max-width: 128px;
  max-height: 128px;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}

.product-title {
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text);
}

.product-meta,
.product-use {
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.3;
}

.product-meta {
  color: var(--muted);
}

.product-use {
  color: var(--soft);
}

.noscript-fallback {
  margin-top: 0.95rem;
  border-top: 1px solid rgba(228, 171, 171, 0.26);
  padding-top: 0.95rem;
}

.noscript-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.55rem;
}

.noscript-list li {
  margin-bottom: 0.2rem;
}

.about {
  margin-top: 1.25rem;
  color: var(--soft);
  font-size: 0.92rem;
  text-align: center;
}

.page-main {
  max-width: 760px;
  margin: 0 auto;
}

.page-title {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.page-lead {
  color: var(--muted);
  margin-bottom: 1rem;
}

.stack {
  display: grid;
  gap: 0.9rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer {
  margin-top: 1.45rem;
  color: var(--soft);
  font-size: 0.82rem;
}

@media (max-width: 700px) {
  .container {
    padding: 3.4rem 1rem 2.4rem;
  }

  .hero {
    padding-top: 0.8rem;
  }

  .theme-toggle {
    top: -1.9rem;
    right: 0.1rem;
  }

  .card {
    padding: 1.1rem;
  }

  .featured-product {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .featured-cta {
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .email-form {
    grid-template-columns: 1fr;
  }

  .email-form .button {
    width: 100%;
    text-align: center;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.7rem;
  }
}

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

  .button:hover,
  .product-card:hover {
    transform: none !important;
  }
}
