/* Tokens */
:root{
  --bg: #041b14;
  --bg-2: #062a22;
  --text: #eafff5;
  --muted: #a7f3d0;
  --accent: #2ee7a3;
  --accent-2: #19d57a;
  --glass: rgba(12, 60, 50, 0.28);
  --glass-fallback: rgba(12, 60, 50, 0.75);
  --glass-border: rgba(180, 255, 220, 0.35);
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* Baseline / Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Helvetica Neue", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  min-height: 100dvh;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0,180,160,.25), transparent 40%),
    radial-gradient(circle at 75% 60%, rgba(0,255,180,.18), transparent 40%),
    linear-gradient(135deg, #041b14 0%, #062a22 60%, #031a12 100%);
  /* Subtle layered scanlines overlay (pure CSS) */
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Teal watercolor-esque texture vibe via layered gradients + scanlines */
  background-image:
    linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.08)),
    repeating-linear-gradient(to bottom, rgba(0,255,170,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: 0.8;
}
@media (prefers-reduced-motion: reduce){
  html, body { scroll-behavior: auto; }
  body::before { display: none; }
}

/* Layout helpers */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  color: var(--text);
}
@supports not (backdrop-filter: blur(8px)){
  .card { background: var(--glass-fallback); }
}

/* Typography */
h1, h2, h3 { margin: 0 0 .25rem; line-height: 1.15; }
h1 { font-size: clamp(1.75rem, 1.8rem + 2vw, 3rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.4rem, 1.4rem + 1.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 1.0rem + 1vw, 1.6rem); }
p { margin: 0 0 1rem; color: color-m-mix(in oklab, var(--text) 85%, black); }
ol, ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }

/* Header */
header {
  padding: clamp(1rem, 3vw, 2rem);
  display: grid;
  gap: .5rem;
  text-align: center;
  margin: 1rem auto;
  width: min(1100px, 92vw);
  border-radius: 16px;
  background: rgba(12, 60, 60, 0.28);
  border: 1px solid rgba(120, 255, 210, 0.35);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
}
header h1 { color: var(--text); font-weight: 700; }
header .meta { color: var(--muted); font-size: .95rem; }

/* Navigation */
nav { margin-top: .25rem; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .65rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Main content */
main { padding: 0 0 2rem; }
.featured-image {
  margin: 1rem 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.featured-image img { width: 100%; height: auto; display: block; }

/* Image frame utility (for other images) */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: #000;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content blocks */
.content { padding: 0 0 1rem; }

/* Links & CTAs */
a, button, .btn, .cta {
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; outline: none; }
button, .btn, .cta {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: var(--accent);
  color: #082a1f;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn { background: var(--accent); color: #032317; }
.btn:hover { transform: translateY(-1px); background: #28f0a0; }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(120, 255, 210, .6);
}
.btn--outline:hover {
  background: rgba(120, 255, 210, .15);
}
.cta { padding: .75rem 1.25rem; }

/* Focus visibility (WCAG AA) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Product cards / glass panels in footer */
.product-ad, .sponsored-page {
  display: block;
  padding: .9rem 1rem;
  margin: .5rem 0;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(12, 60, 60, 0.28);
  border: 1px solid rgba(180, 255, 220, 0.35);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad:hover, .sponsored-page:hover { background: rgba(12, 60, 60, 0.38); }

/* Footer */
footer { padding: 1.5rem 0; text-align: center; }

/* Aside (stub for accessibility hooks) */
aside { display: none; }

/* Lists styling (accessible contrast) */
ul { color: var(--text); }
li { margin-bottom: .25rem; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  header, main, footer { page-break-inside: avoid; }
}
