/* Palette */
:root{
  --pewter: #8b8f97;
  --pewter-2: #6f747b;
  --laser: #ffff66;
  --laser-2: #e6e066;
  --text: #f5f7fa;
  --muted: #cbd5e1;
  --glass: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.22);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --radius: 12px;
  --gap: 1rem;
}

/* Layered background (gradient + subtle scanlines) */
html, body { height: 100%; }
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  background: linear-gradient(135deg, var(--pewter), var(--pewter-2) 70%);
  background-blend-mode: normal;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Subtle scanlines overlay (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  opacity: .25;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.08), transparent 40%),
              linear-gradient(135deg, rgba(0,0,0,.12), rgba(0,0,0,0) 40%, rgba(0,0,0,.12) 100%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
  opacity: .25;
}

/* Layout primitives */
.container { max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Sections (html, body, header, nav, main, article, footer, aside) */
header, nav, main, article, footer, aside { display: block; }
header { padding: 1.25rem 1rem 0.75rem; text-align: center; position: relative; z-index: 1; }
nav { margin-top: .5rem; }
main { padding: 1rem 1rem 2rem; position: relative; z-index: 1; }
article { display: grid; gap: 1rem; }

/* Glass panels (fallbacks included) */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .glass { background: rgba(255,255,255,.14); }
}

.header-glass, .content-glass, .footer-glass { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: .75rem; }

/* Hero typography and structure */
header h1 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem);
  line-height: 1.04;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
header .meta {
  color: var(--muted);
  font-size: clamp(.85rem, 0.8vw + .5rem, 1rem);
  margin-bottom: .75rem;
}
header nav a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  margin-inline: .25rem;
}
header nav a:hover, header nav a:focus-visible {
  background: rgba(255,255,255,.15);
  outline: none;
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  header h1, header nav a { transition: none; animation: none; }
}

/* Imagery */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 12px rgba(0,0,0,.25), 0 6px 18px rgba(0,0,0,.25);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.image-frame + .content { margin-top: .5rem; }

/* Content typography */
.content { color: #f2f5f9; font-size: clamp(.95rem, 0.9vw + .8rem, 1.05rem); line-height: 1.6; }

/* Lists and chips */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }
.tag {
  display:inline-block;
  font-size: .75rem;
  padding: .15em .6em;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.32);
  color: var(--text);
  margin-right: .25rem;
}

/* Utilities / components */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.product-ad, .sponsored-page {
  display: block;
  width: 100%;
  text-align: center;
  padding: .8rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  margin: .25rem 0;
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 6px;
}
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); }

/* CTAs and links (interactive states, accessible focus) */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
a { color: var(--text); }
a:hover { text-decoration: underline; color: var(--laser); }
a:focus-visible { outline: 3px solid var(--laser); outline-offset: 2px; }

/* Solid and outline variants */
.btn {
  background: var(--laser);
  color: #0a0a0a;
  border: 1px solid rgba(0,0,0,.15);
  padding: .6rem 1rem;
}
.btn.secondary, .cta {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.6);
}
.btn:hover { background: #f0f26a; color: #171717; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--laser); outline-offset: 2px; }

.cta { padding: .6rem 1rem; }

/* Form elements (basic styling) */
input, textarea, select {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: 6px;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.6); }

/* Scrollbar (minimal, system default for production) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 6px; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; }
  a, .btn, .cta { color: #000; text-decoration: underline; }
}
  
/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}