/* Section: Palette & Base */
:root{
  --bg: #0b0f12;
  --bg-2: #141b1f;
  --surface: rgba(var(--rgb-surface, 240, 244, 248), .08);
  --text: #e7f0e9;
  --muted: #a8b8a3;
  --accent: #7a8f2b;      /* olive */
  --accent-2: #c2d7a3;    /* lighter olive for accents */
  --card: rgba(255,255,255,.08);
  --card-border: rgba(255,255,255,.25);
  --shadow: 0 8px 26px rgba(0,0,0,.25);
  --focus: 2px solid var(--accent-2);
}
:root{ --rgb-surface: 250, 250, 255; }

/* Section: Global + Layered Background (platinum plasma swirl vibe) */
html, body { height: 100%; }
html { color-scheme: dark light; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.5;
  background:
    /* subtle plasma swirl hints */
    radial-gradient(circle at 20% 20%, rgba(190,210,180,.18) 0 14%, transparent 14%),
    radial-gradient(circle at 80% 60%, rgba(160,190,160,.10) 0 20%, transparent 20%),
    linear-gradient(135deg, #0b0f12 0%, #0f1116 40%, #0b0f12 100%),
    /* faint scanlines layer */
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,.02) 1px 2px);
  background-blend-mode: overlay;
  min-height: 100%;
}
body:lang(en) { }

/* Section: Layout Helpers */
.container {
  width: 100%;
  max-width: clamp(720px, 78vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card { /* glass panel */
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; animation: none; }
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  background: rgba(0,0,0,.15);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: -webkit-optimize-contrast;
}
.content { padding: 0.75rem 0; }

/* Section: Typography & Headings */
h1, h2, h3 { margin: .75rem 0 .25rem; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(1.8rem, 4vw, 3.0rem); line-height: 1.04; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.25rem); }

/* Section: Global Elements Styling */
header, nav, main, article, aside, footer { display: block; }

/* Section: Header & Nav */
header {
  display: block;
  padding: 1.25rem 1rem;
  margin: 0 auto 0.5rem;
  border-radius: 14px;
  background: rgba(16,22,28,.50);
  border: 1px solid rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: center;
}
header h1 { margin: .25rem 0 0.5rem; font-size: clamp(1.6rem, 4vw, 2.5rem); }
header .meta { margin: 0; color: var(--muted); font-size: .85rem; }

nav {
  margin-top: .5rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
}
nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* Section: Glass Panels & UI Elements */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  padding: .6rem 1rem;
  background: linear-gradient(135deg, rgba(100,140,60,.5), rgba(60,90,40,.5));
  transition: transform .15s ease, background .2s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  transform: translateY(-1px);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-color: rgba(200,230,180,.9);
}
.btn { background: linear-gradient(135deg, rgba(120,170,60,.9), rgba(80,120,40,.9)); border: 1px solid rgba(230,255,230,.6); }

/* Button variants */
.btn--outline {
  background: transparent;
  border: 1px solid rgba(180,210,120,.8);
  color: var(--text);
}
.btn--outline:hover { background: rgba(255,255,255,.04); }

/* Section: Lists & Tags */
ul { padding-left: 1.25rem; margin: .75rem 0; }
li { margin: .25rem 0; }
.tag {
  display:inline-block;
  padding:.15em .5em;
  font-size:.75rem;
  border-radius:999px;
  background: rgba(122, 143, 43, .25);
  border: 1px solid rgba(180,210,120,.5);
  color: var(--text);
}

/* Section: Side Content (aside) */
aside { margin: .5rem 0; }

/* Section: Product Ad Panel (glass) */
.product-ad {
  display: grid;
  place-items: center;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  margin: .5rem 0;
}
.product-ad a { width: 100%; display: block; text-align: center; padding: .75rem; border-radius: 8px; text-decoration: none; color: var(--text); background: linear-gradient(135deg, rgba(120,110,60,.6), rgba(40,60,20,.6)); }
.product-ad a:hover { background: linear-gradient(135deg, rgba(120,160,90,.75), rgba(40,60,20,.75)); }

/* Section: Footer */
footer { padding: 1rem; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }

/* Section: Print Styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { background: #fff; border: none; color: #000; }
  a { text-decoration: underline; }
}
@media (max-width: 720px) {
  header { padding: 1rem; }
  .image-frame { border-radius: 10px; }
}
 
/* Section: Accessibility Helpers (color-contrast fallback tweaks) */
@media (prefers-contrast: high) {
  :root {
    --card: rgba(255,255,255,.14);
    --card-border: rgba(255,255,255,.40);
  }
}