:root {
  --bg: #e8f6ea;
  --bg-2: #d6efe0;
  --text: #0b111f;
  --muted: #536056;
  --accent: #5b66d8;
  --accent-2: #7bd389;
  --card: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.08);
  --border: rgba(120, 140, 200, 0.45);
  --shadow: 0 6px 20px rgba(0,0,0,.12);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(91, 102, 216, 0.6);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --gap: 1rem;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

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

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #cdebdc 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.25)),
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0px, rgba(0,0,0,.04) 1px, transparent 1px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.04) 0px, rgba(0,0,0,.04) 1px, transparent 1px, transparent 2px);
  background-blend-mode: overlay;
  opacity: 0.25;
  filter: saturate(1.05);
  transform: translateZ(0);
}

.container {
  width: min(92vw, 1100px);
  margin-inline: auto;
  padding: 1rem;
}

header {
  margin: 1rem auto;
  padding: 1rem;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

header h1 {
  font-family: var(--font);
  font-size: clamp(1.6rem, 2.6vw + 1rem, 2.8rem);
  line-height: 1.15;
  margin: 0.25rem 0;
  color: var(--text);
}

header .meta {
  font-size: 0.95rem;
  color: var(--muted);
}

main {
  padding: 0 1rem;
}

article {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.featured-image,
.image-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  background: #000;
}

.featured-image img,
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.image-frame { aspect-ratio: 16 / 9; }

.content {}

/* Sections / content cards */
section {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

h2 {
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.75rem);
  margin: 0.25rem 0 0.5rem;
  color: var(--text);
}

h3 { font-size: 1.1rem; margin: 0.4rem 0; color: var(--text); }

p { color: var(--text); margin: 0.3rem 0 1rem; }

ul, ol { padding-inline-start: 1.25rem; margin: 0.25rem 0 1rem; color: var(--text); }

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

/* Product ad / sponsored blocks in footer */
.product-ad,
.sponsored-page {
  display: inline-block;
  width: calc(50% - 0.5rem);
  min-width: 260px;
  margin: 0.25rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(120,140,200,.4);
  box-shadow: var(--shadow);
}

.product-ad a,
.sponsored-page a {
  color: #eafff7;
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: 8px;
  background: linear-gradient(to bottom right, rgba(91,102,216,.25), rgba(91,102,216,.15));
}
.product-ad a:hover,
.sponsored-page a:hover { text-decoration: underline; }

/* Footer text */
footer {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
}

p { margin: 0.5rem 0; }

/* Interactive elements & accessibility */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
}
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); outline: none; }

/* Button variants */
.btn, .cta {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(0,0,0,.04);
  transition: transform .2s ease, background .2s;
}
.btn:hover, .cta:hover { background: rgba(0,0,0,.08); transform: translateY(-1px); }

/* Focus ring for accessibility (focus-visible) */
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: none; }

/* Utility / layout helpers */
.tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(91,102,216,.25);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}

.image-frame,
.card { /* placeholders for potential card usage */ }

/* Print */
@media print {
  body { background: white; color: black; }
  header, footer { background: none; border: none; box-shadow: none; }
}

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