/* Root tokens: coral stone tiles + chartreuse accents */
:root {
  --bg: #0a0a0a;
  --bg-2: #1a0f0f;
  --surface: rgba(255, 255, 255, 0.08);
  --text: #eaf6f0;
  --muted: #c6d0d9;
  --accent: #d4ff5f;      /* chartreuse */
  --accent-2: #ff6f61;     /* coral/terra-cotta */
  --card: rgba(255, 255, 255, 0.09);
  --ring: rgba(212, 255, 95, 0.9);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 12px;
}

/* Global baseline (mobile-first) */
html, body {
  height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% 10%, rgba(255, 111, 97, 0.15), transparent 40%),
    linear-gradient(135deg, rgba(12,6,4,.6), rgba(4,4,4,.6)),
    linear-gradient(#2a0b04 0%, #0a0a0a 100%);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
html { text-size-adjust: 100%; }
body { margin: 0; }

/* Subtle CSS noise/scanlines (pure CSS) */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode:overlay;
  opacity: .25;
}
@media (prefers-reduced-motion: reduce) {
  html::before { display: none; }
  * { animation: none !important; transition: none !important; }
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: clamp(720px, 72vw, 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 rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
}
.tag {
  display:inline-block;
  padding:.15rem .5rem;
  font-size:.75rem;
  border-radius:999px;
  background: rgba(212, 255, 94, .18);
  color: #eaffaa;
  border:1px solid rgba(212,255,94,.45);
}

/* Core page sections */
header, main, footer, aside, nav, article {
  display: block;
}
header {
  padding: 1rem;
  text-align: center;
  margin: 1rem auto;
  border-radius: var(--radius);
  background: rgba(12,12,12,.42);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header h1 {
  font-size: clamp(1.4rem, 2.6vw + 1rem, 2.6rem);
  line-height: 1.15;
  margin: .25rem 0 0.25rem;
  letter-spacing: .2px;
  color: var(--text);
}
header .meta {
  font-family: system-ui, sans-serif;
  font-size: clamp(0.8rem, 0.9vw + 0.6rem, 0.95rem);
  color: var(--muted);
  margin: 0.25rem 0 0.25rem;
}
nav {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .25rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.15);
  transition: transform .15s ease, background .2s ease;
}
nav a:hover { background: rgba(0,0,0,.25); transform: translateY(-1px); }
nav a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
main {
  padding: 1rem 0 2rem;
}
article {
  display: grid;
  gap: 1rem;
  padding: 0 0;
}
.featured-image { padding: 0 0 0.25rem; }
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 26px rgba(0,0,0,.25);
  background: #111;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content { padding: 0.25rem 0 0.25rem; line-height: 1.6; color: var(--text); }
.content h1, .content h2, .content h3 { color: var(--text); margin: .75rem 0 .25rem; }
.content p { margin: .4rem 0 1rem; }
.content ol, .content ul { margin: .25rem 0 1rem 1.1rem; padding: 0; }
.content ol > li, .content ul > li { margin: .25rem 0; }

/* Glass panels for sections and hero-like blocks */
.glass {
  background: rgba(15, 15, 15, 0.32);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 0.9rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(15,15,15,.6); border-color: rgba(255,255,255,.5); }
}

/* Product ad / promos */
.product-ad {
  display: block;
  text-align: center;
  padding: .8rem;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.28);
}
.product-ad a { color: var(--text); text-decoration: none; display: inline-block; padding: .5rem 0.75rem; }
.product-ad a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Links and interactive elements */
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Buttons & CTAs (solid and outline variants) */
.btn, .cta {
  display: inline-block;
  font-weight: 700;
  border-radius: 8px;
  padding: .6rem 1rem;
  border: 1px solid rgba(0,0,0,.15);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn {
  background: var(--accent);
  color: #0b2a00;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(212,255,94,.6);
}
.cta { background: linear-gradient(135deg, rgba(212,255,94,.25), rgba(255,255,255,.04)); color: var(--text); }

/* Lists */
ul, li { margin: 0; padding: 0; list-style-position: outside; }
ul { padding-left: 1.25rem; }

/* Print styles: simple readability */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { display: none; }
  article { padding: 0; }
  a { text-decoration: underline; color: #000; }
}
  
/* Typography sizing (fluid) */
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.4rem, 2.4vw + 1rem, 2.6rem); }
h2 { font-size: clamp(1.15rem, 1.8vw + .8rem, 1.8rem); }
h3 { font-size: clamp(1rem, 1.2vw + .6rem, 1.25rem); }

/* Accessibility helpers */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Reduced motion guard for all motion-sensitive components */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}