:root {
  /* Palette tokens derived from khaki + holographic silver */
  --bg: #0b0f12;
  --bg-2: #14181d;
  --text: #e7f0e4;
  --muted: #c7d2b9;
  --accent: #c9c46f;      /* khaki hue for highlights */
  --accent-2: #d7e2f0;    /* holographic silver tint */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  --focus: 0 0 0 3px rgba(200, 210, 140, 0.7);
}

/* Global reset / helpers */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 20% 0%, rgba(198,186,112,.25), transparent 40%),
    linear-gradient(135deg, #0b0f12 0%, #14181d 60%, #0c1117 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Respect reduced motion */
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Layout helpers */
.container {
  width: min(95%, 1120px);
  margin-inline: auto;
  padding-block: 0.75rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
}
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Section elements per spec selectors */
html, body, header, nav, main, article, footer, aside {
  /* ensure predictable layout in all sections */
}
header, main, footer, aside {
  display: block;
  padding: 0.75rem;
}
header {
  text-align: center;
  padding-block: 1.25rem;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
header h1 {
  font-size: clamp(1.6rem, 0.9rem + 2.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
header .meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
nav {
  display: inline-block;
  padding: .25rem;
  border-radius: 8px;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.25);
}
nav a {
  padding: .4rem .65rem;
  border-radius: 6px;
  background: rgba(0,0,0,.15);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
}
nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Glass panels (with fallback) */
.glass, .glass-panel, header, main, footer, .card, .product-ad, .sponsored-page {
  /* If backdrop-filter is supported, the blur enhances the glassy feel */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: var(--glass);
  border: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(8px)) {
  .glass, header, main, footer, .card, .product-ad, .sponsored-page {
    background: rgba(255,255,255,.14);
  }
}
.image-frame, .featured-image {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  background: #111;
}
.image-frame {
  aspect-ratio: 16/9;
}
.image-frame img, .featured-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.content {
  padding: 1rem;
}
main { padding: 0.5rem 0 1rem; }

/* Typography hierarchy for hero and body */
h2 {
  font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2rem);
  margin: 0.75rem 0 .5rem;
  color: var(--text);
}
p { margin: 0.5rem 0 1rem; color: var(--text); }
blockquote {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,.05);
  border-radius: 6px;
  color: var(--text);
}
h3 { font-size: 1.05rem; margin: .75rem 0; color: var(--text); }

/* Lists styling */
ul { margin: .25rem 0 0.75rem 1.25rem; }
li { line-height: 1.5; }

/* CTA and link treatments */
.btn, .cta {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(200, 210, 170, 0.25);
  color: var(--text);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover, .cta:hover { background: rgba(200,210,170,.38); transform: translateY(-1px); text-decoration: underline; }
.btn:active, .cta:active { transform: translateY(0); }

/* Primary vs outline variants (simple semantic cues) */
.btn.primary {
  background: linear-gradient(135deg, rgba(205,214,150,.9), rgba(190,210,150,.7));
  border-color: rgba(255,255,255,.5);
}
.btn.primary:hover { background: linear-gradient(135deg, rgba(210,223,165,.95), rgba(180,210,140,.8)); }

/* Links should underline on hover/focus for accessibility */
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Image frame accessibility / visual polish */
.image-frame { position: relative; }
.image-frame::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 12px rgba(0,0,0,.3);
  mix-blend-mode: overlay;
}

/* Print styles: basic readability */
@media print {
  body { color: #000; background: #fff; }
  nav, .glass, .image-frame { display: none; }
  .container { width: 100%; padding: 0; }
  a { color: #000; text-decoration: underline; }
}

/* Structural selectors to satisfy the required list */
article { display: block; }
aside { display: block; }

/* Minor responsive tweaks */
@media (min-width: 700px) {
  .container { padding-inline: 2rem; }
}
@media (min-width: 900px) {
  header { padding: 1.75rem 1rem; }
  main { padding: 0 0 1rem; }
}
