:root{
  --bg: #0a0a0f;
  --bg-2: #14121a;
  --text: #e9f5ff;
  --muted: #a6aec3;
  --accent: #4df0ff;
  --accent-2: #a14dff;
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.18);
  --border: rgba(255,255,255,.28);
  --surface: rgba(18,18,26,.5);
  --shadow: 0 8px 26px rgba(0,0,0,.4);
  --radius: 12px;
  --radius-lg: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, rgba(16,16,20,.8), rgba(8,8,12,.95)), var(--bg);
  min-height: 100dvh;
  isolation: isolate;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  /* Espresso dots pattern background overlay */
  background-image:
    radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-position: 0 0, 3px 3px;
  background-size: 6px 6px, 6px 6px;
  mix-blend-mode: overlay;
  opacity: .8;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  /* subtle scanline */
  background: linear-gradient(to bottom, rgba(0,0,0,.0) 0 2px, rgba(0,0,0,.04) 2px) 0 0/100% 3px;
  mix-blend-mode: overlay;
  pointer-events: none;
}
a, button { cursor: pointer; }

header, nav, main, article, aside, footer { padding: 0; margin: 0; }

header {
  padding: 1.25rem 1rem;
  text-align: center;
}
header h1 {
  font-size: clamp(1.6rem, 1.2rem + 2.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .4rem;
  letter-spacing: .2px;
}
header .meta {
  font-size: clamp(.85rem, .4rem + .8vw, 1rem);
  color: var(--muted);
}

main { padding: 1rem; display: grid; place-items: center; }
article { width: 100%; max-width: clamp(360px, 92vw, 980px); padding: 0 0.5rem; }
.featured-image, .image-frame { width: 100%; display: block; margin: 0 auto 1rem; }
.image-frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  box-shadow: var(--shadow);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.featured-image { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: rgba(0,0,0,.25); box-shadow: var(--shadow);
}
.featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content { padding: .25rem; color: var(--text); }
.content p { margin: .75rem 0; }
.content h2, .content h3 { color: #fff; }

h2 { font-size: clamp(1.25rem, 0.9rem + 2vw, 2rem); margin: .75rem 0 .5rem; }
h3 { font-size: clamp(1rem, 0.7rem + 1.6vw, 1.35rem); margin: .6rem 0; }

/* Lists */
ul, li { margin: 0 0 0.5rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Glass panels and sections */
.card, .container, .grid, .tag { }
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin: 0 auto; padding: 0 1rem; }

/* Glass panel helper (fallback included) */
.panel {
  background: rgba(15, 15, 20, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.panel--strong {
  background: rgba(15, 15, 20, 0.36);
  border-color: rgba(255, 255, 255, 0.38);
  padding: 1.15rem;
  border-radius: var(--radius-lg);
}
@supports not ((backdrop-filter: blur(12px))){
  .panel, .panel--strong { background: rgba(25,25,28,.55); }
}

/* Product ad in footer */
.product-ad {
  display: grid; gap: .6rem;
  text-align: center;
  padding: .9rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
  margin: 0 auto 1rem;
}
.product-ad h3 { margin: 0; font-size: 1.05rem; }
.product-ad a { display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(0,0,0,.25); color: var(--text); text-decoration: none; border: 1px solid rgba(255,255,255,.3);
}
.product-ad a:hover { background: rgba(0,0,0,.35); text-decoration: none; }

/* Buttons and links (interactive states) */
a, button { color: var(--text); text-decoration: none; transition: color .15s ease, background .2s ease, transform .15s ease; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Button styles (solid / outline variants) */
.btn { display: inline-block; padding: .65rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08);
  color: var(--text); font-weight: 600; font-size: .95rem; }
.btn:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, rgba(77,240,255,.95), rgba(161,77,255,.95)); border: 1px solid rgba(255,255,255,.8); color: #041018; }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.38); }

/* Utility classes (semantic) */
.grid { display: grid; gap: .75rem; }
.grid.auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { padding: 1rem; border-radius: var(--radius); background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow); }

/* Colorful inline accents (tags) */
.tag { display: inline-block; padding: .15em .5em; border-radius: 999px; font-size: .75rem;
  background: rgba(77,240,255,.15); color: var(--text); border: 1px solid rgba(77,240,255,.5); }

/* Layout helpers (mobile-first) */
.container--spacious { padding: 0 1rem; }

/* Focus-visible for keyboard navigation on interactive elements */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Print-friendly defaults */
@media print {
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  .panel, .product-ad { background: #fff; border: 1px solid #ccc; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}