html, body, header, nav, main, article, footer, aside { margin: 0; padding: 0; }
html, body { height: 100%; }
* { box-sizing: border-box; }

:root {
  --bg: #0b0f14;
  --bg-2: #0a141b;
  --text: #eafff7;
  --muted: #b8d9d0;
  --accent: #2ee6c4;        /* seafoam */
  --accent-2: #7fffe0;        /* lighter seafoam for accents */
  --surface: rgba(255,255,255,0.12);
  --surface-2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.28);
  --card: rgba(255,255,255,0.12);
  --radius: 14px;
  --shadow: 0 8px 26px rgba(0,0,0,0.35);
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.25);
  --focus: 2px solid rgba(46,230,196,0.9);
  --tag-bg: rgba(46,230,196,0.25);
  --tag-border: rgba(46,230,196,0.6);
}

html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(8,12,18,0.95), rgba(6,10,14,0.95)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.08) 0 2px, transparent 2px 4px);
  background-blend-mode: overlay, normal;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1120px);
  padding-inline: 1rem;
  margin-inline: auto;
}
.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: saturate(1.05) blur(12px);
  -webkit-backdrop-filter: saturate(1.05) blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,0.10); }
}
.tag { 
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #05211a;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
}

/* Typography */
h1, h2, h3 {
  line-height: 1.15;
  margin: .2em 0;
}
h1 { font-size: clamp(1.8rem, 4vw + 0.5rem, 3.4rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.4rem, 2.5vw + 0.8rem, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.75vw + 0.6rem, 1.5rem); }

p { font-size: clamp(1rem, 0.9vw + 0.9rem, 1.125rem); color: #eafff2; }
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

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

/* Featured image container for article hero (compat with provided HTML) */
.featured-image { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.25); margin: 1rem 0; }

/* Content areas */
.content { padding: 0.25rem 0 0.75rem; }

/* Internal sections */
header {
  padding: 2rem 1rem 1rem;
  text-align: center;
}
header h1 { margin: 0.25rem 0 0.25rem; }
header .meta { color: var(--muted); font-size: clamp(0.9rem, 1vw + 0.6rem, 1.05rem); margin-top: .25rem; }

/* Simple navigation style in header */
nav { margin-top: .75rem; display: inline-block; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(0,0,0,0.15);
}
nav a:hover, nav a:focus-visible { text-decoration: underline; text-decoration-color: var(--accent-2); }

/* Footer / promotional sections */
footer { padding: 1.5rem 1rem 2rem; display: grid; gap: .75rem; justify-items: center; text-align: center; }

/* Product/ad sections (footer blocks) */
.product-ad, .sponsored-page {
  display: block;
  width: 100%;
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: .9rem 1.1rem;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  background: rgba(46,230,196,0.20);
  border: 1px solid rgba(46,230,196,0.55);
}
.product-ad a:hover, .sponsored-page a:hover { background: rgba(46,230,196,0.28); text-decoration: underline; }

/* Buttons and CTAs (global) */
a.btn, button.btn, a.cta, button.cta, .btn {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 999px;
  padding: .72rem 1.25rem;
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
a.btn:hover, button.btn:hover, a.cta:hover, button.cta:hover { transform: translateY(-1px); }
a.btn:focus-visible, button:focus-visible, a.cta:focus-visible, button.cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46,230,196,0.4);
  outline-offset: 2px;
}
a.btn.primary, button.btn.primary, a.cta.primary, button.cta.primary {
  background: var(--accent);
  color: #062018;
  border: 1px solid rgba(0,0,0,.15);
}
a.btn.outline, button.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
}
a.btn.ghost, button.btn.ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.18);
}
a, button { text-decoration: none; color: inherit; }

/* Link behavior outside buttons */
a:hover, a:focus-visible { text-decoration: underline; text-decoration-color: var(--accent); }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, main, footer { padding: 0.5rem; }
  a, button { color: inherit; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}
@media (min-width: 960px) {
  main { padding: 1.5rem 0; }
  .container { padding-inline: 0; }
}
