/* TOKENS: powder rose + olive with glassy UI base */
:root {
  --bg: #0b0f14;
  --bg-olive: #162018;
  --powder: #e8ccd4;
  --olive: #6b8e23;
  --text: #eaf7f2;
  --muted: #a9b7a7;
  --card: rgba(18, 25, 22, 0.78);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,0.32);
  --ring: 0 0 0 3px rgba(123, 211, 137, 0.55);
}

/* BASE + LAYERS: mobile-first, gradient + scanline noise */
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(10,14,12,0.92) 0%, rgba(22,32,28,0.95) 60%, rgba(10,14,12,0.92) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  /* subtle circular glow to evoke cyberpunk glow on dark background */
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0;
}
*, *::before, *::after { box-sizing: border-box; }

/* LAYOUT UTILITIES */
.container {
  width: 100%;
  max-width: clamp(720px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }

/* SECTIONS: semantic targets */
header, nav, main, article, aside, footer { /* semantic blocks; styling applied individually below */ }

/* HEADER: glassy hero with h1 + nav */
header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  margin: 1rem auto;
  width: min(1100px, 100%);
  border-radius: 14px;
  background: rgba(12, 18, 16, 0.70);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: saturate(110%) blur(8px);
  -webkit-backdrop-filter: saturate(110%) blur(8px);
  box-shadow: var(--shadow);
}
header h1 {
  font-size: clamp(1.5rem, 2.8vw + 1rem, 2.4rem);
  margin: 0;
  letter-spacing: .2px;
}
header nav {
  display: flex;
  gap: .5rem;
}
header nav a {
  color: var(--text);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.15);
  transition: transform .2s ease, background .2s ease;
}
header nav a:hover { background: rgba(0,0,0,0.28); transform: translateY(-1px); }
header nav a:focus-visible { outline: none; box-shadow: var(--ring); }

/* MAIN: content area with glass panels for panels and content blocks */
main {
  display: block;
  padding: 1rem 0 2rem;
}
.article-panel {
  padding: 0;
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.25);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  transform: translateZ(0);
}
main .panel {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(18, 25, 22, 0.72);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 860px) {
  main { padding: 1.25rem 0 2rem; }
  .article-panel { padding: 0; }
}
.content { color: var(--text); }

/* FOOTER: product ads / CTAs with glass panels */
footer {
  padding: 1rem 0 2rem;
  margin: 1rem auto 0;
  width: min(1100px, 100%);
}
.product-ad, .sponsored-page {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin: .25rem 0;
  background: rgba(12, 18, 16, 0.72);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: var(--shadow);
  text-align: left;
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: block;
  width: 100%;
}
.product-ad p, .sponsored-page p {
  margin: 0;
  font-weight: 600;
}
.product-ad:hover { transform: translateY(-1px); }
.product-ad:focus-within { outline: var(--ring); outline-offset: 2px; }
footer p { margin: .25rem 0 0; color: var(--muted); font-size: .875rem; }

/* LINK & BUTTONS: accessible focus states, variants */
a, button, .btn, .cta { color: var(--text); text-decoration: none; outline: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  outline-offset: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(107,142,35,0.95); /* olive primary */
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #7cab37; }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--text);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); }

/* LISTS: ul/li styling for compact, accessible lists */
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* UTILITY: common glass panel variants used across sections */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag {
  display: inline-block;
  padding: .2em .5em;
  border-radius: 999px;
  font-size: .75rem;
  line-height: 1;
  color: #eafff0;
  background: rgba(107,142,35,0.22);
  border: 1px solid rgba(107,142,35,0.4);
}

/* BODY VARIANTS FOR MOTION PREFERENCES */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

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