:root{
  /* Palette (maroon/orange cyberpunk) */
  --bg: #0b0000;
  --bg-2: #230000;
  --text: #f7f7f7;
  --muted: #d98a2a;
  --accent: #e65c00;
  --accent-2: #a31010;
  --surface: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.25);
  --glass: rgba(255,255,255,0.14);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 12px;
}

/* Section headers for organization (no external comments) */
 /* Base & Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: #000;
  min-height: 100vh;
  line-height: 1.55;
  position: relative;
  /* Layered background: gradient + subtle maroon rings + scanlines */
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,140,0,.14) 0 240px, transparent 240px),
    radial-gradient(circle at 50% 50%, rgba(120,0,0,.22) 0 520px, transparent 520px),
    linear-gradient(135deg, #120000 0%, #220000 60%, #0a0000 100%);
  background-blend-mode: normal, normal, multiply;
  isolation: isolate;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  /* orbital-ring-esque texture (subtle) */
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,140,0,.08) 0 240px, transparent 240px),
    radial-gradient(circle at 50% 50%, rgba(128,0,0,.15) 0 480px, transparent 480px);
  mix-blend-mode: overlay;
  opacity: .9;
}
body::after {
  /* fine scanlines for depth */
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .6;
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { display: none; }
}

/* Structure */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Glass panels (fallback if backdrop-filter unsupported) */
.glass, header, main, footer, aside, article, .card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: saturate(1.05) blur(12px);
  backdrop-filter: saturate(1.05) blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass, header, main, footer, aside, article, .card { background: rgba(255,255,255,.22); backdrop-filter: none; }
}
header, main, footer, aside { padding: 1rem; }

/* Typography */
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .5rem; letter-spacing: .2px; }
h1 { font-size: clamp(1.75rem, 4vw, 3.25rem); text-wrap: balance; text-align: center; }
h2 { font-size: clamp(1.25rem, 2.5vw, 2.2rem); }
h3 { font-size: clamp(1rem, 1.8vw, 1.4rem); }
p { font-size: clamp(0.95rem, 1vw, 1.1rem); margin: 0 0 1rem; color: #f6f3f0; }

/* Header / Hero */
header { text-align: center; padding: 2rem 1rem; margin: 1rem auto; max-width: 1000px; }
header h1 { margin-bottom: .25rem; color: #fff; }
header .meta { font-size: .92rem; color: #f2d8b5; opacity: .95; }

/* Featured image frame (supports .image-frame as required) */
.featured-image { display: block; width: min(100%, 940px); margin: .75rem auto 1rem; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
.featured-image img { display: block; width: 100%; height: auto; object-fit: cover; }

/* Generic image-frame (alternate framing) */
.image-frame { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content area */
.content { padding: 0 0 1rem; }

/* Article / text layout */
article { padding: 0.25rem 0 1rem; }
blockquote { margin: .5rem 0 1rem; padding: .5rem 1rem; border-left: 4px solid var(--accent); background: rgba(230,110,0,.12); border-radius: 6px; }

/* Buttons & links (solid + outline) */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }
button, .btn, .cta { font: inherit; padding: .65rem 1rem; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.btn { background: var(--accent); color: #fff; }
.btn:hover { transform: translateY(-1px); background: #d95400; }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Outline variant */
.btn-outline { background: transparent; color: #fff; border: 1px solid var(--accent); }
.btn-outline:hover { background: rgba(230,92,0,.15); }

/* Cards / content blocks */
.card { padding: 1rem; }

/* Lists */
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

/* Utility / layout helpers */
.tag { display: inline-block; padding: .25em .6em; border-radius: 999px; font-size: .75rem; background: rgba(230,140,0,.25); border: 1px solid rgba(255,255,255,.3); color: #fff; }

/* Product ad (glass panel) */
.product-ad { display: block; padding: 1rem; margin: 1rem 0 1.25rem; }
.product-ad h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.product-ad a { color: #fff; text-decoration: none; display: block; padding: .25rem 0; }
.product-ad a:hover { text-decoration: underline; }

/* Footer */
footer { padding: 1rem; text-align: center; }

/* Layout helpers for inside main (compact) */
main { padding: 0.5rem; }

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