:root {
  /* Palette tokens inspired by pastel yellow underwater and mustard accents */
  --bg: #0b1020;
  --bg-2: #0e1a2a;
  --surface: rgba(255, 234, 170, 0.22);
  --surface-2: rgba(255, 255, 255, 0.14);
  --text: #f6f5e9;
  --muted: #d6c988;
  --accent: #d9bf3a;      /* mustard */
  --accent-2: #f2e56a;    /* lighter mustard */
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  --focus: 0 0 0 3px rgba(214, 195, 84, 0.75);
  --radius: 14px;
  --gap: 1rem;
}

/* Base & utilities */
*,
*::before,
*::after { box-sizing: border-box; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 210, 0.20) 0 60px, transparent 61px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 180, 0.15) 0 40px, transparent 41px),
    linear-gradient(135deg, rgba(6, 26, 60, 0.92), rgba(12, 40, 75, 0.92)),
    linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.0));
  background-blend-mode: screen, overlay, normal;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  /* Subtle CSS noise/scanlines via layered patterns (pure CSS) */
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 25px 25px, rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(circle at 75px 60px, rgba(255,255,255,.03) 1px, transparent 1px),
    repeating-linear-gradient( -45deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px ),
    repeating-linear-gradient(  45deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px );
  background-size: 120px 120px, 120px 120px, 4px 4px, 4px 4px;
  animation: drift 60s linear infinite;
  mix-blend-mode: overlay;
  opacity: 0.6;
}
@keyframes drift {
  0% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(-6px, 4px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Layout scaffolding */
.container { width: min(100%, 1200px); margin-inline: auto; padding-inline: 1rem; }

/* Glass panels (fallbacks included) */
header, main, article, footer, aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  header, main, article, footer, aside {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.45);
  }
}
header { margin: 1rem auto; text-align: center; padding: 1.25rem; }

/* Typography */
h1, h2, h3 { line-height: 1.04; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.75rem, 2.5vw + 1rem, 3.25rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 1.5vw + 0.6rem, 2rem); }
h3 { font-size: clamp(1rem, 1vw + 0.5rem, 1.25rem); color: var(--muted); }
p { color: rgba(246,245,233,.92); margin: .5rem 0 1rem; }
.meta { color: var(--muted); font-size: clamp(0.8rem, 0.8vw + 0.4rem, 0.95rem); }

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

/* Content region (generic) */
.content { padding: 0.5rem 0 1rem; }

/* Article structure enhancements */
main { display: block; padding: 0; max-width: 1000px; margin: 0 auto; }
article { display: block; }

/* Lists & bullets */
ul { padding-left: 1.25rem; margin: 0.5rem 0; }
li { margin: 0.25rem 0; }

/* Utility grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; }

/* Tags & small UI elements */
.tag { display: inline-block; padding: .15em .5em; border-radius: 999px; background: rgba(214,195,84,.28); color: #fff; font-size: .75rem; }

/* Links, buttons, CTAs */
a, button, .btn, .cta { font-family: inherit; color: var(--text); text-decoration: none; border: none; background: none; cursor: pointer; }
a { color: var(--text); }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--accent-2); }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* Button variants (solid and outline) */
.btn, .cta { display: inline-block; padding: .65rem 1.05rem; border-radius: 8px; border: 1px solid transparent; font-weight: 600; transition: transform .2s ease, background .2s ease, color .2s; }
.btn.primary { background: var(--accent); color: #111; }
.btn.primary:hover { background: #e6c94a; transform: translateY(-1px); }
.btn.outline { background: transparent; color: var(--text); border-color: rgba(255,255,255,.45); }
.btn.outline:hover { background: rgba(255,255,255,.08); }

/* Structural sections inside footer for promo blocks */
.product-ad, .sponsored-page {
  display: block; padding: .75rem; text-align: center; border-radius: 12px; margin: .5rem 0;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.25);
}
.product-ad a, .sponsored-page a { display: inline-flex; align-items: center; gap: .5rem; }

/* Footer specifics */
footer { margin: 1rem auto; padding: .75rem; text-align: center; }

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

@supports not (-webkit-backdrop-filter: blur(12px)) and not (backdrop-filter: blur(12px)) {
  /* Explicit fallback if backdrop-filter is unsupported (no blur) */
  .surface, header, main, article, footer, aside { background: rgba(255, 255, 255, 0.88); }
  header, main, article, footer, aside { border-color: rgba(0,0,0,0.15); }
}