/* Section: Palette & Background */
:root{
  --bg: #0a0a12;
  --bg-2: #0b1020;
  --text: #e9f5ff;
  --muted: #a9b8cf;
  --accent: #1b7a34;       /* forest green */
  --accent-2: #ff2d95;     /* plasma pink */
  --surface: rgba(255,255,255,.08);
  --surface-strong: rgba(255,255,255,.16);
  --card: rgba(8,12,28,.66);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
}

/* Section: Global reset & typography */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 25%, rgba(255,20,140,.28) 0 20%, rgba(255,20,140,0) 40%),
    radial-gradient(circle at 70% 60%, rgba(0,255,120,.20) 0 22%, rgba(0,0,0,0) 40%),
    linear-gradient(135deg, rgba(4,6,20,.95) 0%, rgba(6,8,24,.95) 60%, rgba(6,8,24,.98) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  font-size: clamp(14px, 0.9vw + 12px, 16px);
  line-height: 1.6;
}

/* Section: Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 84vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.grid.autofit { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Section: Structural elements styling */
header, nav, main, article, aside, footer { display: block; }
header { padding: 1rem 0 0; }
main { padding: 0.75rem 0; }
footer { padding: 1rem 0; }

/* Section: Heading & hero */
header h1 {
  font-size: clamp(1.6rem, 1.6rem + 1vw, 2.75rem);
  line-height: 1.1;
  margin: 0.25rem 0 0.25rem;
  color: var(--text);
  text-shadow: 0 0 14px rgba(0,255,180,.25);
}
header .meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
}
nav a {
  color: var(--accent-2);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
}
nav a:hover { text-decoration: underline; }

/* Section: Imagery */
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(34,139,34,.5);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #111;
  display: block;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Content blocks */
.content { padding: 0.5rem 0; }

/* Section: Glass panels (frosted) */
.glass {
  background: rgba(12, 14, 34, 0.22);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(10px)) {
  .glass {
    background: rgba(12,14,34,.60);
  }
}

/* Section: Cards & tags */
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 0.75rem;
}
.tag {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #041;
  background: rgba(34,139,34,.25);
  border: 1px solid rgba(34,139,34,.5);
}

/* Section: Ad section styling */
.product-ad { margin: 1rem 0; }

/* Section: Linkable elements & CTAs */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: .2px;
  border: none;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  padding: .75rem 1rem;
  border-radius: 10px;
  transition: transform .15s ease, background .2s ease, color .2s;
  display: inline-block;
}
.btn { background: var(--accent-2); color: white; border: 1px solid rgba(255,255,255,.25); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .95; }
.btn.outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.45); }
.btn.outline:hover { background: rgba(255,255,255,.08); }

/* Links baseline with accessible focus/hover */
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; color: #ff6fb7; outline: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* Section: Lists */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Section: Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  header, nav, main, article, aside, footer { display: block; }
}

/* Section: Responsiveness & motion */
@media (min-width: 720px) {
  main { padding: 1.5rem 0; }
  .container { padding-inline: 1.25rem; }
  .grid.autofit { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}