/* Palette & Theme (Tokenized) */
:root{
  --bg: #0a0f14;
  --bg-2: #0a1f16;
  --text: #eafff7;
  --muted: #b8d9ca;
  --accent: #1fb6ff;      /* electric blue */
  --accent-2: #4bd6ff;    /* lighter blue for focus/accents */
  --surface: rgba(14, 40, 60, 0.22);
  --ring: 0 0 0 3px rgba(79, 221, 255, 0.4);
}

/* Reset & Base */
html, body { height: 100%; }
* { box-sizing: border-box; }
html, body { margin: 0; }

/* Layered Background: gradient + sage-green polka dots + subtle scanlines */
body {
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, rgba(134,196,140,.18) 2px, transparent 2px),
    linear-gradient(135deg, rgba(8,40,40,.75), rgba(0,0,0,.65) 60%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-size: 28px 28px, 100% 100%, 100% 100%;
  background-attachment: fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  /* Subtle motion preference respected globally */
  animation: none;
}
@media (prefers-reduced-motion: reduce){
  body { background-attachment: scroll; }
}

/* Layout primitives */
html, body, header, nav, main, article, aside, footer {
  display: block;
}
.container { width: 100%; padding: 0 1rem; margin: 0 auto; max-width: clamp(320px, 92vw, 1100px); }

/* Glassy surfaces (fallback-preferred) */
header, main, footer, aside, article {
  background: rgba(12, 28, 40, 0.22);
  border: 1px solid rgba(43, 213, 255, 0.32);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header { text-align: center; margin: 1rem auto; }
header h1 { font-size: clamp(1.6rem, 2.8vw + 1rem, 2.8rem); margin: 0 0 .25rem; color: #eaffff; line-height: 1.08; }
header .meta { font-size: .9rem; color: var(--muted); }

/* Simple navigation */
nav { display: flex; justify-content: center; gap: .5rem; padding-top: .25rem; }
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(43,213,255,.4);
}
nav a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Main content & typography */
main { padding: 1rem 0; }
article { display: block; }
.content { padding: .25rem 0; color: var(--text); }

/* Hero media & imagery */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  background: #111;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Headings & content scale */
h2 { font-size: clamp(1.4rem, 2.3vw + 1rem, 2.2rem); margin: .75rem 0 0.25rem; }
h3 { font-size: clamp(1.1rem, 1.5vw + .8rem, 1.4rem); margin: .75rem 0 .25rem; }

/* Lists & cards */
ul, ol { padding-left: 1.25rem; margin: .25rem 0 .75rem; }
li { margin: .25rem 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(43,213,255,.5);
  background: rgba(43,213,255,.15);
  color: #eaffff;
}

/* Utility/ad sections (footer area) */
.product-ad, .sponsored-page {
  display: inline-block;
  width: 45%;
  min-width: 200px;
  padding: .75rem;
  margin: .25rem;
  text-align: center;
  background: rgba(20,28,40,.28);
  border: 1px solid rgba(43,213,255,.4);
  border-radius: 12px;
}
.product-ad a, .sponsored-page a { color: #eaffff; text-decoration: none; display: block; }

/* Buttons & links (solid and outline variants) */
a, button, .btn, .cta { color: var(--accent); text-decoration: none; background: transparent; border: 0; padding: 0; font: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  outline-offset: 2px;
}
.btn {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.26);
  background: var(--accent);
  color: #001018;
  font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(43,213,255,.6);
}
.cta {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(43,213,255,.6);
  background: rgba(43,213,255,.15);
  color: #eaffff;
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce){
  .btn, .cta { transition: none; transform: none; }
}

/* Links on focus/hover for accessibility */
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Print styles (readability) */
@media print {
  body { color: #000; background: #fff; }
  header, main, article, footer { background: transparent; border: none; box-shadow: none; }
}
