/* Palette & Background */
/* Section: Palette */
:root {
  --bg: #0a1b3a;           /* navy base */
  --bg-2: #1a2a49;         /* deeper navy
                               for depth + contrast */
  --peach-1: #ffd8c2;       /* dawn peach */
  --peach-2: #ffb89f;       /* soft peach accent */
  --text: #f7fbff;           /* high-contrast text on dark surfaces */
  --muted: #cbd7e6;          /* secondary text */
  --accent: #7bd6ff;          /* cyber-accent */
  --accent-2: #ffd166;        /* warm highlight for emphasis */
  --surface: rgba(255,255,255,.12);     /* glass surface (transparent white) */
  --surface-2: rgba(255,255,255,.18);   /* deeper glass element */
  --border: rgba(255,255,255,.34);       /* glass border */
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--peach-1) 0%, var(--peach-2) 40%, var(--bg) 100%);
  min-height: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-attachment: fixed;
  position: relative;
  z-index: 0;
}

/* Subtle layered background: noise + scanlines (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.05)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.04), transparent 40%);
  background-blend-mode: overlay;
  opacity: .8;
  mix-blend-mode: overlay;
  filter: saturate(105%);
}

/* Layout helpers */
.container {
  max-width: clamp(640px, 86vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #001018;
  background: linear-gradient(#fff, #e9f0ff);
  border: 1px solid rgba(255,255,255,.6);
}

/* Image frame styling (as requested) */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}

/* Glass panel styling for major sections (fallback if backdrop-filter unavailable) */
header, main, footer, aside, .card, .product-ad, .sponsored-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  /* Fallback when backdrop-filter not supported */
}
@supports not (backdrop-filter: blur(8px)) {
  header, main, footer, aside, .card, .product-ad, .sponsored-page {
    background: rgba(255,255,255,.22);
  }
}

/* Typography & headings */
h1, h2 {
  line-height: 1.15;
  margin: 0 0 .5rem;
  color: var(--text);
}
h1 {
  font-size: clamp(1.75rem, 4vw + 1rem, 3.25rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.25rem, 2.5vw + .5rem, 1.75rem);
  font-weight: 700;
  color: #eaf2ff;
}
p { margin: 0 0 1rem; color: var(--muted); }

/* Header & navigation */
header {
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 1120px;
  display: block;
  color: var(--text);
}
header h1 { color: var(--text); margin: .25rem 0 .25rem; font-weight: 800; }
header .meta { font-size: .92rem; color: var(--muted); }

/* Main content area */
main { padding: 1rem; display: grid; place-items: center; }
article { width: 100%; max-width: clamp(720px, 92vw, 1100px); padding: 1rem; }

/* Featured image container (within article) */
.featured-image { width: 100%; margin: 0 0 1rem; }

/* Links & interactive elements */
a, button, .btn, .cta {
  text-decoration: none;
  color: var(--accent);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.14);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.btn { background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.08)); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .9; }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.9);
}
.btn--solid {
  background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.08));
}
.cta { border-radius: 999px; }

/* Lists, bullets, and content rhythm */
ul, li { margin: 0 0 0.75rem 1.25rem; padding: 0; }
ol { padding-left: 1.5rem; margin: 0 0 1rem; }

/* Footer & product ads */
footer { padding: 1rem; margin: 1rem auto; }
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  margin: .5rem 0;
  padding: .75rem;
}
.product-ad a, .sponsored-page a {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(0,0,0,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.product-ad p, .sponsored-page p { margin: 0; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #00f; text-decoration: underline; }
  header, main, article, footer { background: transparent; box-shadow: none; border: 0; }
  .container { max-width: 100%; padding: 0; }
}

/* Responsive typography scale (fluid) */
@media (min-width: 900px) {
  html { font-size: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}