:root{
  --bg: #00e6e6;
  --bg-2: #00c4c4;
  --text: #0b0f14;
  --muted: #3b6d7a;
  --accent: #00f0ff;
  --accent-2: #00c7d6;
  --glass: rgba(255,255,255,.14);
  --glass-2: rgba(255,255,255,.22);
  --card: rgba(255,255,255,.12);
  --card-border: rgba(255,255,255,.28);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: #7ff7ff;
}
* { 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; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(0,235,235,.25), rgba(0,180,180,.25) 60%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.05) 0 1px, transparent 1px 2px),
    var(--bg);
  min-height: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

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

/* Glassy blocks (fallback + backdrop) */
header, main, article, footer { 
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.75rem auto;
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  header, main, article, footer {
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
@media (prefers-color-scheme: dark) {
  :root { --text: #e8faff; }
  header, main, article, footer { background: rgba(10,10,12,.25); border-color: rgba(60,180,190,.5); }
}

/* Header */
header { text-align: center; padding: 1.75rem 1rem; }
header h1 { font-size: clamp(1.8rem, 2.2vw + 1rem, 3.75rem); line-height: 1.05; margin: .25rem 0 .25rem; color: var(--text); }
header .meta { font-size: clamp(0.9rem, 0.4vw + .8rem, 1.05rem); color: var(--muted); margin-top: .25rem; }

/* Nav */
nav { display: inline-block; margin-top: .5rem; }
nav a { padding: .4rem .8rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.04); text-shadow: none; }

/* Featured image frame */
.featured-image { width: 100%; margin: 0.75rem 0 1rem; }
.image-frame { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); box-shadow: var(--shadow); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Main content area */
main { padding: 0; display: block; }
article { margin: 0 auto; padding: 1rem; }

/* Headings & typography within article */
article h2 { font-size: clamp(1.4rem, 0.6vw + 1.4rem, 2.4rem); margin: .75rem 0 0.5rem; color: var(--text); }
article h3 { font-size: clamp(1.1rem, 0.4vw + 1rem, 1.6rem); margin: .75rem 0 0.5rem; color: var(--text); }
article p { font-size: clamp(1rem, 0.4vw + .95rem, 1.15rem); margin: .5rem 0 1rem; color: var(--text); }
article ul, article ol { margin: .25rem 0 1rem 1.25rem; }
article li { margin: .25rem 0; }

/* Blockquotes */
article blockquote { margin: .75rem 0; padding: .6rem 1rem; border-left: 3px solid var(--accent); background: rgba(0,0,0,.04); border-radius: 6px; }

/* Glassy card helpers */
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 1rem; box-shadow: 0 6px 18px rgba(0,0,0,.15); }

/* Lists tweaks */
ul, ol { padding-left: 1rem; }

/* Footer & ads (product-ad blocks) */
footer { padding: 1rem; display: grid; gap: 1rem; justify-items: center; }
.product-ad, .sponsored-page { width: min(520px, 90%); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 12px; padding: .75rem; text-align: center; }
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; font-weight: 600; display: inline-block; padding: .25rem .5rem; border-radius: 6px; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* CTA and buttons */
.btn, .cta, a.btn { display: inline-block; padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid var(--accent); background: rgba(0, 235, 235, .85); color: #001111; font-weight: 600; text-align: center; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover, .cta:hover, a.btn:hover { transform: translateY(-1px); background: rgba(0,235,235,.95); }
.btn:active, .cta:active, a.btn:active { transform: translateY(0); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--accent); }
.btn--outline:hover { background: rgba(0,235,235,.08); }

/* Focus visibility for interactive elements */
button:focus-visible, [role="button"]:focus-visible, a:focus-visible, .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Forms (basic styling for any inputs) */
input, textarea, select { font: inherit; padding: .5rem .6rem; border-radius: 6px; border: 1px solid rgba(0,0,0,.2); background: rgba(255,255,255,.92); color: var(--text); }

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

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, main, article, footer { background: transparent; border: none; padding: 0; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}