/* Palette & Foundations */
:root {
  --bg: #0a0a12;
  --bg-2: #0e1020;
  --text: #e9e0f1;
  --muted: #b9a8c8;
  --accent: #f5a9c8;       /* pastel pink */
  --accent-2: #e6c069;     /* pastel gold */
  --card: rgba(255,255,255,.08);
  --card-2: rgba(255,255,255,.14);
  --ring: rgba(230, 192, 120, 0.9);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 210, 230, .20) 0%, rgba(246, 208, 120, .14) 60%, rgba(255,255,255,.04) 100%), var(--bg);
  background-attachment: fixed;
  line-height: 1.5;
  min-height: 100%;
  position: relative;
}
/* Layered background: gradient + subtle noise/scanline (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(255, 210, 230, .18), rgba(246, 208, 120, .18)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 4px);
  mix-blend-mode: overlay;
  opacity: 0.95;
  /* no heavy filters to keep GPU light */
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

/* Section headers (namespace) */

/* Layout & Typography */
.image-frame, .featured-image, .content { /* image/frame helpers & content blocks */ }
.container { width: 100%; max-width: clamp(860px, 92vw, 1200px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.28); border-radius: 12px; padding: 1rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tag { display:inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; background: rgba(246,208,120,.25); color: #fff; border: 1px solid rgba(246,208,120,.6); }

/* Glass panels (fallback if backdrop-filter not supported) */
header, main, article, footer, aside { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Typography scale (fluid) */
h1, h2, h3 { line-height: 1.25; margin: .25rem 0; }
h1 { font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: .2px; text-shadow: 0 0 14px rgba(245,169,200,.6); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-top: .25rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #f3e6ff; }

/* Header & hero styling */
header { display: block; padding: 1.25rem; margin: 1rem auto; max-width: clamp(860px, 92vw, 1200px); border-radius: 16px; }
header h1 { font-size: clamp(1.4rem, 3.5vw, 2.6rem); margin: 0 0 .25rem; color: var(--text); }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 1.8vw, 0.95rem); }

/* Main content area */
main { padding: 0.5rem; }
article { padding: 0; margin: 0.5rem 0 1rem; }

/* Image handling */
.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 16px rgba(0,0,0,.25); background: #111; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Featured image wrapper (backwards-compatible) */
.featured-image { margin: 0 0 1rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); }

/* Content utility */
.content { color: var(--text); }

/* Links, buttons, CTAs */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); outline: none; }

/* Focus visibility (WCAG AA-ish) */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Button variants */
.btn, .cta { display: inline-block; padding: .65rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); font-weight: 700; text-align: center; cursor: pointer; color: #111; text-decoration: none; transition: transform .15s ease, background .2s ease, border-color .2s; background: linear-gradient(to bottom right, rgba(255,255,255,.95), rgba(240,240,240,.95)); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline { background: transparent; color: var(--text); border-color: rgba(255,255,255,.7); }
.btn--accent { background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(246,208,120,.95)); color: #111; }
.cta { display:inline-block; }

/* Utility: forms (basic styling to match theme) */
input, textarea, select { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); color: var(--text); padding: .5rem .6rem; border-radius: 8px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(230,192,120,.25); }

/* Lists */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Footer & product ad styling */
.product-ad { text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; margin: 1rem 0; }
.product-ad h3 { margin: 0 0 .25rem; }
.product-ad a { display: inline-block; padding: .5rem 0; color: var(--text); text-decoration: none; width: 100%; }
.product-ad a:hover { text-decoration: underline; color: var(--accent-2); }

/* Footer tweaks */
footer { padding: 1rem; margin: 1rem auto; max-width: clamp(860px, 92vw, 1200px); border-radius: 14px; }

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

/* Reduced motion handling (still accessible) */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}