/* Palette & Background */
:root{
  --bg: #0b0b14;
  --bg-2: #17161e;
  --bg-3: #1b1020;
  --text: #e9f0ff;
  --muted: #b7c3d9;
  --accent: #ffd400;     /* cyber yellow */
  --accent-2: #ff7a00;   /* sunset orange */
  --glass: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.22);
  --ring: 0 0 0 4px rgba(255,210,0,.25);
  --shadow: 0 10px 25px rgba(0,0,0,.35);
}
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(6,6,12,.95), rgba(6,6,12,.95)),
    radial-gradient(circle at 20% -10%, rgba(255,212,0,.18), rgba(255,212,0,0) 40%),
    radial-gradient(circle at 85% 20%, rgba(255,120,0,.18), rgba(255,120,0,0) 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, screen, screen, overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Section headers (for clarity in output) */

/* Layout & Typography */
:root { --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; }
html, body { font-family: var(--font-stack); }
h1, h2, h3 { margin: 0 0 .5rem; font-weight: 700; line-height: 1.15; color: var(--text); }
p { margin: 0 0 1rem; color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; }
header, main, footer, aside { display: block; }

/* Mobile-first containers & grids */
.container {
  width: 100%;
  max-width: clamp(480px, 88vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px){
  .grid--two { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px){
  .grid--three { grid-template-columns: repeat(3, 1fr); }
}

/* Glassmorphism (fallbacks included) */
header, main, footer, aside {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(1.1) blur(12px);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
}
@media (prefers-reduced-motion: no-preference){
  header, main, footer, aside { transition: transform .2s ease, opacity .2s ease; }
}
@media (prefers-reduced-motion: reduce){
  header, main, footer, aside { transition: none; }
}
header { margin: 1rem auto; }
header h1 { font-size: clamp(1.6rem, 1.5rem + 1.2vw, 2.6rem); letter-spacing: -0.02em; }
header .meta { color: var(--muted); font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.05rem); margin-top: .25rem; }
nav { margin-top: .5rem; display: flex; gap: .75rem; align-items: center; }
nav a { padding: .5rem 0.75rem; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }

/* Content area */
main { margin: 1rem auto; padding: 1rem; }
article { display: block; padding: .5rem; }

/* Image frame */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 20px rgba(0,0,0,.4), 0 0 14px rgba(255, 214, 0, .25);
  background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content typography & rhythm */
.content { color: var(--text); line-height: 1.6; font-size: clamp(14px, 1.2vw, 17px); }
.content h2 { margin-top: 0.75rem; font-size: clamp(1.4rem, 1.2vw + 1rem, 2.25rem); }
.content h3 { font-size: clamp(1.08rem, 0.9vw + 0.9rem, 1.4rem); margin-top: .75rem; }
.content p { margin: 0 0 0.9rem; }
.content ol, .content ul { margin: 0 0 1rem 1.25rem; padding: 0; }
.content li { margin: .25rem 0; }

/* Lists & blocks */
blockquote { border-left: 3px solid var(--accent-2); padding-left: .75rem; color: #f7f7f7; opacity: .95; margin: .75rem 0; }

/* Product ad / footer panels - glass panels */
.product-ad, .sponsored-page { display: block; padding: .75rem; text-align: center; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.09); text-decoration: none; color: var(--text); }
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; }

footer { margin: 1rem auto; padding: .75rem; text-align: center; }

/* Buttons & links (interactive) */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); text-decoration: underline; text-underline-offset: 3px; }
.btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #041; }
.btn--solid { background: var(--accent); color: #111; border-color: rgba(0,0,0,.15); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.45); color: var(--text); }
:focus-visible { outline: 0; box-shadow: var(--ring); }

/* Focus states for accessibility on links and controls */
a:not(.no-focus):focus-visible, button:not(.no-focus):focus-visible, .cta:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(255,215,0,.6), 0 0 0 6px rgba(0,0,0,.15); border-color: rgba(255,255,255,.8); }

/* Cards & tags (utilities) */
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; }
.tag { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; }

/* Lists default styling */
ul, li { margin: 0; padding: 0; }

/* Form elements (if present) */
input, textarea, select {
  font: inherit;
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
}
input::placeholder, textarea::placeholder { color: #cbd5e1; }

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