/* Base & Theme Tokens */
:root {
  --sand: #d8c3a7;
  --sand-2: #c9ac8b;
  --blue: #4cc3ff;
  --blue-2: #1e6aff;
  --bg: #0b0f15;
  --bg-2: #111827;
  --text: #e9f3ff;
  --muted: #a8b9d6;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --border: rgba(110, 170, 255, 0.32);
  --focus: 0 0 0 3px rgba(76, 183, 255, 0.75);
  --shadow: 0 6px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 10px;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(120, 200, 255, 0.25);
  --accent: #4cc3ff;
  --accent-2: #1e6aff;
}

/* Global */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  line-height: 1.5;
  background-color: var(--bg);
  /* Layered background: gradient + subtle sand-blue scanlines/noise */
  background-image:
    linear-gradient(135deg, rgba(20,40,80,.95), rgba(10,16,40,.95) 60%, rgba(20,40,80,.95)),
    radial-gradient(circle at 20% -10%, rgba(76,156,255,.08), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, overlay, overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { -webkit-tap-highlight-color: transparent; }

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

/* Section: Base Typography & Helpers */
h1, h2, h3 { color: var(--text); margin: 0.6rem 0 0.4rem; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 2.2vw + 1rem, 3.8rem); letter-spacing: .4px; }
h2 { font-size: clamp(1.4rem, 1.4vw + 1rem, 2.4rem); }
h3 { font-size: clamp(1.05rem, .8vw + .9rem, 1.6rem); font-weight: 600; }
p { margin: .75rem 0; color: rgba(233,243,255,.92); }

/* Glass panels (frosted) with fallback */
header,
.article-glass,
.card,
.product-ad {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  box-shadow: var(--shadow);
  /* Fallback for no backdrop-filter: a more opaque background */
  background-color: rgba(255, 255, 255, 0.08);
}
@supports not (backdrop-filter: blur(1px)) and not (-webkit-backdrop-filter: blur(1px)) {
  header, .article-glass, .card, .product-ad {
    background: rgba(255, 255, 255, 0.10);
  }
}

/* Header / Hero */
header {
  max-width: clamp(320px, 90vw, 1100px);
  margin: 1rem auto;
  padding: 1.25rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgba(120, 180, 255, .35);
  background: rgba(10, 14, 32, 0.28);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
header h1 { font-weight: 700; margin: .25rem 0 .5rem; font-family: inherit; }

/* Main content & article */
main { padding: 1rem; }
article { max-width: clamp(420px, 90vw, 900px); margin: 0 auto; padding: 0 0.25rem; }

/* Image frame (with required selectors) */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 1000px;
  margin: 1rem auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(120, 200, 255, 0.35);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Alternative image container (as used in HTML) */
.featured-image { margin: 1rem auto; border-radius: 12px; overflow: hidden; border: 1px solid rgba(120,200,255,.35); box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: 1000px; }

/* Content helper (for sections within article) */
.content { padding: 0; }

/* Paragraph & block elements within article */
article p { color: rgba(232,246,255,.95); }
article ul { padding-left: 1.25rem; margin: .75rem 0; }
article li { margin: .25rem 0; }

/* Blockquote styling */
article blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
  color: var(--text);
}

/* Lists & accents */
ul, li { font-size: 1rem; }
.tag {
  display:inline-block;
  padding: .15em .5em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(76, 195, 255, .28);
  color: #eaffff;
  border: 1px solid rgba(120,200,255,.5);
}

/* Footer & product ad (glass panel) */
footer { padding: 1rem; text-align: center; }
.product-ad {
  display: inline-block;
  width: 100%;
  max-width: 860px;
  padding: 1rem;
  margin: 0.75rem auto;
  text-align: center;
}
.product-ad h3 { margin: .25rem 0; font-size: 1.1rem; }

/* Links, buttons, utilities */
a, button, .btn, .cta { font-family: inherit; color: var(--text); text-decoration: none; }
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; outline: none; }

/* Focus visibility (WCAG AA) */
:focus-visible {
  outline: 3px solid rgba(76, 183, 255, 0.95);
  outline-offset: 2px;
  border-radius: 6px;
}
button, .btn, .cta {
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(100, 180, 255, 0.6);
  background: linear-gradient(to bottom, rgba(60,144,255,.95), rgba(20,110,255,.95));
  color: #fff;
  padding: .6em 1.0em;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.btn:active { transform: translateY(0); }
.btn.outline {
  background: transparent;
  border: 1px solid rgba(120,200,255,.8);
  color: var(--text);
}
.cta {
  background: linear-gradient(135deg, rgba(60,200,255,.95), rgba(0,120,255,.95));
  border: 1px solid rgba(120,200,255,.9);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.cta:hover { filter: brightness(1.05); }

/* Utility typography / accessibility tweaks */
p + p { margin-top: .25rem; }
@media (min-width: 720px) {
  header { padding: 1.75rem; }
  .grid { gap: 1.25rem; }
}
@media print {
  body { background: #fff; color: #000; }
  header, footer, .product-ad { background: #fff !important; border: none; box-shadow: none; }
  a { text-decoration: underline; color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
queeze /* Note: intentionally left minimal to stay production-ready and compact */