/* Base & Tokens */
:root {
  --bg: #0b1f14;
  --bg-2: #0f2a14;
  --text: #eaf6ee;
  --muted: #a8c7a8;
  --accent: #b7cbdc;      /* holographic silver / cool holo */
  --accent-2: #d0e8d8;     /* lighter holo */
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 14px;
}

html, body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

body {
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  background: 
    linear-gradient(135deg, rgba(25, 60, 28, 0.95) 0%, rgba(6, 18, 8, 0.95) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 2px, rgba(0,0,0,0) 2px 4px),
    linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.0));
  background-blend-mode: overlay;
  min-height: 100%;
  overflow-x: hidden;
}

/* Layered background with subtle stripes/noise (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.03) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.05), transparent 25%);
  mix-blend-mode: overlay;
  z-index: -1;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  color: var(--text);
}

/* Glass panels with fallback */
.glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: calc(var(--radius) + 2px);
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
@supports not (backdrop-filter: blur(10px)) {
  .glass {
    background: rgba(255, 255, 255, 0.18);
  }
}

/* Image frame styling */
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: optimizeQuality;
  transform: scale(1.01);
  transition: transform 0.3s ease;
}
.image-frame:hover img {
  transform: scale(1.04);
}

/* Typography */
h1, h2, h3 {
  margin: 0 0 .5rem;
  line-height: 1.15;
}
h1 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.5rem);
  letter-spacing: .2px;
}
h2 {
  font-size: clamp(1.4rem, 2.5vw + 0.5rem, 2.4rem);
}
h3 {
  font-size: clamp(1.1rem, 1.8vw + 0.4rem, 1.4rem);
  color: var(--muted);
}
p {
  font-size: clamp(0.95rem, 1.2vw + 0.2rem, 1.125rem);
  color: #eaf7ef;
}
em { font-style: italic; }
strong { font-weight: 700; }

/* Content helpers */
.content { /* optional hook for advanced sections */ }

/* Section/Article styling */
header, main, article, footer, aside {
  padding: 0;
  margin: 0;
}
header, footer {
  margin: 1rem auto;
  width: min(1100px, 92%);
}
main {
  display: block;
  margin: 0 auto;
}
article {
  padding: 1rem;
}
.featured-image {
  margin: 0 0 1rem;
}
.meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: .25rem;
}

/* Product ad in footer */
.product-ad {
  display: block;
  padding: 1rem;
  margin: .5rem 0 0;
  text-align: left;
}
.product-ad h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
}
.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  background: rgba(0,0,0,.25);
}
.product-ad a:hover,
.product-ad a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  text-decoration: underline;
}
.product-ad p { margin: 0; }

/* Links & buttons */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
a:focus-visible, a:hover {
  text-decoration: underline;
  color: var(--accent-2);
}
button, .btn, .cta {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #041414;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.btn:hover, .cta:hover {
  background: color-m-mix(in oklab, var(--accent) 40%, white);
}
.btn:active, .cta:active {
  transform: translateY(1px) scale(0.99);
}
.btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--text);
}
.btn--outline:hover {
  background: rgba(183, 203, 220, 0.15);
}
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Lists */
ul, li {
  margin: 0.5rem 0;
  padding: 0;
  padding-left: 1.25rem;
}
li { line-height: 1.6; }

/* Utility elements */
.tag {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-size: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--text);
  margin-right: .25em;
}

/* Forms (basic styles for potential inputs) */
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 0.5rem;
  outline: none;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  border-color: var(--accent-2);
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* Print styles (basic readability) */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .glass, .card {
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }
  a { text-decoration: underline; }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
  
/* Responsive tweaks */
@media (min-width: 768px) {
  header, footer { padding: .75rem 0; }
  .container { padding-inline: 1.25rem; }
}
  
/* Section headers (for structure) */
 /* Section: Base layout + typography */ 
 /* Section: Glass panels & components */ 
 /* Section: Interaction states & helpers */