/* Base tokens */
:root {
  --bg: #0a0b0e;
  --bg-2: #11131a;
  --text: #eaf6e7;
  --muted: #a8cfa1;
  --accent: #39ff14;
  --accent-2: #f5e36b;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --shadow-soft: 0 6px 16px rgba(0,0,0,.22);
  --focus: 2px solid var(--accent);
}

/* Global reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  /* Layered background: gradient + hex honeycomb overlay + subtle scanlines */
  background-image:
    /* pastel yellow honeycomb pattern (approximation) */
    linear-gradient(30deg, rgba(246, 224, 128, 0.25) 0 8px, transparent 8px 16px),
    linear-gradient(-30deg, rgba(246, 224, 128, 0.25) 0 8px, transparent 8px 16px),
    /* gentle glow scanlines */
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 3px),
    linear-gradient(#0b0e14, #0b0e14);
  background-size: 22px 40px, 22px 40px, 100% 100%, 100% 100%;
  background-attachment: fixed, fixed, scroll, scroll;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html, body { min-height: 100%; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1200px);
  margin-inline: auto;
  padding: 0 1rem;
}
.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-soft);
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--text);
}

/* Structural elements */
header, nav, main, article, aside, footer {
  padding: 0;
  margin: 0;
}
header {
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 0;
}
header h1 {
  font-size: clamp(1.6rem, 3vw + 1rem, 2.6rem);
  line-height: 1.15;
  margin: 0.25rem 0;
  font-weight: 800;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.92rem, 1vw + 0.8rem, 1.05rem);
  margin-top: .25rem;
}
main { padding: 1rem 0; }
article { display: block; }

/* Image frame specifics */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  background: #0a0a0a;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
  transition: transform .25s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Content typography and structure */
.content { color: var(--text); max-width: 70ch; }

/* Headings and text scale */
h1, h2 {
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4vw + 1rem, 3.2rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.25rem, 2.6vw + .5rem, 1.6rem); margin: 1.15rem 0 .5rem; color: var(--text); }

/* Paragraphs and lists */
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Blockquotes */
blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

/* Links and focus accessibility */
a, button, .btn, .cta {
  text-decoration: none;
  color: var(--text);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .15s ease;
}
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Buttons (solid and outline variants) */
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Solid and outline variants (usage-ready) */
.btn--solid {
  background: linear-gradient(135deg, rgba(57, 255, 20, .95), rgba(57, 255, 20, .75));
  border-color: rgba(57, 255, 20, .95);
  color: #041f04;
}
.btn--outline {
  background: rgba(255,255,255,.08);
  border-color: rgba(57,255,20,.8);
  color: var(--text);
}
.btn, .btn--solid, .btn--outline, .cta {
  -webkit-tap-highlight-color: transparent;
}

/* Image and media tweaks for layout harmony */
ul, li { word-break: break-word; }

/* Footer layout and glass panels */
footer {
  padding: 1rem;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.product-ad, .sponsored-page {
  display: inline-block;
  padding: .5rem .7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 6px 18px rgba(0,0,0,.25);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; padding: .25rem; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Print-friendly adjustments */
@media print {
  body { background: #fff; color: #000; }
  a { color: #00f; text-decoration: underline; }
  header, main, footer { padding: 0; }
}

/* Accessibility: reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .image-frame img { transform: none !important; }
}
  
/* Small-screen adjustments (mobile-first) */
@media (min-width: 640px) {
  header { padding: 1.5rem 1rem; }
  .container { padding-inline: 0; }
}
@media (min-width: 860px) {
  footer { grid-template-columns: 1fr 1fr; align-items: start; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}