/* Core tokens */
:root {
  --bg: #0a0f24;
  --bg-2: #0b1a2b;
  --sand: #d2c196;
  --text: #e8f0ff;
  --muted: #a9b6d4;
  --accent: #1e4bd1;
  --accent-rgb: 30,75,209;
  --accent-2: #26ffd8;
  --sand-rgb: 210,193,150;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.15);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --focus-ring: 0 0 0 3px rgba(30, 115, 255, 0.55);
  --radius: 12px;
}

/* Global reset-ish */
* { 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);
  line-height: 1.5;
  background:
    /* subtle scanlines on top of a blue gradient */ 
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, rgba(6,18,44,.95), rgba(12,28,66,.95) 60%, rgba(0,14,54,.95) 100%),
    radial-gradient(circle at 20% -10%, rgba(60,130,255,.18), transparent 40%),
    #0a0f24;
  background-blend-mode: overlay, normal, screen, normal;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-block-size: 100%;
}

/* Layout helpers */
.container {
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card { 
  background: var(--surface);
  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)) {
  .card { background: rgba(255,255,255,.18); }
}
.content { color: var(--text); font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem); line-height: 1.6; }
.image-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 18px rgba(0,0,0,.25), inset 0 0 12px rgba(60,120,255,.25);
  width: 100%;
  aspect-ratio: 16/9;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sectioned structure styling hooks (must cover selectors) */
html, body, header, nav, main, article, footer, aside { }

/* Header / hero styling with glass look */
header {
  display: grid;
  gap: .5rem;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
  margin: 1rem auto;
  max-width: 1200px;
  width: 100%;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  header { background: rgba(255,255,255,.18); }
}
header h1 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 3.75rem);
  line-height: 1.08;
  margin: 0.25rem 0;
  letter-spacing: .3px;
}
header .meta {
  color: var(--muted);
  font-size: 0.88rem;
}
nav {
  margin-top: .25rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.12);
}
nav a:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Main article / content styling */
main { padding: 1rem 0 2rem; }
article { padding: 1rem; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.20); box-shadow: 0 6px 20px rgba(0,0,0,.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Image handling in article area (also applies to .image-frame) */
.featured-image { width: 100%; margin: 0 0 0.75rem; }
.featured-image img { width: 100%; height: auto; display: block; border-radius: 12px; }

/* Utility: image-frame (explicit for requirements) */
.image-frame { /* defined above; provide consistent visuals if used */ }

/* Typography emphasis */
h2, h3 { color: var(--text); margin-top: 1rem; }
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Supporting links and emphasis */
a, button, .btn, .cta { font-family: inherit; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
a { color: rgb(var(--accent-rgb)); }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

/* Buttons (solid and outline variants) */
.btn, .cta { display: inline-block; padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); cursor: pointer; user-select: none; }
.btn { background: rgb(var(--accent-rgb)); color: #fff; border: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(var(--accent-rgb), .4); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: rgb(var(--accent-rgb));
  border: 1px solid rgba(var(--accent-rgb), .75);
}
.btn--outline:hover { background: rgba(var(--accent-rgb), .15); }

.cta {
  background: linear-gradient(135deg, rgb(var(--accent-rgb)), rgb(var(--sand-rgb)));
  color: #00131a;
  border: 1px solid rgba(0,0,0,.15);
}
.cta:hover { filter: brightness(1.05); }

/* Glass panels for content blocks (fallback included) */
.product-ad, .sponsored-page {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .product-ad, .sponsored-page { background: rgba(255,255,255,.18); }
}
.product-ad a, .sponsored-page a { color: #fff; display: block; text-decoration: none; padding: .5rem 0; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Footer layout and panels */
footer {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: start;
}
@media (min-width: 720px) {
  footer { grid-template-columns: 1fr 1fr; }
}
footer p { color: var(--muted); font-size: .9rem; text-align: center; width: 100%; }

/* Image frame detail (no-op if not used, but covered as required) */
.image-frame { overflow: hidden; }

/* Layout helpers for accessibility & motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { color: #000; background: #fff; }
  header, main, footer { background: transparent; color: #000; }
}
  
/* End of stylesheet */

/* Section headers (no extra prose) */