/* Section: Base */
:root {
  --bg: #0a0b14;
  --bg-2: #0b1a2b;
  --text: #e9f6ff;
  --muted: #a9b8d2;
  --accent: #7bd6ff;      /* pastel blue/teal */
  --accent-2: #ff89d4;    /* pastel pink */
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.14);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  background:
    linear-gradient(135deg, rgba(123,214,255,.12) 0%, rgba(255,137,212,.12) 50%, rgba(123,214,255,.12) 100%),
    linear-gradient(to bottom, rgba(8,12,24,.95), rgba(6,9,18,.95)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }

/* Section: Layout helpers */
.container { max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Section: Typography & structure */
header, main, footer, aside, article { display: block; }
header { padding: 1.5rem; text-align: center; }
header h1 { font-size: clamp(1.75rem, 2.8vw + 1rem, 3.25rem); line-height: 1.1; margin: .25rem 0 0.25rem; font-weight: 700; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
nav { margin-top: .75rem; }
nav a { display: inline-block; padding: .5rem 0.75rem; border-radius: 999px; color: var(--text); text-decoration: none; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.15); }
nav a:hover, nav a:focus-visible { text-decoration: underline; }

/* Section: Content panels (glassy look) */
header, main, footer, aside, .glass { 
  background: var(--card); 
  border: 1px solid rgba(255,255,255,.25); 
  border-radius: var(--radius); 
  padding: 1rem; 
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside, .glass { background: var(--card-strong); }
}
main { padding: 1rem; }

/* Section: Featured image frame (legacy selector support) */
.image-frame { aspect-ratio: 16/9; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.25); background: #000; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Specific image container used by HTML */
.featured-image { width: 100%; display: block; margin: 0 auto 1rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); }
.featured-image img { width: 100%; height: auto; display: block; }

/* Section: Content text styles */
.content { font-size: clamp(1rem, 0.9vw + 0.9rem, 1.125rem); color: var(--text); }
h2, h3 { color: var(--text); margin: .75rem 0 .5rem; line-height: 1.25; }
p { margin: 0 0 1rem; color: color-mix(in oklab, black, white 0%, 0.92); }
blockquote { margin: 1rem 0; padding: .5rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); background: rgba(0,0,0,.15); border-radius: 6px; }

/* Section: Lists & tags */
ul { padding-inline: 1.25rem; margin: .75rem 0; }
li { margin: .25rem 0; }
.tag { display: inline-block; padding: .15em .5em; border-radius: 999px; font-size: .8rem; background: rgba(123,214,255,.25); color: var(--text); border: 1px solid rgba(123,214,255,.5); }

/* Section: Product ad / footer content blocks (glass panels) */
.product-ad, .sponsored-page { display: block; padding: .75rem; text-align: center; }
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: inline-block; padding: .5rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.15); }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Section: Links & buttons (interactive states) */
a, button, .btn, .cta { cursor: pointer; color: var(--text); text-decoration: none; }
a { color: var(--accent); }
a:hover, a:focus-visible { text-decoration: underline; outline: 0; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.05rem; border-radius: 8px; border: 1px solid rgba(123,214,255,.6); background: rgba(123,214,255,.15); color: #eaffff; font: inherit; line-height: 1; transition: transform .15s ease, background .2s ease, border-color .2s; text-shadow: none; }
.btn:hover { transform: translateY(-1px); background: rgba(123,214,255,.25); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(135deg, rgba(0,180,255,.95), rgba(123,214,255,.95)); border-color: rgba(255,255,255,.6); color: #04131b; }
.btn.ghost { background: transparent; border-color: rgba(123,214,255,.8); color: var(--text); }
.cta { padding: .75rem 1.25rem; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; background: rgba(0,0,0,.25); }

/* Section: List styling defaults (ul, li) already covered above */

/* Section: Responsive tweaks */
@media (min-width: 720px) {
  main { padding: 1.5rem 0; }
  .featured-image { max-width: 860px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 940px) {
  .container { padding-inline: 0; }
  article { display: grid; grid-template-columns: 1fr; gap: 1rem; }
  .hero { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; }
}

/* Section: Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  header > h1 { animation: none; opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

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