/* Base */
:root {
  --bg: #0b1020;
  --bg-2: #0a1a2a;
  --text: #eaffff;
  --muted: #9ccbdc;
  --accent: #2bd3e8;
  --accent-2: #1bd0c8;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
}
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--text);
  font-family: ui-system, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.55;
  background: 
    linear-gradient(135deg, #0b1020 0%, #0a1220 60%, #0b1020 100%), /* base gradient */
    radial-gradient(circle at 20% 0%, rgba(32, 230, 216, 0.08), transparent 25%),
    radial-gradient(circle at 80% 15%, rgba(0,0,0,0.04), transparent 25%);
  background-blend-mode: overlay, normal, normal;
  background-size: auto, cover, auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Layered noise/scanlines (pure CSS) */
body {
  background-image:
    radial-gradient(circle at 20% 0%, rgba(32, 230, 216, 0.08), transparent 25%),
    radial-gradient(circle at 70% 25%, rgba(0,0,0,0.04), transparent 20%),
    repeating-linear-gradient(to bottom,
      rgba(0,0,0,0.04) 0 1px,
      transparent 1px 2px),
    linear-gradient(135deg, #0b1020 0%, #0a1220 60%, #0b1020 100%);
  background-blend-mode: overlay, overlay, overlay, normal;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }

/* Sectioning elements */
header, nav, main, article, aside, footer {
  display: block;
}
header, footer {
  padding: 1rem 0;
}
main { padding: 1rem 0; }

/* Glass panel utility (reusable) */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.45); }
}

/* Header styling (hero feel) */
header {
  display: block;
  width: 100%;
  padding: 1rem 0;
}
header > .wrap {
  display: grid;
  gap: 0.75rem;
}
header h1 {
  font-size: clamp(1.4rem, 1rem + 2.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0;
  color: var(--text);
  letter-spacing: 0.2px;
}
header .meta {
  font-size: 0.92rem;
  color: var(--muted);
}
nav {
  margin-top: 0.25rem;
}
nav a {
  color: var(--accent-2);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  nav a { transition: none; }
}

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

/* Main content styling */
main { display: block; padding: 0.5rem 0; }
article {
  display: block;
  padding: 1rem;
}
.article-content { /* for potential internal wrapper */ }

/* Typography basics */
h2 { font-size: clamp(1.25rem, 0.8rem + 2vw, 2rem); margin: 0.75rem 0 0.5rem; color: var(--text); }
h3 { font-size: clamp(1rem, 0.8rem + 1vw, 1.25rem); margin: 0.75rem 0 0.5rem; color: var(--text); }
p { margin: 0.5rem 0 1rem; color: #eaffff; }
strong { color: #eaffff; }

/* Lists */
ul { padding-left: 1.25rem; margin: 0.5rem 0 1rem; color: var(--text); }
li { margin: 0.25rem 0; }

/* Blockquote styling */
blockquote {
  margin: 0.75rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--accent);
  color: var(--text);
  background: rgba(0,0,0,0.12);
  border-radius: 6px;
}
blockquote em { font-style: italic; }

/* Content area styling (optional wrappers) */
.content {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Product ad (footer area) */
.product-ad {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(43, 226, 228, 0.15);
  border: 1px solid rgba(43, 226, 228, 0.4);
  display: inline-block;
  text-decoration: none;
  color: var(--text);
}
.product-ad a { color: inherit; text-decoration: none; display: block; padding: 0.25rem; }
.product-ad:hover { transform: translateY(-1px); transition: transform 0.2s ease; }

/* Simple footer styling */
footer {
  padding: 1rem 0;
  margin-top: 1rem;
}
footer p {
  margin: 0.25rem 0;
  color: var(--muted);
}
footer .sponsored-page { display: inline-block; margin-left: 1rem; }

/* Buttons and links (interactive UI) */
a, button, .btn, .cta {
  text-decoration: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: linear-gradient(#1a7a92, #0f5a78);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible, a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 211, 232, 0.4);
  outline-offset: 2px;
}
.btn--outline {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
}
.btn--outline:hover {
  background: rgba(27, 208, 200, 0.15);
}
a { color: var(--accent-2); }
a:hover, a:focus { color: #7cefe6; text-decoration: underline; }

/* Image frame caption styling example (if used) */
.caption { font-size: 0.85rem; color: var(--muted); }

/* Utility helpers */
.tag {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(32, 227, 216, 0.25);
  border: 1px solid rgba(32, 227, 216, 0.5);
  color: #eaffff;
}
.card {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.aside { padding: 1rem; border-radius: 12px; }

/* Accessibility and print */
@media print {
  body { background: #fff; color: #000; }
  a, button { text-decoration: none; color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}