html, body, header, nav, main, article, footer, aside {
  box-sizing: border-box;
}

:root {
  --bg: #0b0f14;
  --bg-2: #111522;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.12);
  --border: rgba(120,180,255,.40);
  --text: #e8f0ff;
  --muted: #a9b7d9;
  --accent: #66b3ff;
  --accent-2: #a8d0ff;
  --shadow: 0 6px 20px rgba(0,0,0,.35);
  --radius: 12px;
  --grid: 40px;
}

html, body { height: 100%; }

html {
  font-family: ui-system, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: clamp(14px, 1vw + 12px, 18px);
  color: var(--text);
  background-color: var(--bg);
  /* Layered gradient + pastel blue grid + subtle scanlines (pure CSS) */
  background-image:
    /* vertical grid lines */
    linear-gradient(to right, rgba(102,179,255,.08) 1px, transparent 1px),
    /* horizontal grid lines */
    linear-gradient(to bottom, rgba(102,179,255,.08) 1px, transparent 1px),
    /* soft diagonal glow for depth (retro synth) */
    linear-gradient(135deg, rgba(20,28,48,.95), rgba(8,12,24,.95)),
    /* faint scanline texture for depth */
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 2px, transparent 2px 4px);
  background-size: var(--grid) var(--grid), var(--grid) var(--grid), auto, auto;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-attachment: fixed;
  margin: 0;
  overflow-x: hidden;
}

body { display: flex; min-height: 100%; flex-direction: column; }

header, main, footer { width: 100%; }

header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: clamp(1.75rem, 2.6vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 .25rem;
  letter-spacing: .5px;
  color: #eaf4ff;
}

header .meta {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
}

main {
  flex: 1 1 auto;
  padding: 1rem;
}

article {
  width: 100%;
  max-width: clamp(720px, 90vw, 1100px);
  margin-inline: auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.featured-image { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(120,180,255,.35); box-shadow: var(--shadow); }

.image-frame { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(120,180,255,.4); box-shadow: 0 6px 18px rgba(0,0,0,.25); }

.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content { color: var(--text); font-size: clamp(1rem, .95vw + .95rem, 1.125rem); line-height: 1.6; padding: 0 0; }

ul, li { margin: 0; padding: 0; list-style-position: inside; }

ul { padding-left: 1.1rem; }

li { margin: .25rem 0; }

blockquote { margin: .75rem 0; padding: .75rem 1rem; border-left: 3px solid rgba(102,179,255,.9); color: #dbeaff; background: rgba(102,179,255,.08); border-radius: 6px; }

h2, h3 { color: #eaf4ff; margin: .75rem 0 .5rem; }

h2 { font-size: clamp(1.4rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.8vw, 1.6rem); }

.product-ad { display: block; padding: 1rem; text-align: center; border-radius: var(--radius); border: 1px solid rgba(180,200,255,.32); background: rgba(255,255,255,.08); box-shadow: var(--shadow); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); margin: 1.25rem auto; max-width: 520px; }

.product-ad h3 { margin: 0 0 .25rem; font-size: 1.05rem; }

.product-ad a { display: inline-block; padding: .6rem 1rem; border-radius: 999px; border: 1px solid rgba(102,179,255,.8); background: linear-gradient(to bottom, rgba(68,120,225,.7), rgba(40,96,180,.5)); color: #eaffff; text-decoration: none; font-weight: 600; }

.product-ad a:hover { background: linear-gradient(to bottom, rgba(68,120,225,.95), rgba(40,96,180,.7)); }

footer { padding: 1.75rem 1rem; text-align: center; }

footer p { color: var(--muted); margin: .25rem 0 0; }

.tag { display:inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; background: rgba(102,179,255,.25); border: 1px solid rgba(102,179,255,.55); color: #dff1ff; }

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

.grid { display: grid; gap: 1rem; }

.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(180,200,255,.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
}

@supports not (backdrop-filter: blur(8px)) {
  .card, .product-ad { background: rgba(255,255,255,.14); }
}

a, button, .btn, .cta {
  color: var(--accent);
  text-decoration: none;
  outline: none;
  font-weight: 600;
  cursor: pointer;
}

a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}

a:hover { text-decoration: underline; text-underline-offset: 3px; }

.btn {
  display: inline-block;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(102,179,255,.8);
  background: linear-gradient(to bottom, rgba(102,179,255,.6), rgba(68,120,225,.4));
  color: #eaffff;
  transition: transform .15s ease, background .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(to bottom, rgba(102,179,255,.75), rgba(68,120,225,.5)); }
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  border: 1px solid rgba(102,179,255,.9);
  color: var(--text);
}
.btn--outline:hover { background: rgba(102,179,255,.15); }

.cta { display: inline-flex; align-items: center; gap: .5rem; justify-content: center; }

@media (min-width: 768px) {
  article { grid-template-columns: 1fr 1fr; padding: 0; }
  .featured-image { order: 0; }
  .content { padding: 0 0 0 1rem; }
  header { padding-top: 3rem; padding-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Print friendly tweaks */
@media print {
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .card, .product-ad { background: none; border: none; box-shadow: none; }
}
