/* Section: Global & Palette */
:root {
  --bg: #0b0610;
  --bg-2: #1a0f2a;
  --bg-3: #2a1a44;
  --text: #f5f3ff;
  --muted: #d8d2f0;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --accent: #bfa8ff;
  --accent-2: #d8c2ff;
  --shadow: 0 8px 24px rgba(0,0,0,0.28);
  --radius: 12px;
  --focus: 2px solid rgba(214, 200, 255, 0.9);
}

/* Section: Base & Layout Reset */
html, body { height: 100%; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: 
    linear-gradient(135deg, rgba(109,84,178,0.25) 0%, rgba(170,143,213,0.25) 60%, rgba(0,0,0,0) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 75% -10%, rgba(150,122,231,0.18), transparent 40%),
    #0b0610;
  background-blend-mode: overlay, overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}
@media (prefers-color-scheme: light) {
  html, body { color: #141414; background: #f7f5fb; }
  :root { --text: #1a1a1a; --surface: rgba(0,0,0,0.06); }
}

/* Section: Helpers & Utilities */
.container { width: min(92%, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; grid-gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Section: Glass & Surfaces (fallback included) */
header, main, article, footer, aside {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
}
@supports not (backdrop-filter: blur(10px)) {
  header, main, article, footer, aside { background: rgba(255,255,255,0.14); }
}
@media (prefers-reduced-motion: reduce) {
  header, main, article, footer, aside { transition: none; animation: none; }
}

/* Section: Typography */
h1 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 0.5rem; font-weight: 800; color: var(--text); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.8rem); margin: 1.25rem 0 0.5rem; color: var(--text); }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 0.75rem 0 0.25rem; color: var(--text); }
p { color: var(--text); opacity: 0.95; margin: 0.5rem 0 1rem; }
em { font-style: italic; opacity: 0.95; }
blockquote { margin: 1rem 0; padding: 0.75rem 1rem; border-left: 3px solid var(--accent); background: rgba(255,255,255,0.08); }

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

/* Optional extra image container (existing HTML uses featured-image) */
.featured-image { margin: 0.5rem 0 1rem; }

/* Section: Content Containers & Cards */
.content { padding: 0.25rem 0 0.75rem; }
.card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: 12px; padding: 1rem; }

/* Section: Links & Buttons (interactive states) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a:focus-visible, a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--accent-2); }
button, .btn, .cta {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(189, 168, 255, 0.25);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn.primary, .cta.primary {
  background: linear-gradient(135deg, rgba(214,203,255,0.95), rgba(188,162,255,0.95));
  color: #0d0926;
  border: 1px solid rgba(255,255,255,0.6);
}
a.btn:hover, button.btn:hover, .cta:hover { transform: translateY(-1px); }
a.btn:focus-visible, button.btn:focus-visible, .cta:focus-visible { outline: 2px solid rgba(214,200,255,0.95); outline-offset: 2px; }

/* Section: Lists & Misc */
ul, ol { margin: 0.75rem 0 0.75rem 1.25rem; padding: 0; }
li { margin: 0.25rem 0; }

/* Section: Layout Helpers for content centering on wide screens */
main { padding: 0.25rem 0; }
article { max-width: clamp(680px, 85vw, 1100px); margin: 0 auto; padding: 0 0.25rem; }

/* Section: Minor utility visuals (for footer ads) */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: 0.75rem;
  margin: 0.25rem 0;
}
.product-ad a, .sponsored-page a { display: inline-block; padding: 0.5rem 0.75rem; border-radius: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); }

/* Section: Footer & page end */
footer { margin-top: 1rem; padding: 1rem; text-align: center; }

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #00f; text-decoration: underline; }
  header, main, article, footer { border: none; background: transparent; box-shadow: none; }
}
