:root {
  --bg: #0a0f14;
  --bg-2: #0e1a24;
  --text: #eaf7ff;
  --muted: #a9b7d1;
  --accent: #4ec3ff;       /* baby blue */
  --accent-2: #ff6f61;      /* coral */
  --card: rgba(255, 255, 255, 0.08);
  --card-solid: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.25);
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --focus: 2px solid #9be2ff;
}

*, *::before, *::after { 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;
  font-size: 16px;
}

html, body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255,110,97,0.15) 0%, rgba(78,195,255,0.15) 60%, rgba(255,255,255,0.04) 100%),
    linear-gradient(to bottom, rgba(8,12,20,0.85), rgba(8,12,20,0.85)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: screen, normal, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@supports not (-webkit-backdrop-filter: blur(10px)) and not (backdrop-filter: blur(10px)) {
  .card { background: rgba(255,255,255,0.12); }
}

.header-glass {
  display: grid;
  gap: .5rem;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header, footer { width: 100%; }

a, button, .btn, .cta {
  font: inherit;
  font-weight: 600;
  color: #eaf7ff;
  text-decoration: none;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a { color: var(--accent); }

a:hover { text-decoration: underline; color: #c6f0ff; }
a:focus-visible { outline: 2px solid #9be2ff; outline-offset: 2px; border-radius: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(78,195,255,0.95);
  color: #001018;
  gap: .4rem;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid #9be2ff; outline-offset: 2px; }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(78,195,255,0.9);
}
.btn--outline:hover { background: rgba(78,195,255,0.15); color: #eaf7ff; }

.tag {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
}

.image-frame, .image-frame img {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Content structure */
html, body, header, nav, main, article, footer, aside {
  display: block;
}

header {
  display: grid;
  gap: .5rem;
  justify-items: center;
  text-align: center;
  padding: 2rem 1rem;
  margin: 1rem auto;
  max-width: min(1000px, 92vw);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.04;
  margin: 0;
  letter-spacing: .2px;
}

header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

nav {
  display: inline-flex;
  gap: .5rem;
  padding: 0;
  margin-top: .25rem;
}

nav a {
  padding: .4rem .75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
  color: var(--text);
}
nav a:hover { text-decoration: underline; }

/* Main content */
main { padding: 1rem 0 2rem; }

article {
  max-width: clamp(520px, 90vw, 860px);
  margin: 0 auto;
  padding: 0 0.5rem;
}

article h1 {
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  margin: 0.75rem 0 0.5rem;
  line-height: 1.15;
}

article p { color: var(--text); opacity: 0.95; line-height: 1.6; margin: .6rem 0 1rem; }
article h2 { font-size: clamp(1.1rem, 2.2vw, 1.25rem); margin: 1.15rem 0 .6rem; color: #eaf7ff; }
article ol, article ul { padding-inline-start: 1.25rem; margin: .4rem 0 1rem; }
article li { margin: .4rem 0; }

/* Interactive content panels (glass) */
.sponsor {
  display: block;
  padding: .6rem;
  border-radius: 12px;
  background: rgba(20,28,40,0.6);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
}
.featured-image { margin: 1rem 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* Footer / ad sections */
footer { padding: 1rem 0; }
.product-ad, .sponsored-page { display: inline-block; width: 100%; margin: .5rem 0; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
}
  
/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
