/* 1. Tokens & Base */
:root {
  --bg: #041b14;
  --bg-2: #0d2a26;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --text: #eafff5;
  --muted: #b7f0e2;
  --accent: #7efbd3;
  --accent-2: #ffb6d9;
  --card: rgba(0, 0, 0, 0.22);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --ring: 0 0 0 3px rgba(126, 251, 211, 0.65);
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  background-image:
    linear-gradient(135deg, rgba(6,28,25,1) 0%, rgba(6,28,25,0.92) 60%, rgba(10,30,28,1) 100%),
    radial-gradient(circle at 20px 0px, rgba(120,255,235,0.08) 0, rgba(120,255,235,0.08) 2px, transparent 2px) 0 0/40px 40px,
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 2px);
  background-blend-mode: overlay, overlay, overlay;
  padding-block: 0;
}
a { color: var(--accent-2); text-decoration: none; }

/* 2. Layout primitives */
.container { max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: 12px; padding: .75rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* 3. Section components usage targets */
header, nav, main, article, aside, footer { display: block; }

/* 4. Header / Hero */
header { padding: 2rem 1rem 1rem; text-align: center; }
header h1 { font-size: clamp(1.6rem, 1.2rem + 2.5vw, 3rem); line-height: 1.15; margin: 0 0 .5rem; letter-spacing: .2px; }
header .meta { font-size: clamp(0.75rem, 0.5vw, 0.9rem); color: var(--muted); }

/* 5. Navigation */
nav { margin-top: .5rem; display: inline-flex; gap: .5rem; justify-content: center; }

/* 6. Main content / article */
main { display: block; }
.article, article { display: block; }

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

/* 8. Content helpers */
.content { padding: 0 0 1rem; }

/* 9. Lists & tags */
ul, li { margin: 0.25rem 0; padding-left: 1.25rem; }
ul { list-style: disc; }
.tag { display:inline-block; padding:.15em .6em; border-radius:999px; font-size:.75rem; background: rgba(126,251,211,0.25); border:1px solid rgba(126,251,211,0.55); color:#eafff0; }

/* 10. Product ad / footer promo blocks */
.product-ad { display: block; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: .75rem; text-align: center; margin: .5rem 0; }

/* 11. Links & actions (button styles) */
.btn { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:.65rem 1rem; font-weight:600; font-size: clamp(0.9rem, 0.5vw + 0.9rem, 1rem); border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease; text-decoration: none; }
.btn + .btn { margin-left: .5rem; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #3bd3c8); color: #022922; border: none; }
.btn.primary:hover { transform: translateY(-1px); }
.btn.outline { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--border); }

/* Focus states (AA accessible) */
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--ring); }

/* 12. Global typography tweaks */
h2, h3 { margin: .75rem 0 0.25rem; }
p { margin: .5rem 0 1rem; }

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

/* 14. Responsive tweaks */
@media (max-width: 700px) {
  header { padding: 1.25rem 1rem; }
  header h1 { font-size: clamp(1.4rem, 3vw + 1rem, 2.4rem); }
  .container { padding-inline: 0.75rem; }
}

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

/* 16. Small utilities (layout helpers) */
aside { display: none; } /* optional content outside main focus */
blockquote { margin: 1rem 0; padding: .5rem 1rem; border-left: 3px solid rgba(126,251,211,0.5); color: var(--muted); }