/* Section: Global & Theme Tokens */
:root {
  --bg: #061006;
  --bg-2: #0a1f14;
  --surface: rgba(234, 232, 214, 0.14);
  --surface-2: rgba(234, 232, 214, 0.22);
  --text: #eaf6e9;
  --muted: #b8d3bd;
  --beige: #e6d4b5;
  --beige-2: #d6c19e;
  --accent: #2bdc86;        /* iridescent green */
  --accent-2: #c6e8d3;      /* beige-tinged accent for contrast */
  --shadow: 0 6px 18px rgba(0,0,0,.28);
  --radius: 14px;
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --trans-fast: 180ms;
}

html, body {
  height: 100%;
}

/* Section: Layout Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { font-family: var(--font-stack); }

/* Section: Layered Background (gradient + subtle noise/scanlines) */
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% -5%, rgba(0, 255, 140, 0.14) 0%, transparent 25%),
    linear-gradient(135deg, rgba(6, 22, 12, 0.92) 0%, rgba(9, 22, 14, 0.90) 60%, rgba(4, 12, 8, 0.92) 100%),
    repeating-linear-gradient(to bottom,
      rgba(0,0,0,.04) 0px,
      rgba(0,0,0,.04) 1px,
      transparent 1px,
      transparent 2px);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2rem;
  overflow-x: hidden;
  background-attachment: fixed;
}

/* Section: Global Helpers */
img { max-width: 100%; display: block; }

/* Section: Core Layout Utilities */
.container {
  width: 100%;
  max-width: clamp(320px, 88vw, 1100px);
  margin: 0 auto;
  padding: 0 1rem;
}

.grid { display: grid; gap: 1rem; }

/* Section: Glass Panels (fallback-safe) */
header, main, footer {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.75rem auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

header { text-align: center; padding: 2rem 1rem; }
header h1 { font-size: clamp(1.4rem, 4vw, 2.4rem); line-height: 1.15; margin: .25rem 0 0.25rem; color: var(--text); }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 2vw, 0.92rem); margin-top: .25rem; }

nav { margin-top: .75rem; }
nav a {
  color: var(--beige);
  text-decoration: none;
  padding: .5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(230, 214, 181, 0.5);
}
nav a:hover { text-decoration: underline; background: rgba(230,214,181,0.15); }

/* Section: Main Content Styling */
main { padding: 1rem 0; display: block; }

article {
  padding: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.featured-image {
  margin: 0 0 1rem;
}
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  background: #0a0a0a;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography & Content hierarchy */
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin: 0.75rem 0 0.25rem; color: var(--text); }
h3 { font-size: clamp(1.05rem, 2.6vw, 1.25rem); margin: 0.75rem 0; color: var(--text); }
p { margin: 0.6rem 0; }
ul, ol { margin: 0.6rem 0 0.9rem 1.15rem; padding: 0; }
li { margin: 0.25rem 0; }

/* Section: Content Containers & Cards */
.content { padding: 0; }

/* Section: Product Ad (footer area) */
.product-ad, .sponsored-page {
  background: rgba(234, 232, 214, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 0.75rem;
  display: inline-block;
  min-width: 180px;
  box-shadow: var(--shadow);
}

.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: block;
}
.product-ad p, .sponsored-page p { margin: 0; padding: 0; }

/* Section: Link & Button Styles (interactive) */
a, button, .btn, .cta {
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  transition: transform var(--trans-fast), background var(--trans-fast), color var(--trans-fast);
  outline: none;
}
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.1rem;
  border: 1px solid rgba(230,214,181,.8);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59, 206, 143, 0.95), rgba(180, 214, 161, 0.8));
  color: #062a14;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.outline {
  background: transparent;
  border: 1px solid rgba(230,214,181,.9);
  color: var(--beige);
  padding: .6rem 1rem;
}
.cta { display:inline-block; padding:.55rem 1rem; border-radius:999px; }

ul.tag, .tag {
  display:inline-block;
  font-size:.75rem;
  padding:.25rem .55rem;
  border-radius:999px;
  background: rgba(230,214,181,.25);
  color: var(--text);
  border: 1px solid rgba(230,214,181,.6);
  margin-right:.4rem;
  margin-bottom:.4rem;
}

/* Section: Image Frame refinements */
.image-frame { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); }

/* Section: List & UI Details */
ul, ol { padding-left: 1.15rem; }

/* Section: Footer Layout Enhancements */
footer { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; align-items: start; }

/* Section: Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Print Styles (readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; padding: 0.5rem; border-radius: 0; }
}
