/* Base Tokens */
:root{
  --bg: #0b0b12;
  --bg-2: #1a1020;
  --text: #f8eaff;
  --muted: #d8bfd7;
  --accent: #ff2a6f;
  --accent-2: #e60055;
  --glass: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.18);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* Base & Layout */
html, body { height: 100%; }
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.55;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 20% 0, rgba(255, 60, 120, .18), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 40, 100, .12), transparent 40%),
    linear-gradient(135deg, rgba(0,0,0,.28), rgba(0,0,0,.12) 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body, header, nav, main, article, aside, footer { }

/* Glass panels (fallback if backdrop-filter unavailable) */
.glass {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.22); }
}

header {
  padding: 1rem;
}
header > :is(h1, h2, p, nav) { text-align: center; }

/* Header variants to emphasize hero pattern */
header h1 {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.8rem);
  margin: .25rem 0 0.25rem;
  letter-spacing: .2px;
}
header .meta {
  margin: .25rem 0 0.5rem;
  font-size: .92rem;
  color: var(--muted);
}

/* Main container sizing & grid helpers */
.container {
  width: 100%;
  max-width: clamp(640px, 88vw, 1120px);
  margin-inline: auto;
  padding: 0 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  padding: .9rem;
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid rgba(255,255,255,.28);
  color: var(--muted);
  background: rgba(255,255,255,.06);
}

/* Typography scale (fluid) */
h2 { font-size: clamp(1.25rem, 1.2vw + .5rem, 1.75rem); margin: .9rem 0 .5rem; }
h3 { font-size: clamp(1.05rem, .9vw + .7rem, 1.35rem); margin: .75rem 0; }
p { font-size: clamp(0.95rem, .4vw + .9rem, 1.125rem); margin: .6rem 0; }

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

/* Section content styling */
.content {
  padding: .5rem 0;
}
.article {
  display: block;
  padding: 0;
}
ul, ol { padding-left: 1.25rem; margin: .4rem 0; }
li { margin: .25rem 0; }

/* Links & interactive elements */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* Buttons & CTAs */
.btn, .cta {
  font-family: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: .75rem 1.1rem;
  display: inline-block;
  text-align: center;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn {
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.btn:hover { transform: translateY(-1px); background: var(--accent-2); }
.btn:active { transform: scale(0.98); }

.btn.outline, .cta {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
}
.btn.outline:hover { background: rgba(255,42,111,.12); }

.cta { padding: .75rem 1rem; }

/* Product ad module in footer */
.product-ad {
  display: block;
  padding: .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
}
.product-ad a {
  display: block;
  padding: .75rem;
  text-align: center;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,0,120,.25), rgba(0,0,0,.25));
  border: 1px solid rgba(255,255,255,.25);
}
.sponsored-page a { display: block; padding: .75rem; text-align: center; color: #fff; text-decoration: none; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); }

/* Header nav styling */
nav {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .5rem;
}
nav a {
  color: var(--text);
  padding: .25rem .5rem;
  border-radius: 6px;
}
nav a:hover { text-decoration: underline; }

/* Footer layout (responsive blocks) */
footer {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  footer { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
@media (max-width: 719px) {
  header, footer { padding: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

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