/* Theme tokens (lavender + forest green) */
:root{
  --bg: #0b0b14;
  --bg-2: #1a1030;
  --text: #eaf2ff;
  --muted: #cbd5e1;
  --accent: #1f7a3f;       /* forest green */
  --accent-2: #c8a8ff;     /* lavender */
  --card: rgba(255,255,255,.08);
  --card-2: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.25);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
  --ring:  #9aff6b;
}

/* Base & globals */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(185,149,255,.25), rgba(28,60,0,.15) 60%), 
              radial-gradient(circle at 15% 10%, rgba(180,120,255,.25), transparent 40%), 
              radial-gradient(circle at 80% 60%, rgba(0,120,60,.25), transparent 40%), 
              var(--bg);
  background-blend-mode: overlay, overlay, overlay, normal;
  min-height: 100vh;
  position: relative;
}
/* Subtle noise/scanline overlay (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right,  rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .25;
}

/* Layout primitives */
header, nav, main, article, aside, footer { position: relative; z-index: 1; }

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

/* Grid helpers (responsive utilities) */
.grid { display: grid; gap: 1rem; }

/* Glass panels (with backdrop-filter where supported) */
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card, .guest-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Typography & sections */
header { padding: 1.25rem; text-align: center; }
header h1 { margin: 0; font-size: clamp(1.25rem, 2.5vw + 1rem, 2.25rem); line-height: 1.15; font-weight: 700; color: #fff; letter-spacing: .2px; }

/* Main content flow */
main { padding: 1rem 0; display: grid; place-items: center; }

/* Footer/ads */
footer { padding: 1rem; display: grid; gap: .75rem; place-items: center; }

/* Utility components */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #eafff6;
  background: rgba(46,128,72,.25);
  border: 1px solid rgba(46,128,72,.5);
}
.card + .card { margin-top: .5rem; }

/* Link, button, CTA styles (focus-visible accessible) */
a, button, .btn, .cta {
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 8px;
  border: 1px solid rgba(46,128,72,.9);
  background: rgba(46,128,72,.95);
  color: #fff;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.btn.secondary {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255,255,255,.4);
}
.product-ad, .sponsored-page {
  display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.28);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Lists */
ul, li { margin: 0; padding: 0; list-style: none; }

/* Hero content layout (compact, responsive) */
.hero {
  display: grid;
  gap: 1rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.hero p { margin: 0; color: var(--muted); }

/* NAV/ASIDE (presentational defaults) */
nav { padding: .5rem 0; }
aside { padding: .5rem 0; }

/* Print accessibility */
@media print {
  body::before { display: none; }
  header, main, footer { background: transparent; color: #000; }
  .image-frame { border: none; box-shadow: none; }
}

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

/* Layout tweaks for larger screens */
@media (min-width: 768px) {
  main { padding: 2rem 0; }
  .container { padding: 0 2rem; }
}

/* Print-friendly color adjustments (optional) */
@media print {
  :root { color-scheme: light; }
}