/* Global tokens and baseline */
:root {
  --bg: #00f7e8;        /* bright turquoise core */
  --bg-2: #0057b7;       /* cosmic blue */
  --text: #eaffff;
  --muted: #bfeaff;
  --accent: #00eaff;     /* cyan primary */
  --accent-2: #00b6d4;   /* focus/outline color */
  --panel: rgba(5, 15, 40, 0.34);
  --panel-strong: rgba(5, 15, 40, 0.58);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
}

/* Global resets */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 15% 15%, rgba(0,255,235,.25), transparent 25%),
    radial-gradient(circle at 70% 40%, rgba(0,128,255,.20), transparent 25%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #001226 100%);
  background-attachment: fixed;
  min-height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.55;
  padding: 0;
  margin: 0;
  position: relative;
}

/* Subtle layered glass backdrop for major sections */
header, main, aside, article, footer {
  background: rgba(6, 18, 40, 0.32);
  border: 1px solid rgba(140, 210, 240, 0.40);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem;
  margin: 0.75rem auto;
  max-width: min(1100px, 92vw);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
  header, main, aside, article, footer {
    background: rgba(6, 18, 40, 0.68);
  }
}

/* Core layout utilities */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1180px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 0.75rem;
}
.tag {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.25);
  color: var(--text);
  border: 1px solid rgba(0, 229, 255, 0.45);
}

/* Header hero typography */
header h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.8rem, 4vw + 0.5rem, 3.6rem);
  line-height: 1.05;
  letter-spacing: .2px;
}
header .meta {
  margin: 0;
  font-size: clamp(0.75rem, 0.9vw + 0.4rem, 0.95rem);
  color: rgba(234,246,255,.85);
}

/* Featured image frame (supporting class per spec) */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.05); }

/* Content area */
.content { color: var(--text); }

/* Article content */
article {
  display: block;
}
article h2 {
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 2.25rem);
  margin: 0.6rem 0 0.4rem;
}
article p { margin: 0.75rem 0; font-size: clamp(0.92rem, 0.8vw + 0.9rem, 1.05rem); }
article blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  font-style: italic;
  background: rgba(0,0,0,.08);
  border-radius: 6px;
}
article ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0 1rem;
}
article li { margin: 0.25rem 0; }

/* Links/typography interactivity */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus-visible { text-decoration: underline; outline: none; }
a:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Buttons and CTAs */
button, .btn, a.btn, .cta {
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(0,0,0,.15);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn { background: var(--accent); color: #00333b; }
.btn:hover { background: #00d6f0; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 230, 255, 0.8);
}
.btn--outline:hover {
  background: rgba(0, 230, 255, 0.12);
}
.cta { display:inline-flex; }

/* Lists and navigation tweaks */
ul { padding-left: 1.25rem; }
li { line-height: 1.5; }

/* Layout rhythm for sections (responsive) */
@media (min-width: 640px) {
  main { padding: 1.25rem 0; }
}
@media (min-width: 720px) {
  .container { padding-inline: 0; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Footer quick-ad styling (glass panels) */
footer { display: grid; gap: 1rem; padding: 1rem 0; }

/* Product ad blocks inside footer */
.product-ad, .sponsored-page {
  text-align: center;
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: rgba(0, 180, 255, 0.22);
  border: 1px solid rgba(0,180,255,.45);
}
.product-ad a:hover, .sponsored-page a:hover {
  background: rgba(0,180,255,0.32);
}
footer p {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(234,246,255,.85);
  margin: .25rem 0 0;
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, article, footer { background: none; border: none; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}
