/* Base Theme and Tokens */
/* Olive + Orange cyberpunk palette with glassy primitives */

:root{
  --bg: #0b110f;
  --bg-2: #15220d;
  --text: #e9f3df;
  --muted: #a6b8a6;
  --accent: #ff8a1f;
  --accent-2: #e67700;
  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.14);
  --glass-border: rgba(255,255,255,.28);
  --focus: #ffffff;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color-scheme: dark;
  text-rendering: optimizeLegibility;
}

:root {
  --size-0: clamp(14px, 2.2vw, 16px);
  --size-1: clamp(16px, 3.6vw, 22px);
  --size-2: clamp(24px, 5vw, 40px);
  --size-3: clamp(28px, 6vw, 48px);
}

html, body, header, nav, main, article, aside, footer {
  min-height: 0;
}

/* Layered olive marble + subtle scanlines noise (pure CSS) */
body {
  position: relative;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(40, 80, 25, .85) 0%, rgba(18, 40, 12, .95) 60%, rgba(40, 60, 16, .9) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.18)),
    radial-gradient(circle at 20% 10%, rgba(90,110,40,.15), transparent 25%),
    radial-gradient(circle at 70% 70%, rgba(80,60,10,.15), transparent 25%);
  background-blend-mode: overlay, overlay, overlay, overlay;
  /* Subtle scanlines / noise overlay (pure CSS) */
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    linear-gradient(to right, rgba(0,0,0,.03) 0 1px, transparent 1px 2px);
  background-size: 100% 2px, 2px 100%;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}
* { box-sizing: border-box; }

/* Layout primitives */
.container {
  width: min(1120px, 90%);
  margin-inline: auto;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

/* Glass panels (fallback-friendly) */
.glass, header, main, footer, .image-frame {
  background: rgba(14, 18, 12, 0.18);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass, header, main, footer, .image-frame { background: rgba(14,18,12,.28); }
}
header, main, footer {
  padding: 1rem;
}
header {
  text-align: center;
  padding: 2rem 1rem;
}
header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw + 1rem, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .2px;
}
main { display: block; padding: 1rem 0; }
article { padding: 0; margin: 0; }

/* Image frame specifics */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  transition: transform .4s ease;
}
.image-frame:hover img {
  transform: scale(1.02);
}

/* Content region inside panels */
.content {
  padding: 1rem;
  color: var(--text);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.5;
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255, 168, 0, .28);
  border: 1px solid rgba(255, 168, 0, .66);
  color: #fff5e0;
  margin-right: .4rem;
}

/* Product ad / footer sections */
.product-ad, .sponsored-page {
  display: block;
  margin: .5rem 0;
  text-align: center;
  padding: .8rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .25rem 0;
}
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Links, buttons, CTAs */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  focus: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
a:focus-visible { outline-offset: 3px; }

a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Button variants */
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: var(--accent);
  color: #231700;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
  text-decoration: none;
}
.btn:hover, .cta:hover {
  transform: translateY(-1px);
  background: #ff9a2c;
  border-color: rgba(255,255,255,.8);
}
.btn:active, .cta:active {
  transform: translateY(0);
  background: #ff7a00;
}
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: var(--text);
}
.btn.secondary:hover {
  background: rgba(255,255,255,.08);
}
.btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.btn[disabled], .cta[disabled] {
  opacity: .5;
  cursor: not-allowed;
  filter: grayscale(.2);
}

/* Typography sizing helpers */
h2, h3 {
  color: var(--text);
  margin: .25rem 0 0.5rem;
}
p { margin: 0 0 0.75rem; }

/* Lists */
ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}
ul li {
  padding-left: 1.1em;
  text-indent: -0.9em;
}
ul li::before {
  content: "•";
  color: var(--accent);
  display: inline-block;
  width: 0.9em;
  margin-left: -0.9em;
}

/* Responsive helpers */
@media (min-width: 640px){
  .container { padding: 1.5rem; }
  header { padding: 2.25rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* Print styles for basic readability (optional) */
@media print {
  body { background: white; color: #000; }
  .glass, header, main, footer { background: none; border: none; box-shadow: none; }
  a { color: #0000ee; text-decoration: underline; }
}
