/* Tokens & Base */
:root {
  --bg: #0b002b;
  --bg-2: #2a003a;
  --text: #f7f3ff;
  --muted: #d9cbff;
  --accent: #ff6aff;
  --accent-2: #ffd96a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Layout Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10px 10px, rgba(255,0,180,.40) 2px, transparent 3px),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0, rgba(0,0,0,.04) 1px, transparent 1px, transparent 2px),
    linear-gradient(135deg, var(--bg-2), rgba(0,0,0,.25) 60%);
  background-size: 20px 20px, 2px 2px, cover;
  background-blend-mode: overlay, overlay, normal;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Global Links & Focus */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Helpers & Utilities */
.container {
  width: 100%;
  max-width: clamp(680px, 80vw, 1100px);
  margin-inline: auto;
  padding: 0 1rem;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Section: Base Typo & Glass Surface */
header, main, footer, aside { box-sizing: border-box; }
header {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,.12));
  opacity: .25;
}
header h1 {
  margin: .25rem 0 .5rem;
  font-size: clamp(1.75rem, 3.5vw + 1rem, 3.75rem);
  line-height: 1.04;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .2px;
}
header .meta {
  font-size: clamp(0.9rem, 0.6vw + 0.8rem, 1rem);
  color: var(--muted);
}
nav { margin-top: .75rem; }
nav a {
  display: inline-block;
  padding: .4rem .75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text);
}
nav a:hover { background: rgba(255,255,255,.15); }

main { padding: 1rem 0 2rem; }
article { display: block; }

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

/* Content & Typography */
.content { padding: 0; color: var(--text); }
.content h2 { font-size: clamp(1.5rem, 2.4vw + 1rem, 2.5rem); margin: .75rem 0 .5rem; color: var(--text); }
.content h3 { font-size: clamp(1.15rem, 1.6vw + .8rem, 1.6rem); margin: .75rem 0; color: var(--text); }
.content p { color: var(--muted); margin: .5rem 0 1rem; font-size: clamp(1rem, 0.8vw + .9rem, 1.15rem); }
.content em { font-style: italic; color: #fff; }

/* Lists & Blocks */
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; color: var(--text); }
li { margin: .25rem 0; }
blockquote {
  margin: .75rem 0; padding: .5rem 1rem; border-left: 4px solid var(--accent); background: rgba(255,255,255,.08);
  border-radius: 6px; color: #fff;
}

/* Utility: Cards & Cards Grid */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.14); }
}
.tag {
  display: inline-block;
  padding: .15em .5em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}

/* Section: Product Ad / Footer Ad Blocks */
.product-ad, .sponsored-page {
  display: inline-block;
  padding: .6rem 1rem;
  margin: .25rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a, .sponsored-page a { color: #fff; }

/* Footer */
footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
}
footer p { margin: .25rem 0; }

/* Buttons (solid & outline) */
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 600;
  transition: transform .15s ease, background .2s ease;
}
.btn.primary {
  background: linear-gradient(135deg, rgba(255,106,255,.95), rgba(255,216,106,.95));
  border: 1px solid rgba(255,255,255,.9);
  color: #000;
}
.btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Form elements (if present) */
input, select, textarea { font: inherit; color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--border); border-radius: 6px; padding: .5rem; }

/* Print stylesheet (lightweight) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; }
  a { color: #00f; text-decoration: underline; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
