:root{
  --bg: #031414;
  --bg-2: #062626;
  --text: #eaffff;
  --muted: #b8f7f0;
  --accent: #1ee8c7;
  --accent-2: #0bd6cc;
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(0,0,0,0.25);
  --glass-border: rgba(255,255,255,0.28);
  --shadow: 0 8px 24px rgba(0,0,0,.40);
  --focus: 3px solid #1ee8c7;
}

/* Basic reset and layout helpers */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(135deg, rgba(0,0,0,.40), rgba(0,0,0,.18) 60%), 
              linear-gradient(135deg, rgba(6, 80, 80, .28), rgba(0,0,0,0) 60%),
              linear-gradient(180deg, rgba(6, 20, 20, .75), rgba(6,20,20,.55)),
              linear-gradient(0deg, rgba(0,0,0,.15), rgba(0,0,0,.15)),
              radial-gradient(circle at 15% -10%, rgba(20,255,235,.16), transparent 40%),
              repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
              #041a1a;
  background-blend-mode: overlay, overlay, normal, normal, normal, normal, normal;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, :before, :after { box-sizing: border-box; }

/* Layout helpers */
.container { width: 100%; max-width: clamp(720px, 85vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

/* Glass panels (fallback included) */
.header-glass, header {
  width: 100%;
}
header {
  margin: 1rem auto;
  padding: clamp(1rem, 3vw, 2rem);
  text-align: center;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  line-height: 1.05;
  color: #eaffff;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
header .meta { margin-top: .25rem; color: var(--muted); font-size: .92rem; }

/* Main content styling */
main { padding: 0 1rem 2rem; }
article { max-width: clamp(700px, 90vw, 860px); margin: 0 auto; }
.featured-image { margin: 1rem 0 1rem; }
.image-frame { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 6px 20px rgba(0,0,0,.28); background: #111; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography defaults for accessibility on glass */
p { color: #e9ffff; line-height: 1.6; margin: 0.9rem 0; }
h2, h3 { color: #eaffff; margin: 1rem 0 0.5rem; }
ul { padding-left: 1.25rem; margin: 0.75rem 0; }
li { margin: 0.25rem 0; }

/* Blockquote */
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: #dffdfb; }

/* Content helpers that appear in HTML as .content or similar */
.content { line-height: 1.5; }

/* Footer / ad panels */
footer { padding: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; align-items: start; }
.product-ad, .sponsored-page { display: block; padding: 1rem; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-border); text-align: center; }
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; padding: .25rem; }
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); transition: transform .2s ease-in-out; }
footer p { text-align: center; grid-column: 1 / -1; color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }

/* Link and button styling */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
a:hover, a:focus { text-decoration: underline; color: var(--accent); outline: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: 8px;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1rem; border-radius: 999px; border: 1px solid rgba(0,0,0,.15); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #062222;
  border: 1px solid rgba(0,0,0,.25);
}
.btn--outline {
  background: rgba(0,0,0,0);
  border: 1px solid var(--accent);
  color: var(--text);
}
.cta { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1rem; }

/* Utility typography scale */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(30, 232, 199, .15);
  color: var(--text);
  border: 1px solid rgba(30,232,199,.4);
}

/* Image frame utility (supporting the spec name) */
.image-frame { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Responsive refinements */
@media (min-width: 720px) {
  header { padding: 1.5rem 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media print {
  body { background: white; color: black; }
  header, footer { background: none; box-shadow: none; border: none; }
  a, .btn, .cta { color: black; text-decoration: underline; }
}
