/* Palette & Typographic Foundations (tokenized) */
:root{
  --bg: #320b12;
  --bg-2: #0b050a;
  --text: #f7f4f0;
  --muted: #c9beb6;
  --accent: #a6ff3d;       /* chartreuse */
  --accent-2: #6aff58;     /* chartreuse-green for emphasis */
  --card: rgba(255,255,255,.08);
  --card-border: rgba(255,255,255,.25);
  --shadow: 0 6px 18px rgba(0,0,0,.28);
}

/* Base page styling (mobile-first) */
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(50,8,12,.95), rgba(12,6,12,.95)),
    linear-gradient(to bottom right, rgba(0,0,0,.28), rgba(0,0,0,.18) 60%, rgba(0,0,0,.28)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px);
  background-blend-mode: normal, overlay, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Layout helpers */
.container { width: min(90vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }

/* Glass-panel aesthetics (layered, accessible) */
.glass, header, main, article, .product-ad, .sponsored-page, footer {
  /* base glass look is applied via specific components; generic targets get subtle frosted vibe */
}
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .glass { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }
}

/* Header & navigation */
header {
  text-align: center;
  padding: 1.25rem 1rem 0;
}
header h1 {
  font-size: clamp(1.6rem, 2.5vw + 1rem, 3rem);
  line-height: 1.15;
  margin: .15rem 0 0;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
header .meta {
  font-size: clamp(0.75rem, 0.6vw + 0.6rem, 0.95rem);
  color: var(--muted);
  margin-top: .25rem;
}
nav { margin-top: .6rem; }
nav a {
  color: #001d0a;
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(166,255,61,.35);
  background: rgba(166,255,61,.14);
  color: #dfffe0;
}
nav a:hover { text-decoration: underline; }

/* Main content & article area */
main { padding: 1rem 0 2rem; }
article {
  margin: 0 auto;
  max-width: 900px;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.featured-image { margin: 0 0 1rem; border-radius: 12px; overflow: hidden; }
.featured-image img {
  width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
h1, h2, h3 {
  color: var(--text);
  margin: .75rem 0 .5rem;
}
h1 { font-size: clamp(1.6rem, 3vw + 1rem, 2.8rem); line-height: 1.15; }
h2 { font-size: clamp(1.2rem, 2vw + .75rem, 1.6rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 1.6vw + .6rem, 1.25rem); font-weight: 700; }
p { color: #eae2da; margin: 0.5rem 0 1rem; }
blockquote {
  margin: 1rem 0; padding-left: .75rem; border-left: 3px solid var(--accent-2);
  color: #d7d0c8; font-style: italic;
}
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }

/* Inline content helpers */
.content { font-size: clamp(0.92rem, 0.8vw + 0.9rem, 1.05rem); line-height: 1.6; color: #f5efe8; }

/* Image frame utility (specific class styling) */
.image-frame {
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content sections in footer area as glass panels */
.product-ad, .sponsored-page {
  display: inline-block;
  width: 48%;
  vertical-align: top;
  margin: 0.5rem 1%;
}
.product-ad a, .sponsored-page a { display: block; text-decoration: none; color: var(--text); }
.product-ad p, .sponsored-page p { margin: .25rem 0; padding: .5rem 0; }

/* Link behavior & accessibility */
a, button, .btn, .cta {
  font-family: inherit;
  text-decoration: none;
  color: inherit;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}
a:hover { text-decoration: underline; }

/* Button styles (solid and outline variants) */
.btn, .cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.48);
  background: var(--accent);
  color: #041c00; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn { background: var(--accent); color: #0b1800; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .95; }

/* Primary vs secondary visual cues (outline variant) */
.btn.outline, .cta { background: transparent; color: var(--text); border-color: rgba(255,255,255,.55); }
.btn.outline:hover { color: var(--accent); background: rgba(255,255,255,.06); }

/* Utility helpers (compact) */
.tag {
  display: inline-block; padding: .15rem .5rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
  border: 1px solid rgba(166,255,61,.6);
  background: rgba(166,255,61,.25); color: #0f2000;
}
ul.credits { padding-left: 1.25rem; }

/* Print-friendly readability (tiny footprint) */
@media print {
  body { background: #fff; color: #000; }
  a, a:visited { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}