html, body {
  height: 100%;
}
* { box-sizing: border-box; }

:root {
  --bg: #0b0f14;
  --bg-2: #111820;
  --text: #eaf6ff;
  --muted: #8ee3cb;
  --accent: #6ff5d6;
  --accent-2: #b9f0ff;
  --glass: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 22px rgba(0,0,0,0.28);
}

html, body { height: 100%; margin: 0; }

/* Layered holographic background: gradient + conic spiral hints + scanlines/noise */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: 
    radial-gradient(circle at 25% -10%, rgba(110,230,230,0.15), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(180,180,255,0.15), transparent 40%),
    linear-gradient(135deg, var(--bg), var(--bg-2) 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  opacity: 0.25;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}
:focus { outline: none; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

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

/* Header hero styling (glass panel) */
header {
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(8px)) {
  header { background: rgba(255,255,255,0.22); }
}

header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.4rem, 2.5vw + 0.6rem, 2.4rem);
  line-height: 1.15;
}
header .meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Nav styling inside header */
nav {
  margin-top: .5rem;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
}
nav a:hover, nav a:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  outline: none;
}

/* Main content and article area */
main { padding: 0; }
article {
  padding: 1rem;
}
.featured-image { margin: 0.75rem 0; }
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  background: #000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

h2 {
  font-size: clamp(1.25rem, 2.4vw + 0.6rem, 1.8rem);
  margin: .75rem 0 .25rem;
  letter-spacing: .2px;
}

p { margin: .5rem 0 1rem; font-size: clamp(1rem, 1.2vw + 0.25rem, 1.125rem); color: #e9f5ff; }

/* Glass content containers */
.content { padding: 0; }
.card, .content, .sash {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(8px)) {
  .card, .content, .sash { background: rgba(255,255,255,0.22); }
}

/* Content list & quotes */
ul { padding-left: 1.25rem; margin: .5rem 0 0.75rem; }
li { margin: .25rem 0; color: #eaf6ff; }

/* Blockquote styling for impact */
blockquote {
  margin: .5rem 0 1rem;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  color: #eaf8ff;
  background: rgba(0,0,0,0.15);
  border-radius: 6px;
}

/* Product/ad blocks in footer */
.product-ad, .sponsored-page {
  display: block;
  padding: .75rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  text-align: center;
}
.product-ad a, .sponsored-page a {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.28);
}
.product-ad a:hover, .sponsored-page a:hover {
  background: rgba(0,0,0,0.38);
}
footer { padding: 1rem; display: grid; gap: .75rem; }

/* Typography: emphasis helpers */
.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.28);
  color: #eafffb;
  font-size: .725rem;
}

/* Link and button styling with accessible focus */
a, button, .btn, .cta {
  transition: transform 0.15s ease-in-out;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent); outline: none; }

.btn, .cta {
  display: inline-block;
  padding: .6rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.btn--solid {
  background: var(--accent);
  color: #041a16;
  border-color: rgba(0,0,0,0);
}
.btn--solid:hover { background: #58f0dd; transform: translateY(-1px); }
.btn--solid:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn--outline {
  background: rgba(0,0,0,0.25);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn--outline:hover { background: rgba(0,0,0,0.35); transform: translateY(-1px); }

/* Small accessibility helpers for focus states on links and actionable items */
:focus-visible { outline-offset: 2px; outline: 3px solid #fff; }

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

/* Print-friendly tweaks */
@media print {
  body { background: white; color: black; }
  header, main, footer { background: transparent; box-shadow: none; }
  a, a:visited { text-decoration: none; color: black; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
  body::before { display: none; }
}

/* Small screens tweaks */
@media (min-width: 720px) {
  header { padding: 1.25rem 1rem; }
  header h1 { font-size: 2rem; }
}
