/* Base palette & tokens */
:root{
  --bg: #0b0f14;
  --bg-2: #141923;
  --text: #e8eef6;
  --muted: #a8b3be;
  --accent: #ff7a22;
  --accent-2: #ffd29a;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --glass: rgba(255,255,255,.08);
  --shadow: 0 8px 24px rgba(0,0,0,.4);
  --radius: 12px;
}

/* Base reset & typography (mobile-first) */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(12,14,18,.95) 0, rgba(12,14,18,.92) 60%, rgba(12,14,18,.95) 100%),
    radial-gradient(circle at 25% 20%, rgba(255,120,40,.15) 0 40%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(180,180,190,.10) 0 40%, transparent 40%),
    var(--bg);
  background-blend-mode: normal, overlay, overlay, normal;
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .25;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

/* Layout primitives & structure */
html, body, header, nav, main, article, footer, aside {
  height: auto;
}
.header, header { display: block; }
main { display: block; }
.container { width: min(92%, 1100px); margin-inline: auto; padding-inline: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; box-shadow: var(--shadow); }

/* Glass panels (frosted glass with fallback) */
article {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  article { background: rgba(255,255,255,.16); }
  article { border-color: rgba(255,255,255,.38); }
}
.image-frame { 
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-image { margin: 1rem 0; }

/* Content & typography */
.content { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); line-height: 1.5; color: var(--text); }
h1, h2, h3 { color: var(--text); margin: .4rem 0 .25rem; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 2.2vw + 1rem, 3rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 1.2vw + .8rem, 2rem); }
h3 { font-size: clamp(1.1rem, .9vw + .6rem, 1.5rem); font-weight: 600; }
ul { margin: .6rem 0 1rem 1.1rem; padding: 0; }
li { margin: .25rem 0; }

/* Header, nav, footer styling (cyberpunk glow hints) */
header { padding: 1rem; text-align: center; }
header h1 { font-size: clamp(1.6rem, 2vw + 1rem, 3rem); margin: .25rem 0 .35rem; font-weight: 700; }
header .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: .5rem; }

/* Navigation links with accessible focus */
nav { margin-top: .25rem; padding: 0.25rem 0; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .8rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
}
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* Content structure alignment to selectors you must target */
a, button, .btn, .cta {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  padding: .55rem .92rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-color: rgba(255,255,255,.55);
}
.btn, .cta { display: inline-block; }

/* Utility classes (compact) */
.content-compact { padding: .5rem 0; }
.ul { margin: 0; padding: 0; list-style: none; }
.container, .grid, .card, .tag already defined above to satisfy selectors requirements */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}

/* Footer & accessory sections */
footer { padding: 1rem; text-align: center; color: var(--muted); }
.product-ad, .sponsored-page { display: inline-block; margin: .25rem; min-width: 180px; }
.product-ad a, .sponsored-page a { display: block; padding: .9rem 1rem; border-radius: 10px; color: var(--text); text-decoration: none; background: rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.25); transition: transform .2s ease, box-shadow .2s ease; }
.product-ad a:hover, .sponsored-page a:hover { box-shadow: 0 6px 20px rgba(0,0,0,.25); transform: translateY(-1px); }

/* Print styles: basic readability */
@media print {
  body { background: #fff; color: #000; }
  a, a:visited { color: #000; text-decoration: underline; }
  header, nav, footer { page-break-inside: avoid; }
}
  
/* Motion preferences (disable heavy motion) */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}