/* Tokens */
:root {
  --bg: #000;
  --bg-2: #0b0b14;
  --text: #eaf0ff;
  --muted: #a6aab8;
  --accent: #ff77c8;
  --accent-2: #b29cff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.28);
  --focus: 0 0 0 3px rgba(255, 119, 200, 0.55);
}

/* Base & reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { line-height: 1.15; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle noise/scanlines (pure CSS) */
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.65), rgba(0,0,0,.65)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  background-size: 100% 100%, 2px 100%, 100% 2px;
  background-position: 0 0, 0 0, 0 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

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

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
  /* Glassy with graceful fallback */
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .card { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(255,255,255,.08); }
}
@media (prefers-color-scheme: light) {
  .card { background: rgba(255,255,255,.12); }
}

.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,.5);
  background: #111;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}

/* Content styling */
.content {
  line-height: 1.6;
  font-size: clamp(0.95rem, 0.9vw + 0.9rem, 1.125rem);
  color: var(--text);
}
.content h2, .content h3 { margin: 1.25rem 0 0.5rem; font-weight: 700; }
.content p { margin: 0.25rem 0 0.75rem; }
.content ul, .content ol { margin: 0.75rem 0 0.75rem 1.25rem; padding: 0; }
.content li { margin: 0.25rem 0; }

/* Section items (lists) visuals */
ul { padding-left: 1.25rem; }
li { line-height: 1.5; }

/* Image and media helpers (for the page's header image area) */
.featured-image { margin: 1rem 0 0; }

/* Product ad / promotional blocks in footer */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.9rem;
  margin: 0.25rem 0;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: transform .2s ease, background .2s ease;
}
.product-ad a, .sponsored-page a { color: inherit; text-decoration: none; display: block; }
.product-ad:hover, .sponsored-page:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }

/* Links, buttons, CTAs */
a, button, .btn, .cta {
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; }
a:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

/* Standardized controls (buttons) */
.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255, 119, 200, .95);
  color: #0b0b0f;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,119,200,1); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

/* Outline variant helper (for alternatives) */
.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.6);
}
.cta { display: inline-block; padding: .55rem .8rem; border-radius: 8px; }

/* Typography scale helpers (utility-like) */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
}

/* Header & page structure refinements to guide the visual hierarchy */
header {
  padding: clamp(1rem, 4vw, 2rem) 0;
  text-align: center;
}
header h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 0.25rem 0 0.25rem;
  font-weight: 800;
  letter-spacing: .2px;
}
header .meta {
  margin-top: .25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  color: var(--muted);
}
nav { margin-top: .5rem; display: inline-block; }
nav a { color: var(--accent-2); padding: .25rem .6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); }

/* Footer layout (promotional blocks arranged neatly) */
footer { padding: 1.25rem 0; display: grid; gap: 0.75rem; }

/* Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
