:root {
  /* Palette (khaki + coral + cyber HUD) */
  --bg: #0b0f0a;
  --bg-2: #141a12;
  --text: #e7f5d9;
  --muted: #a8b89b;
  --accent: #ff6a4d;      /* coral accent */
  --accent-2: #ffd6a0;     /* khaki highlight */
  --surface: rgba(182,169,109,0.18);
  --surface-2: rgba(255,255,255,0.12);
  --card: rgba(18,20,16,0.40);
  --card-border: rgba(255,255,255,0.28);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
  --ring: 0 0 0 3px rgba(255,214,160,.55);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  background: 
    radial-gradient(circle at 15% -10%, rgba(182,169,109,0.20), transparent 28%),
    linear-gradient(135deg, #0a0f0a 0%, #111612 60%, #0b0f0a 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.20) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, normal, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

/* Layout primitives */
.container {
  max-width: clamp(680px, 90vw, 1120px);
  margin-inline: auto;
  padding: 1rem;
}

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

/* Glass panels (fallback included) */
header, nav, main, article, aside, footer {
  background: rgba(12,12,12,0.28);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}

@supports not (backdrop-filter: blur(12px)) {
  header, nav, main, article, aside, footer {
    background: rgba(12,12,12,0.60);
  }
}

/* Image frame styling */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.image-frame:hover img {
  transform: scale(1.01);
}

/* Content area */
.content {
  padding: 0.75rem 0.25rem;
  color: var(--text);
}
h1 {
  font-size: clamp(1.75rem, 1.6rem + 2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
}
p { color: var(--muted); margin: .25rem 0 0.75rem; }

/* Typography & utilities */
ul, li { margin: 0.25rem 0 0.5rem; padding: 0; list-style: disc inside; }
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: var(--text);
}

/* Interactive elements (a, button, .btn, .cta) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  padding: .55rem . nine  rem; /* placeholder to be safe? Replace below */
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,107,75,.16);
  transition: background .2s ease, transform .2s ease;
  cursor: pointer;
}
a { padding: .55rem .9rem; }
a:hover { text-decoration: underline; background: rgba(255,107,75,.22); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  outline-offset: 2px;
  border-radius: 8px;
}
.btn, .cta {
  padding: .6rem 1rem;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.14);
}
.btn:hover, .cta:hover { background: rgba(255,255,255,.22); }
.btn:focus-visible, .cta:focus-visible { outline: none; box-shadow: var(--ring); }

/* Hero-friendly text hierarchy within content area */
header h1 { margin-bottom: .25rem; }

/* Simple card utility for small panels (e.g., product-ad) */
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: var(--shadow);
}
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  margin: .25rem 0;
  padding: .6rem;
  border-radius: 10px;
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; }
.product-ad:hover, .sponsored-page:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* Print styles */
@media print {
  html, body { background: #fff; color: #000; }
  header, main, footer, nav, aside { background: #fff; border: none; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
  .image-frame { page-break-inside: avoid; border: none; }
}

/* Layout helpers (responsive tweaks) */
@media (min-width: 720px) {
  main { padding: 1rem; }
  .image-frame { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}