/* Base tokens */
:root {
  --bg: #0b071a;
  --bg-2: #1a0f2a;
  --text: #e9e1ff;
  --muted: #c9b3e6;
  --accent: #ff4fae;
  --accent-2: #d6a6ff;
}

/* Section: Base styling (mobile-first) */
html, body, header, nav, main, article, footer, aside {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.6;
  background: 
    radial-gradient(circle at 15% -10%, rgba(255, 70, 170, 0.25), transparent 40%),
    linear-gradient(135deg, #0a001a 0%, #140a22 40%, #0b0a14 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 2px, transparent 2px 4px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout container */
.container {
  max-width: clamp(320px, 90vw, 1100px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header / hero spacing and typography */
header {
  padding: 1.25rem 0 0.75rem;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--text);
}
header .meta {
  margin-top: .35rem;
  color: var(--muted);
  font-size: clamp(0.75rem, 0.8vw + 0.5rem, 0.95rem);
}
nav {
  margin-top: .5rem;
}
nav a {
  display: inline-block;
  padding: .5rem .75rem;
  margin: 0 .25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
nav a:hover {
  background: rgba(255,255,255,.08);
  text-decoration: underline;
}
main {
  padding: 1.25rem 0 2rem;
}
article { display: block; }

/* Image framing */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #0b0b14;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.featured-image {
  margin: 1rem 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  /* wrapper to preserve potential glass framing */
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.featured-image > img {
  width: 100%;
  height: auto;
  display: block;
}

/* Glass panels (frosted glass) with fallback */
.content, .product-ad {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}
@supports not (backdrop-filter: blur(12px)) {
  .content, .product-ad {
    background: rgba(255,255,255, 0.18);
  }
}
.content {
  margin: 0.75rem 0 1.25rem;
}
.product-ad {
  display: inline-block;
  margin: .25rem;
}
.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
}
.product-ad a p {
  margin: 0;
  font-weight: 600;
}
.sponsored-page {
  display: inline-block;
  margin: .25rem;
}
.sponsored-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
}
@media (min-width: 720px) {
  .content { padding: 1.25rem 1.25rem; }
}

/* Lists and typography within content */
h1, h2, h3 {
  color: var(--text);
}
h2 { font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem); margin: .75rem 0 .5rem; }
h3 { font-size: clamp(1.05rem, .8vw + 0.95rem, 1.25rem); margin: .5rem 0; color: var(--text); }
p { margin: .5rem 0 1rem; color: #f4eaff; }
ul, li { margin: 0.25rem 0 0.75rem; padding-left: 1.25rem; }
ul { color: #f0e5ff; }
li { margin: .25rem 0; }

/* Image and utility alignment helpers (grid / card) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  font-size: .75rem;
  color: #fff;
}

/* Button and link styles (solid + outline variants) */
a, button, .btn, .cta {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--text); text-decoration: none; outline: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.10);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); }
.btn:active { transform: translateY(0); }
.btn--solid {
  background: linear-gradient(135deg, rgba(255, 70, 150, 0.95), rgba(170, 0, 255, 0.95));
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: var(--text);
}
.cta {
  padding: .75rem 1.125rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.12);
}
.cta:hover { background: rgba(255,255,255,.18); }

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

/* Typography scale and line height for readability */
p { line-height: 1.6; }
.main-copy { font-size: clamp(1rem, 0.8vw + 0.9rem, 1.125rem); }

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

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .content, .product-ad { background: transparent; border: none; box-shadow: none; }
}
