/* Section: Base tokens */
:root{
  --bg: #0b1020;
  --bg-2: #0e1a2b;
  --text: #eaf5ff;
  --muted: #a6b6d6;
  --accent: #58b5ff;
  --accent-2: #89eaff;
  --surface: rgba(255,255,255,0.12);
  --surface-2: rgba(255,255,255,0.22);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --radius: 14px;
  --ring: rgba(88,181,255,.9);
}

/* Section: Reset & utilities */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(135deg, rgba(14,20,40,1) 0%, rgba(10,12,28,1) 60%, rgba(14,20,40,1) 100%),
    linear-gradient(to bottom right, rgba(255,255,255,0.04), rgba(255,255,255,0.00) 60px),
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,0.04) 0 2px,
      transparent 2px 4px
    );
  background-blend-mode: overlay, overlay, overlay;
  min-height: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

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

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

/* Section: Hero & content typography */
header { padding: 2rem 1rem; text-align: center; }
header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .15rem 0 .4rem; letter-spacing: .4px; }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 2.5vw, 0.95rem); }

/* Section: Media framing for images */
.image-frame,
.featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  display: block;
  background: #111;
}
.image-frame img,
.featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Article content */
article { padding: 1rem; max-width: 900px; margin: 0 auto 2rem; }

/* Section: Section helpers for content blocks */
.content { padding: 0; }

/* Section: List styling */
ul, ol { padding-inline-start: 1.25rem; margin: .6rem 0; }
li { margin: .25rem 0; }

/* Section: Product ad block */
.product-ad { padding: .75rem 1rem; display: block; }
.product-ad h3 { margin: .25rem 0 0.5rem; font-size: 1.05rem; }
.product-ad p { margin: 0; }

/* Section: Footer tweaks */
footer { padding: 1.5rem; text-align: center; color: var(--muted); }

/* Section: Interactive controls */
button, .btn, .cta {
  font: inherit;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0);
  cursor: pointer;
  background: var(--accent);
  color: #041522;
  transition: transform .15s ease, background .2s ease;
}
.btn, .cta { display: inline-block; text-align: center; }
button:hover, .btn:hover, .cta:hover { background: #3bd2ff; }
button:active, .btn:active, .cta:active { transform: scale(0.98); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(88,181,255,.15); }

/* Section: Typography helpers */ 
.small { font-size: 0.9rem; color: var(--muted); }

/* Section: Print readability */
@media print {
  body { color: #000; background: #fff; }
  a { color: #00f; text-decoration: underline; }
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; border-color: #ccc; }
}

/* Section: Accessibility + motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
