/* COLOR TOKENS & ACCESSIBLE PALETTE */
:root{
  --bg: #0a0000;           /* deep crimson base */
  --bg-2: #1a0f0f;          /* secondary crimson depth */
  --text: #eafff0;           /* high-contrast light text on glass */
  --muted: #b6f0b6;          /* subtle body text */
  --accent: #00ff66;          /* cyber-green accent */
  --accent-2: #2cff93;         /* brighter green for hovers/focus */
  --card: rgba(255,255,255,0.08);
  --border: rgba(0,0,0,0.35);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
}

html, body, header, nav, main, article, aside, footer {
  box-sizing: border-box;
}

/* BASE, MOBILE-FIRST LAYOUT */
html {
  font-size: 16px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  background-color: #000;
  /* Layered background: crimson gradient + subtle darkness + scanlines/noise */
  background-image:
    linear-gradient(135deg, rgba(180,0,20,0.28) 0%, rgba(0,0,0,0.0) 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.25)),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 2px, transparent 2px, transparent 4px),
    #050505;
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-block-size: 100%;
  color-scheme: dark;
  text-rendering: optimizeLegibility;
  padding: 0;
  margin: 0;
}

/* GLASS PANELS (fallback included) */
@supports (backdrop-filter: blur(12px)) {
  .glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
@supports not (backdrop-filter: blur(12px)) {
  .glass {
    background: rgba(10,0,0,0.28);
  }
}
header, main, footer, aside {
  background: rgba(10,0,0,0.22);
  border: 1px solid rgba(0,0,0,0.35);
  border-radius: 14px;
  padding: 1rem;
  margin: 1rem auto;
  width: min(100%, 1100px);
  box-shadow: var(--shadow);
}
header { padding: 1.5rem 1rem; display: block; }
main { padding: 0; }
article { padding: 1rem; }

/* STRUCTURE UTILITIES */
.container {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
}
.tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  border: 1px solid rgba(0,255,102,0.5);
  color: #eafff0;
  background: rgba(0,255,102,0.15);
}
.image-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  aspect-ratio: 16 / 9;
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* TYPOGRAPHY & ACCESSIBILITY */
h1, h2, h3 {
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
h1 {
  font-size: clamp(1.75rem, 2.6vw, 3rem);
  letter-spacing: .2px;
  font-weight: 800;
  color: #eafff0;
}
h2 {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  color: #eafff0;
}
h3 {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: #eafff0;
}
p { color: var(--muted); margin: 0 0 1rem; }
.meta {
  color: #c6ffd8;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  margin-top: .25rem;
}
a { color: var(--accent); text-decoration: none; cursor: pointer; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); outline: none; }
button, .btn, .cta {
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn {
  background: linear-gradient(135deg, rgba(0,255,102,0.95), rgba(0,180,80,0.95));
  color: #012b12;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(0,255,110,0.98), rgba(0,180,90,0.98)); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(0,255,102,0.15); color: #eafff0; }

/* LAYOUT LABELS FOR CONTENT REGIONS */
.content { padding: 0; }

/* SPECIFIC SELECTORS AS REQUESTED */
html, body, header, nav, main, article, footer, aside { /* kept semantic; structural styles above */ }

/* PROJECT-SPECIFIC ELEMENT STYLES */
.product-ad {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(0,0,0,0.4);
  border-radius: 12px;
}
.product-ad h3 { font-size: 1.05rem; margin: 0; }
.product-ad a { text-decoration: none; }
.product-ad a p { margin: 0; color: var(--text); }

ul { padding-left: 1.25rem; margin: 0.5rem 0 1rem; }
li { margin: 0.25rem 0; }

/* NAV & HEADER BASIC TREATMENT */
nav { display: none; } /* optional placeholder for future menus */

/* PRINT-OPTIMIZED */
@media print {
  body {
    background: white;
    color: #000;
  }
  header, main, footer {
    background: none;
    border: none;
    box-shadow: none;
  }
  a { text-decoration: underline; color: #000; }
}

/* RESPONSIVE TINE TWEAKS */
@media (min-width: 640px) {
  .container { padding-inline: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
} 

/* END */