/* Global Tokens */
:root {
  --bg: #0b0b0a;
  --bg-2: #141413;
  --card: rgba(255,255,255,0.08);
  --card-2: rgba(255,255,255,0.12);
  --text: #eafff5;
  --muted: #b5f2d1;
  --accent: #7bd389;        /* pastel green */
  --accent-2: #d07a4a;      /* copper highlight */
  --stroke: rgba(255,255,255,0.28);
  --shadow: 0 6px 22px rgba(0,0,0,.28);
  --radius: 14px;
  --maxw: clamp(320px, 92vw, 1100px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Base & Accessibility */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: var(--font); font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(183,83,22,0.55) 0%, rgba(12,12,12,0.75) 60%, rgba(0,0,0,0.85) 100%);
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  body {
    background: 
      radial-gradient(circle at 12% 20%, rgba(255,193,7,.18) 0 2px, transparent 2px),
      radial-gradient(circle at 70% 60%, rgba(124,255,210,.12) 0 2px, transparent 2px),
      linear-gradient(135deg, rgba(12,12,12,.8), rgba(0,0,0,.9));
    background-blend-mode: overlay;
  }
}
@supports not (backdrop-filter: blur(8px)) {
  body { background: linear-gradient(135deg, #0b0b0a 0%, #141413 60%, #0b0b0a 100%); }
}

/* Subtle copper starfield & scanlines (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10px 20px, rgba(255, 183, 70, .22) 0 2px, transparent 2px),
    radial-gradient(circle at 140px 60px, rgba(255, 239, 170, .14) 0 2px, transparent 2px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-size: 100% 100%, 100% 100%, 4px 4px;
  mix-blend-mode: overlay;
  opacity: 0.28;
  animation: drift 90s linear infinite;
  border-radius: 0;
}
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-1200px); } }

/* Layout Helpers */
.container {
  width: 100%;
  max-width: var(--maxw);
  padding: 0 1rem;
  margin: 0 auto;
}
.grid { display: grid; gap: 1rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Glass Panels (with fallback) */
header, main, article, footer, aside {
  background: rgba(12,12,12,0.28);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem;
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, article, footer, aside {
    background: rgba(12,12,12,0.72);
    border-color: rgba(255,255,255,0.45);
  }
}

/* Typography & Structure */
header { padding: 1.25rem; margin: 0 auto 1rem; text-align: center; }
header h1 {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 3rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.88rem, 0.9vw + 0.8rem, 1.05rem);
  margin: 0 0.5rem;
}
nav { margin-top: .4rem; display: grid; justify-content: center; }
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(123, 211, 137, 0.6);
}
nav a:hover { text-decoration: underline; color: #d7ffd9; }
nav a:focus-visible { outline: 2px solid #a8ffd1; outline-offset: 2px; }

/* Main & Article Content */
main { padding: 1rem 0 2rem; }
article { max-width: 72ch; margin: 0 auto; padding: 0; }

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

/* Content styling hooks */
.content { color: rgba(234,255,241,.95); }

/* Highlights & components */
.card { background: var(--card); border: 1px solid var(--stroke); border-radius: 12px; padding: .75rem; }
.tag { display:inline-block; padding: .15em .5em; border-radius: 999px; font-size: .8rem; background: rgba(123,211,137,.25); color: var(--text); border: 1px solid rgba(123,211,137,.6); }

/* Product ad / footer sections */
.product-ad, .sponsored-page {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: .75rem;
  text-align: left;
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; font-weight: 600; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Links & CTAs */
a, button, .btn, .cta {
  cursor: pointer;
  font: inherit;
  color: var(--text);
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
a:hover { text-decoration: underline; color: #d8ffd9; }
a:focus-visible, button:focus-visible { outline: 2px solid #a8ffd1; outline-offset: 2px; }

/* Buttons (solid & outline variants) */
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(123,211,137,.75);
  background: rgba(123,211,137,.85);
  color: #041f0e;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(123,211,137,.85);
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible, .cta:focus-visible { outline: 2px solid #a8ffd1; outline-offset: 3px; }

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

/* Footer layout */
footer { margin-top: 1rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

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

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}