/* Section: Tokens */
:root{
  /* Maroon + Lime palette tokens */
  --maroon: #7a001a;
  --maroon-2: #2a0006;
  --lime: #9dff00;
  --lime-2: #6aff00;

  --bg: var(--maroon);
  --bg-2: var(--maroon-2);
  --text: #eafff1;
  --muted: #cbd5e1;
  --accent: var(--lime);
  --accent-2: #7fff1a;
}

/* Section: Base & Layered Background (gradient + honeycomb vibe + noise/scanlines) */
html, body {
  height: 100%;
}
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #000 100%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  isolation: isolate;
}
html { font-size: 16px; }

/* Subtle hex honeycomb overlay (pure CSS) + scanlines/noise */
:root { --overlay-density: 60px; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Hex honeycomb hint: two diagonal gradients + soft tint to maroon backdrop */
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.04) 12px, transparent 12px),
    linear-gradient(-30deg, rgba(255,255,255,.04) 12px, transparent 12px),
    linear-gradient(0deg, rgba(0,0,0,.08) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 100% 100%;
  opacity: .25;
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Scanline effect for subtle texture */
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,.04) 0px,
    rgba(0,0,0,.04) 1px,
    transparent 1px,
    transparent 2px
  );
  mix-blend-mode: overlay;
  opacity: .55;
}

/* Section: Layout primitives */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 1rem;
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.92); color: #0b0b0b; }
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.45); }

.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.image-frame:hover img { transform: scale(1.04); }

/* Section: Typography & headings */
h1, h2, h3 { margin: .25rem 0 0.5rem; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); color: var(--text); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--text); }

/* Section: Content blocks & text */
.content { color: var(--text); font-size: clamp(0.95rem, 2vw, 1.05rem); line-height: 1.6; }
.content p { margin: .6rem 0; color: var(--muted); }
.content ul, .content li { margin: .4rem 0; padding-left: 1.1rem; }
.content ul { list-style: disc; }

/* Section: Links & interactive elements */
a, button, .btn, .cta {
  font: inherit;
  color: inherit;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-2); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Button variants (solid and outline) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(159,255,0,.75);
  background: var(--accent);
  color: #062000;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #87ff00; }
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(159,255,0,.75);
}
.btn.ghost {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}
.cta { composes: .btn; } /* alias for emphasis if used */

/* Focus treatment for links/buttons (enhanced visibility) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Section: Misc UI elements */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(159,255,0,.18);
  color: #eaffd0;
  border: 1px solid rgba(159,255,0,.55);
}

/* Section: Page regions (header, nav, main, article, aside, footer) */
header, nav, main, article, aside, footer {
  display: block;
}
header {
  padding: 1.25rem;
  text-align: center;
  position: relative;
}
header h1 { margin: .25rem 0 .25rem; font-weight: 800; color: var(--text); }
header .meta { color: var(--muted); font-size: .92rem; }

/* Main sizing and article structure */
main { padding: 1rem 0; }
article { display: block; }

/* Section: Special sections (product-ad) */
.product-ad {
  padding: .9rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.28);
  margin: .75rem 0;
}
.product-ad h3 { margin: .25rem 0; }

/* Section: Image region (generic) */
.image-frame { /* for potential .image-frame usage beyond .image-frame img */
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
}
.image-frame img { width: 100%; height: auto; display: block; }

/* Section: Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .card { background: #fff; border: none; box-shadow: none; }
}
  
/* Section: Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}