/* Palette & Tokens */
/* Mobile-first, cyan + mustard cyberpunk aesthetic with glass panels */
:root{
  --bg: #040b12;
  --bg-2: #0a1620;
  --text: #eaffff;
  --muted: #a5d8e8;
  --accent: #00e5ff;   /* cyan */
  --accent-2: #d9b400; /* mustard */
  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.14);
  --card-border: rgba(255,255,255,.25);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 12px;
  --focus: #ffd966;
  --gap: 1rem;
}

/* Reset-lite */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(0,230,255,.08), rgba(0,0,0,.25) 60%),
    radial-gradient(circle at 15% -10%, rgba(0,230,255,.14), transparent 40%),
    linear-gradient(#030e14 0%, #041522 60%, #04161e 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: break-word;
  overflow-x: hidden;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  opacity: .14;
  mix-blend-mode: overlay;
  z-index: 0;
}

/* Layout helpers */
.container { max-width: clamp(28rem, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: var(--gap); grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border:1px solid var(--card-border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.tag { display:inline-block; padding:.25em .6em; border-radius:999px; font-size:.75rem; background: rgba(0, 229, 255, .9); color: #001d26; }

/* Glass panels (fallback if backdrop-filter unsupported) */
.glass {
  background: rgba(12, 20, 38, 0.22);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(12,20,38,0.75); border-color: rgba(255,255,255,.4); }
}

/* Image framing styles (legacy selector as required) */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  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; }

/* Alternate image wrapper used by provided HTML */
.featured-image {
  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);
}
.featured-image img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Global content blocks */
html, body, header, nav, main, article, aside, footer {
  /* structural defaults kept lean; specific visuals applied via classes below */
}
header, main, footer, aside {
  padding: 1rem;
}
header { text-align: center; }
main { display:block; }
article { max-width: 60ch; margin-inline: auto; padding: 0; }

/* Typography (fluid) */
h1, h2 { margin: .4rem 0 0.5rem; font-weight: 800; letter-spacing: .2px; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.75rem); line-height: 1.05; }
h2 { font-size: clamp(1.25rem, 2.5vw + .5rem, 2.25rem); }
p { margin: 0 0 1rem; font-size: clamp(1rem, .8vw + 0.9rem, 1.25rem); }

/* Content container for article text alignment */
.content { padding: 0; color: var(--text); }

/* Link & button aesthetics (accessible, high-contrast) */
a, button, .btn, .cta {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease;
}
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  background: linear-gradient(to bottom right, rgba(0,229,255,.95), rgba(0,229,255,.75));
  color: #001b1e;
  font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 229, 255, .8);
}
.cta { display:inline-block; }

/* List styling */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Section & layout element styling for the page flow */
header { background: rgba(2,8,20,.28); border:1px solid rgba(255,255,255,.25); border-radius: var(--radius); }

/* Feature article layout tweaks */
article { display:block; padding: .5rem 0; }

/* Product ad / sponsor blocks (footer areas) */
.product-ad, .sponsored-page, .sponsored { margin: .75rem 0; padding: .75rem; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); text-align: center; }
.product-ad a, .sponsored-page a { display: inline-block; padding: .5rem 1rem; border-radius: 999px; background: rgba(0, 229, 255, .85); color: #001; font-weight: 700; border: 0; }

/* Footer text & structure */
footer { display: block; text-align: center; font-size: .92rem; color: var(--muted); padding: 1.25rem 1rem; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, main, article, footer { background: transparent; border: none; box-shadow: none; }
  .container { max-width: 100%; padding: 0; }
}

/* Responsiveness helpers (mobile-first) */
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .image-frame, .featured-image { border-radius: 10px; }
  header { padding: .75rem; }
  article { padding: 0 .25rem; }
  .btn { width: auto; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}