/* Palette */
:root {
  --bg: #0b0f0a;
  --bg-2: #111a13;
  --text: #ece3cb;
  --muted: #b8ad95;
  --accent: #a6f04a;
  --accent-2: #e4d2b2;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 6px 18px rgba(0,0,0,.32);
  --radius: 12px;
  --focus: 2px solid #a6f04a;
}

/* Layout resets */
* { 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;
  line-height: 1.55;
  background:
    linear-gradient(135deg, #0b0f0a 0%, #0f1410 60%, #0b0f0a 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Section headers for organization */
 /* Section: Typography & Helpers */
h1, h2 { margin: 0 0 .5rem; }

.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero / Glass scaffolding */
header, main, footer, aside, nav, article {
  display: block;
}

/* Glass panels (fallback included) */
.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 1rem;
  color: var(--text);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.12); }
}

/* Structural layout */
header, main, footer { padding: 1rem 0; }

header {
  display: block;
  text-align: center;
  padding: 1.75rem 1rem;
}
header h1 {
  font-size: clamp(1.8rem, 1.5rem + 2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: .4px;
}
header .meta {
  margin-top: .25rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 0.6vw + 0.8rem, 1.05rem);
}

/* Hero image */
.featured-image, .image-frame {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 22px rgba(0,0,0,.45);
}
.image-frame {
  aspect-ratio: 16 / 9;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform .5s ease;
}
.image-frame:hover img {
  transform: scale(1.02);
}
@media (prefers-reduced-motion: reduce) {
  .image-frame img { transition: none; }
}

main { padding: 1rem 0; }
article { max-width: 72ch; margin: 0 auto; padding: 0.5rem; }

h2 {
  font-size: clamp(1.4rem, 0.8vw + 1.2rem, 2rem);
  margin: .75rem 0 0.5rem;
  color: var(--text);
}
p { color: var(--muted); margin: 0 0 1rem; }

/* Lists */
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; color: var(--text); }
li { margin: .25rem 0; }

/* Links & buttons */
a, button, .btn, .cta {
  text-decoration: none;
  color: var(--accent);
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(166,240,74,.35);
  outline-offset: 2px;
}
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }

/* Buttons (solid + outline) */
.btn {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(166,240,74,.6);
  background: rgba(166,240,74,.25);
  color: #0b0f0a;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(166,240,74,.38); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(166,240,74,.9);
  color: var(--text);
}
.btn--outline:hover { background: rgba(166,240,74,.15); }

/* Typography scale & readability helpers */
.content { color: var(--text); }

/* Utility components */
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.tag { display: inline-block; padding: .2rem .5rem; border-radius: 999px; font-size: .75rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: var(--text); }

/* Footer / product ads as glass cards */
footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 1rem;
}
.product-ad, .sponsored-page {
  text-align: center;
}
.product-ad a, .sponsored-page a {
  display: block; padding: .75rem .5rem; border-radius: calc(var(--radius) - 2px);
}
.product-ad a { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: var(--text); }
.sponsored-page a { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); color: var(--text); }

/* Dark mode defaults adjusted via color-scheme query */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f3e3;
    --bg-2: #eeeee0;
    --text: #1a1a1a;
    --muted: #555145;
    --accent: #4a8a1d;
    --accent-2: #b89a6b;
    --panel: rgba(255,255,255,.9);
    --panel-border: rgba(0,0,0,.15);
  }
  body {
    background:
      linear-gradient(#f7f3e3 0%, #f0ead2 60%, #f7f3e3 100%);
    color: var(--text);
  }
  .glass { background: rgba(255,255,255,.95); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
