/* Tokens */
:root {
  --bg: #0b0b14;
  --bg-2: #141421;
  --text: #e8e8e8;
  --muted: #b5b5c3;
  --accent: #ff2bd9;
  --accent-2: #ff7a1f;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.25);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.25);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.40);
  --focus: #7bd2ff;
  --radius: 14px;
}

/* Baseline */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 1.2vw + 12px, 18px);
  line-height: 1.5;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(255, 60, 160, 0.22) 0%, rgba(255, 122, 31, 0.22) 60%, rgba(255, 60, 160, 0.22) 100%),
    radial-gradient(circle at 70% -10%, rgba(255, 100, 0, 0.15), transparent 30%),
    #0b0b14;
  background-blend-mode: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.03) 0 1px, transparent 1px 2px);
  opacity: 0.25;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}

/* Layout helpers (utility) */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25);
}

/* Glass panels with graceful fallback */
header, .glass-panel, footer .glass-panel {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, .glass-panel, footer .glass-panel { background: rgba(255,255,255,0.18); }
}

/* Header / hero */
header {
  padding: 1.25rem;
  text-align: center;
  margin: 2rem auto;
  max-width: var(--container, 1100px);
}
header h1 {
  margin: 0.25rem auto 0.5rem;
  font-size: clamp(1.8rem, 3.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
header .meta {
  margin: 0 auto 0.75rem;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: var(--muted);
}
header nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
header nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform 0.15s ease, background-color 0.2s ease;
}
header nav a:hover { background: rgba(0,0,0,0.35); transform: translateY(-1px); }
header nav a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Main / content */
main {
  padding: 1rem 0 2rem;
}
article {
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 1rem;
}
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  margin: 1rem auto;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Typography / content hierarchy */
h2, h3 {
  color: #fff;
  margin-top: 1.25rem;
}
h2 { font-size: clamp(1.25rem, 2.2vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 700; }
p { color: #e9e9e9; margin: 0.75rem 0; }
blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(0,0,0,0.22);
  border-radius: 6px;
  color: #fff;
  quotes: "“" "”" "‘" "’";
}
ul { margin: 0.75rem 0 1.25rem 1.2rem; padding: 0; }
li { margin: 0.35rem 0; }

/* Image and content framing helper */
.content {
  padding: 0.25rem;
}
.content > * { margin-block: 0.75rem; }

/* Links and CTAs */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.55em 1em;
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.btn {
  font-weight: 700;
}
.btn--solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.btn--solid:hover { transform: translateY(-1px); }
.btn--outline {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.40);
  color: var(--text);
}
.btn--outline:hover { background: rgba(0,0,0,0.35); transform: translateY(-1px); }

/* Footer / product ad blocks (glass panels) */
footer {
  padding: 2rem 0;
}
.product-ad {
  display: block;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  text-align: left;
}
.product-ad p { margin: 0; font-weight: 600; }
.sponsored-page { margin-top: 0.75rem; }

/* Lists utility tweaks (for compact, legible lists) */
ul.big { padding-left: 1rem; }

/* Responsive helpers */
@media (min-width: 720px) {
  .container { padding-inline: 0; }
  main { padding: 1.5rem 0 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Print styles (readable) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, footer { page-break-inside: avoid; }
}