/* Tokens */
:root {
  --bg: #0a001a;
  --bg-2: #14072a;
  --text: #eaf0ff;
  --muted: #c3b8d0;
  --accent: #ff2bd6;
  --accent-2: #d7b980;
  --sand: #d9c59a;
  --sand-2: #b89f71;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --radius: 12px;
  --radius-sm: 10px;
  --focus: 3px solid #fff;
  --grid-gap: 1rem;
}

/* Base & Accessibility */
*,
*::before,
*::after { box-sizing: border-box; }
html { height: 100%; }
body {
  height: 100%;
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.55;
  background-color: var(--bg);
  /* Layered background: gradient + hint of noise/scanlines (pure CSS) */
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255,0,170,0.14) 0 25%, transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(255,214,120,0.10) 0 25%, transparent 40%),
    linear-gradient(135deg, rgba(10,0,20,0.9) 0%, rgba(15,0,30,0.95) 60%, rgba(0,0,0,0.95) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Layout containers */
.container {
  width: 100%;
  max-width: clamp(320px, 88vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--grid-gap);
}
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .card { background: rgba(255,255,255,0.18); }
}
.glass { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Typography scaling (fluid) */
h1 { font-size: clamp(1.6rem, 2.6vw + 1rem, 2.9rem); line-height: 1.15; margin: 0 0 .5rem; font-weight: 800; letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 1.2vw + 1rem, 1.75rem); margin: .75rem 0 .25rem; font-weight: 700; }
h3 { font-size: clamp(1rem, 0.8vw + 0.9rem, 1.15rem); margin: .5rem 0; font-weight: 700; color: #f0e6fb; }
p { margin: 0 0 1rem 0; color: #e8e0f6; }
blockquote {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  color: #fff;
}

/* Header / hero elements */
header {
  padding: 1rem;
}
header h1 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto;
  font-weight: 800;
}
header .meta {
  color: var(--muted);
  font-size: .92rem;
  margin-top: .25rem;
}

/* Main article visuals */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  background: #000;
  margin: 0.75rem 0;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content wrapping (glass panels) */
.content { padding: 0.25rem 0 1rem; }

/* Interactive elements */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Button variants (solid + outline) */
.btn {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #a400e6 100%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 6px 14px rgba(255,0,230,0.45);
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .95; }

/* Focus rings for accessibility */
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible {
  /* explicit color aid for focus visibility on links/buttons */
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
}

/* Utility elements */
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }

/* Glass panels usage for sections (e.g., footer ad) */
.product-ad { margin: 1rem 0; padding: 1rem; border-radius: var(--radius); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); box-shadow: var(--shadow); }

/* Print readability tweaks */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
  
/* Minor helpers for layout consistency */
.header-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: .5rem 0; }

/* Nav placeholder (if added in future) */
nav { display: block; }

/* Footer tweaks */
footer { padding: 1rem; }
footer p { color: var(--muted); font-size: .9rem; margin: .5rem 0; }