/* Palette & Layout tokens */
:root {
  --bg: #0b1020;
  --bg-2: #0a1a32;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --text: #eaffff;
  --muted: #a8c6ff;
  --accent: #1ee0ff;
  --accent-2: #4bd9ff;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --focus: 2px solid #9ae3ff;
  --radius: 14px;
}

/* Base & Layout resets */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  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:
    linear-gradient(135deg, rgba(6,12,28,.95) 0%, rgba(5,16,40,.95) 60%, rgba(2,7,14,.95) 100%),
    radial-gradient(circle at 20% 0%, rgba(0,230,255,.15), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global layout helpers */
.container {
  max-width: clamp(640px, 84vw, 1100px);
  margin-inline: auto;
  padding: 1rem;
}

/* Grid & card utilities (responsive) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(30, 210, 255, .22);
  color: #eaffff;
  border: 1px solid rgba(110, 210, 255, .6);
}

/* Typography & content structure */
header, main, footer, aside {
  background: rgba(8, 12, 28, .6);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header { text-align: center; padding: 1.25rem; }
header h1 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.8rem); line-height: 1.04; margin: .25rem 0 .25rem; color: #eaffff; text-shadow: 0 0 8px rgba(30, 210, 255, .6); }
header .meta { font-size: .9rem; color: var(--muted); margin-top: .25rem; }
main { padding: 0; }
article { padding: 0; }

/* Featured image frame (supports .image-frame and legacy .featured-image) */
.image-frame,
.featured-image {
  aspect-ratio: 16/9;
  width: 100%;
  max-width: 100%;
  margin: 1rem auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  display: block;
  background: rgba(0,0,0,.15);
}
.image-frame img,
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content stream inside article */
.content { padding: 0; color: var(--text); font-size: clamp(14px, 0.4vw + 14px, 18px); line-height: 1.6; }
h2, h3 { color: #eaffff; }
h2 { font-size: clamp(1.4rem, 1vw + 1rem, 2.25rem); margin: .75em 0 .5em; }
h3 { font-size: clamp(1.15rem, .8vw + .9rem, 1.6rem); margin: .75em 0; }
p { margin: 0 0 1em; }
blockquote { margin: 1em 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }

/* Lists */
ul { margin: 0 0 1em 1.15em; padding: 0; }
li { margin: .25em 0; }

/* Calls to action & links */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:focus-visible { outline: 2px solid #89e0ff; outline-offset: 2px; }

/* Buttons (solid and outline variants) */
button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  user-select: none;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 210, 255, .6);
  background: linear-gradient(#0aa6ff, #007bd1);
  color: #001018;
  text-shadow: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.btn:focus-visible { outline: 2px solid #66f; outline-offset: 2px; }

/* Outline/ghost CTA */
.cta {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: .65rem .9rem;
  border-radius: 8px;
  text-decoration: none;
}
.cta:hover { background: rgba(0, 212, 255, .15); }

/* Footer / ad block */
.product-ad {
  display: block;
  text-align: left;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
}
.product-ad h3 { margin: .25rem 0; font-size: 1.1rem; }
.product-ad p { margin: .25rem 0 0; }

/* Footer copy */
footer { margin-top: 1rem; text-align: center; padding: 1rem; color: var(--muted); }

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

/* Print styles (basic readability) */
@media print {
  body { color: #000; background: #fff; }
  a { text-decoration: underline; color: #00f; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
}
  
/* Responsive tweaks */
@media (min-width: 640px) {
  .container { padding: 1.25rem; }
  header { padding: 1.5rem; }
  article { padding: 0 0; }
}
