/* 01. Base & Palette */
:root{
  --bg: #041015;
  --bg-2: #0a2b29;
  --text: #e8fbff;
  --muted: #a5d8d9;
  --accent: #ff9bcf;       /* pastel pink */
  --accent-2: #7af2d3;     /* jade/mint accent */
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.25);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 14px;
}
html, body, header, nav, main, article, footer, aside { text-rendering: optimizeLegibility; }
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(0, 90, 70, 0.40), rgba(0, 60, 50, 0.20) 60%, rgba(0,0,0,0.45)),
    radial-gradient(circle at 60% -10%, rgba(0,255,170,.18), transparent 40%),
    linear-gradient(to bottom, #061012 0%, #041013 60%, #031012 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: multiply, normal, normal, overlay;
  min-height: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }

/* 02. Layout Utilities */
.container { width: min(1100px, 92%); margin-inline: auto; padding: 0 0.5rem; }
.grid { display: grid; gap: 1rem; }

/* 03. Core Components */
header { padding: 2rem 0 1rem; text-align: center; }
header h1 { font-size: clamp(1.8rem, 2vw + 1rem, 3.2rem); line-height: 1.1; margin: 0 0 .4rem; font-weight: 700; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 0.6vw + .2rem, .95rem); }
main { padding: 1rem 0 2rem; }
article { max-width: clamp(640px, 90%, 980px); margin: 0 auto; padding: 0 1rem; }

/* 04. Image & Media */
.featured-image { margin: 1rem auto 1.25rem; padding: 0 0.25rem; width: 100%; display: block; }
.featured-image img { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.image-frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); background: #000; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* 05. Content & Typography */
.content { color: var(--text); }
ul, li { list-style-position: outside; margin: .25rem 0; padding: 0; }
ul { padding-left: 1.25rem; }
li { padding: 0.15rem 0; }

/* 06. Product Ad / Footer panels */
.product-ad, .sponsored-page { display: block; padding: .75rem; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); text-align: center; }
footer { padding: 1.5rem; display: grid; gap: 1rem; grid-template-columns: 1fr; justify-items: center; text-align: center; }
footer > section { width: 100%; }
footer p { margin: .25rem 0 0; color: var(--muted); }

/* 07. Interactive Elements & Links */
a, button, .btn, .cta { color: var(--text); text-decoration: none; display: inline-block; font-weight: 600; border-radius: 999px; padding: .65rem 1rem; border: 0; cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.btn, .cta { background: var(--accent); color: #0b1017; }
.btn.secondary { background: transparent; color: var(--accent-2); border: 1px solid rgba(122, 242, 211, .5); }
.btn:hover { background: #ff8bd0; transform: translateY(-1px); }

/* 08. Glass Panels (fallback + backdrop-filter) */
.glass { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* 09. Accessibility & Motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { color: #000; background: #fff; }
  a, a:visited { color: #000; text-decoration: underline; }
  .glass { background: transparent; border: none; box-shadow: none; }
}
@media (min-width: 640px) {
  footer { grid-template-columns: repeat(3, 1fr); text-align: center; }
  .product-ad, .sponsored-page { padding: 1rem; }
  .container { padding: 0 1rem; }
}

/* 10. Section Headers (for structure familiarity) */
h2, h3 { color: #eaffff; margin-top: 1.25rem; }
h2 { font-size: clamp(1.25rem, 1vw + 1rem, 2rem); }
h3 { font-size: clamp(1rem, 0.8vw + .9rem, 1.25rem); font-weight: 700; }
blockquote { border-left: 3px solid rgba(122,242,211,.6); padding: .25rem 0 .25rem .9rem; margin: .75rem 0; color: #eaffff; opacity: .95; }
p { margin: .75rem 0; }