/* Base tokens */
:root{
  --bg: #0a0010;
  --bg-2: #170b15;
  --text: #e9e9ee;
  --muted: #b5b5bd;
  --accent: #ff4f6d;
  --accent-2: #ff6e42;
  --glass: rgba(255,255,255,.15);
  --glass-border: rgba(255,255,255,.28);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 12px;
}

/* Layered background: gradient + hex-honey/scanline vibe */
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.5; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  background-image:
    /* subtle crimson hex honeycomb hint (pure CSS pattern) */
    linear-gradient(135deg, rgba(140,0,40,.40), rgba(0,0,0,.40)),
    /* hex-honey hints via layered gradients */
    linear-gradient(30deg, rgba(255,0,60,.25) 12px, transparent 12px) ,
    linear-gradient(-30deg, rgba(255,0,60,.25) 12px, transparent 12px);
  background-size: 60px 60px, 60px 60px, 60px 60px;
  background-blend-mode: overlay, overlay, normal;
  position: relative;
  isolation: isolate;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* subtle scanlines */
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px;
  mix-blend-mode: overlay;
  z-index: 0;
  opacity: .6;
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  /* allowed on supported browsers via glass panels */
}
@supports not (backdrop-filter: blur(8px)) {
  body { /* fallback: stronger tint where blur isn't available */ }
}

/* Layout scaffolding */
*, *::before, *::after { box-sizing: border-box; }
nav { display: block; }

/* Centered, responsive container */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Glass panels (fallback included) */
header, main, footer, aside {
  background: rgba(10, 0, 10, 0.28);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
@supports not (backdrop-filter: blur(8px)) {
  header, main, footer, aside {
    background: rgba(8,8,12,.60);
    border-color: rgba(255,255,255,.40);
  }
}
header { display: grid; place-items: center; padding: 1.5rem 1rem; }
header h1 { margin: 0; font-size: clamp(1.5rem, 2.5vw + .75rem, 2.75rem); line-height: 1.08; text-align: center; }

/* Hero-like main area */
main { display: grid; gap: 1rem; align-content: start; padding: 1rem 0; }

/* Image frame styling */
.image-frame { width: min(96%, 720px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); background: #000; margin: 0 auto; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 14px 28px rgba(0,0,0,.45); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content region (for future text blocks) */
.content { padding: 0.25rem 0; }

/* Simple grid utility for responsive layouts */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Card utility */
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 1rem; }

/* Tag utility */
.tag { display: inline-block; padding: .25em .6em; border-radius: 999px; font-size: .75rem; background: rgba(255,255,255,.15); color: #fff; }

/* Product ad / promo blocks in footer */
.product-ad, .sponsored-page { display:block; text-align:center; padding:.75rem; border-radius:12px; background: rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.25); }
.product-ad a, .sponsored-page a { color:#fff; text-decoration: none; display:block; }

/* Link and button styles with accessibility */
a, button, .btn, .cta { cursor: pointer; color: var(--text); text-decoration: none; }
a { color: var(--accent-2); transition: color .15s ease; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

/* Button variants */
button, .btn, .cta { font-family: inherit; font-size: 1rem; padding: .65em 1.1em; border-radius: 8px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: var(--text); transition: transform .15s ease, background .2s ease; }
.btn.primary, .cta { background: var(--accent); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn:hover, .cta:hover { background: color-mix(in oklab, var(--accent) 70%, black); transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }

/* Focus treatment for interactive elements (enhanced for keyboard users) */
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }

/* Global typography tweaks for readability */
h1, h2, h3 { font-weight: 700; letter-spacing: .2px; }
p { color: var(--text); margin: 0 0 0.5em; }

/* Lists */
ul, li { margin: 0; padding: 0; list-style: none; }

/* Glass content wrappers (if additional panels are added) */
@media (min-width: 700px){
  .container { padding-inline: 0; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

/* Print styles for basic readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
  a { text-decoration: underline; }
}