/* Base tokens - silver + turquoise cyberpunk theme */
:root{
  --bg: #0b0f14;
  --bg-2: #11161c;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --text: #e6feff;
  --muted: #a8dbe4;
  --accent: #2ee6d6;
  --accent-2: #6be6e2;
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 24px rgba(0,0,0,.38);
  --radius: 12px;
}
html, body { height: 100%; }
* { box-sizing: border-box; }

/* Layout primitives */
html, body, header, nav, main, article, footer, aside { }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.5;
  min-height: 100dvh;
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines + glow accents */
  background-image:
    linear-gradient(135deg, rgba(15,21,26,.98) 0%, rgba(9,12,16,.98) 60%, rgba(15,21,26,.98) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,0) 1px 2px),
    radial-gradient(circle at 15% 10%, rgba(46,230,214,.08), transparent 40%);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }

/* Shell containers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.grid { display: grid; gap: 1rem; }
.card { padding: 1rem; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.25); }

/* Type scale & typography */
h1, h2, h3 { line-height: 1.08; margin: .25rem 0; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 3vw + 0.5rem, 3.25rem); letter-spacing: .2px; color: var(--text); }
h2 { font-size: clamp(1.3rem, 2.2vw + .4rem, 2.2rem); color: var(--text); }
p { color: var(--muted); }

/* Header / hero styling */
header {
  padding: 1rem 0;
}
header h1 { color: var(--text); font-size: clamp(1.75rem, 3vw + 1rem, 3.25rem); margin: 0; }
header .meta { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .9rem; margin-top: .25rem; }

/* Image framing (supported selector) */
.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 20px rgba(0,0,0,.35);
  background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Fallback styled image wrapper (also style the existing featured image) */
.featured-image { border-radius: 12px; overflow: hidden; margin-bottom: .75rem; }
.featured-image img { width: 100%; height: auto; display: block; }

/* Glass panels (frosted glass) */
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  /* Fallback when backdrop-filter is not supported */
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .glass { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); }
}
.section { padding: .75rem 0; }

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

/* Links & buttons accessibility */
a {
  color: inherit;
  text-decoration: none;
  outline: none;
}
a:hover, a:focus { text-decoration: underline; color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Buttons & CTAs */
.btn {
  display: inline-block;
  padding: .65rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  user-select: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #022029;
}
.btn--solid:hover { filter: brightness(1.05); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.4);
}
.btn--outline:hover { background: rgba(255,255,255,.08); }

/* Utility classes */
.container--tight { padding-inline: 0; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card--compact { padding: .75rem; }

/* Content helpers (for potential .content usage) */
.content { max-width: 60ch; }

/* Site-wide navigation styling (legacy link in header) */
nav a {
  display: inline-block;
  padding: .35rem .6rem;
  border-radius: 6px;
  color: var(--text);
}
nav a:hover { text-decoration: underline; }

/* Footer / ad blocks */
.product-ad, .sponsored-page {
  display: inline-block;
  padding: .75rem 1rem;
  margin: .25rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a, .sponsored-page a { display: block; color: var(--text); text-decoration: none; }
.product-ad a p, .sponsored-page a p { margin: 0; font-weight: 600; }

/* Page sections arrangement */
main { padding: 1rem 0 2rem; }
header, main, footer { width: 100%; }

/* Print styles - basic readability */
@media print {
  body { background: white; color: #000; -webkit-print-color-adjust: exact; }
  a { text-decoration: underline; color: inherit; }
  .glass, .card, .product-ad, .sponsored-page { background: none; border: none; }
}
 
/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}