:root{
  --bg: #0b0f12;
  --bg-2: #0a111b;
  --text: #e9f3f0;
  --muted: #b6c8c2;
  --accent: #ffd86a;     /* yellow sunset */
  --accent-2: #2be6b0;   /* mint */

  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 22px rgba(0,0,0,.25);
  --radius: 14px;

  --focus: 2px solid #fff;
}

html, body { height: 100%; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #ffd36a 0%, #ffd36a 38%, #2be6b0 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}

/* Layered background: subtle scanlines/noise (pure CSS) */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: .25;
}
html::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 60%);
  mix-blend-mode: overlay;
  opacity: .18;
}

/* Layout helpers & tokens */
.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(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-1px); }

.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(43,230,176,.25);
  border: 1px solid rgba(43,230,176,.55);
  color: var(--text);
  letter-spacing: .2px;
}

/* Glass panels (frosted) with fallback */
.content, .glass, .product-ad {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(8px)) {
  .content, .glass, .product-ad { background: rgba(255,255,255,.18); }
}

/* Structural selectors (to satisfy required targets) */
html, body, header, nav, main, article, footer, aside { }

header {
  padding: 1.25rem;
  margin: 1rem auto;
  width: min(1100px, 92vw);
  border-radius: var(--radius);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.25);
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.15);
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: .2px;
}
header .meta {
  margin: 0;
  font-size: clamp(.9rem, .4vw + .8rem, 1.05rem);
  color: var(--muted);
}

/* Main + article layout & typography */
main {
  padding: 1rem 0 2rem;
}
article {
  max-width: clamp(540px, 92vw, 860px);
  margin: 0 auto;
}
article h2 {
  font-size: clamp(1.6rem, 0.8vw + 1.8rem, 2.6rem);
  margin: 1rem 0 .5rem;
}
article h3 {
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.25rem);
  margin: 1rem 0 .5rem;
}
article p { margin: .6rem 0; line-height: 1.55; }
article ol, article ul { margin: .6rem 0 1rem 1.25rem; }
article li { margin: .25rem 0; }

/* Image frame (including .featured-image as a fallback target) */
.image-frame,
.featured-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  background: #111;
  margin: 0.5rem 0 1rem;
}
.image-frame { aspect-ratio: 16/9; }
.image-frame img, .featured-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Content container styling to ensure readable text over glass */
.article-content {
  display: block;
}
.content p, .content li, .content h2, .content h3 {
  color: var(--text);
}
a, button, .btn, .cta {
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; outline: none; color: var(--accent-2); }

/* Button types (solid and outline variants) */
.btn,
.cta {
  display: inline-block;
  padding: .55em .95em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.14);
  color: var(--text);
  font-weight: 600;
  transition: transform .15s ease, background .2s ease, color .2s;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(255,255,255,.22); }
.btn:active, .cta:active { transform: translateY(0); }
.btn--solid {
  background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.15));
  border: 1px solid rgba(255,255,255,.55);
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
}
.cta {
  background: linear-gradient(135deg, var(--accent), #ffd055);
  color: #0b0f0a;
  border: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 8px;
}

/* Utility selectors */
ul, li { margin: 0; padding: 0; list-style: disc inside; }
ul { padding-left: 1rem; }
li { margin: .25rem 0; }

/* Footer & product-ad blocks (glass panels) */
footer {
  padding: 1rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.25);
}
.product-ad, .sponsored-page {
  display: inline-block;
  width: calc(50% - 0.5rem);
  vertical-align: top;
  margin: .25rem;
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: .75rem;
  text-align: center;
  color: var(--text);
}
.product-ad {
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.25);
}
.sponsored-page { background: rgba(0,0,0,.10); border: 1px solid rgba(255,255,255,.25); }
footer p { text-align: center; color: var(--muted); margin: .75rem 0 0; }

/* Nav placeholder (hidden for clean hero on landing) */
nav { display: none; }

/* Print styles: basic readability */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #06c; }
}

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