:root{
  --bg: #fff6c8;           /* pastel yellow base */
  --bg-2: #e9e0f7;         /* soft lilac accent */
  --text: #0b0b12;
  --muted: #5b5f7a;
  --accent: #ffd96a;        /* primary pastel yellow */
  --accent-2: #d6c8ff;      /* lilac highlight */
  --glass: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.45);
}
html, body { height: 100%; }
html { line-height: 1.4; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: clamp(14px, 1vw + 12px, 18px);
  background-image:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.28), transparent 40%),
    radial-gradient(circle at 75% 60%, rgba(255,255,255,0.18), transparent 40%),
    linear-gradient(135deg, #fff5c7 0%, #e9e0f7 60%, #e0d8ff 100%);
  background-blend-mode: overlay, overlay, normal;
  min-height: 100vh;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@supports not (backdrop-filter: blur(1px)) {
  body { background-attachment: scroll; }
}
@media (max-width: 600px){
  body { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

header, main, footer, aside { display: block; }
header, footer { padding: 1rem 0; }

/* Layout containers (utility) */
.container { width: min(1200px, 92%); margin-inline: auto; padding-inline: 0.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Glass panels (with fallback) */
.glass {
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)){
  .glass { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.6); }
}

/* Layered background pattern for body (already set above) */

/* Header / Hero styling */
header { text-align: center; padding: clamp(1.25rem, 4vw, 2.5rem) 0; }
header h1 {
  font-size: clamp(1.8rem, 1.2vw + 1.2rem, 3.2rem);
  line-height: 1.12;
  margin: 0 0 .5rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: #0b0a10;
}
header .meta {
  font-size: clamp(0.9rem, 0.5vw + 0.6rem, 1.05rem);
  color: var(--muted);
  margin: 0 0 .6rem;
}
header nav a {
  display: inline-block;
  padding: .6rem 0.9rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.25);
}
header nav a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
header nav a:hover { text-decoration: underline; }

/* Main content */
main { padding: 1rem 0 2rem; }
article { max-width: clamp(680px, 60vw, 980px); margin: 0 auto; padding: 0 0.5rem; opacity: 0; transform: translateY(6px); animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { to { opacity: 1; transform: none; } }

.featured-image { margin: 1rem 0; border-radius: 12px; overflow: hidden; }
.featured-image img { width: 100%; height: auto; display: block; }

.image-frame, .featured-image { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.image-frame { aspect-ratio: 16/9; width: 100%; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography scale for content */
h2 { font-size: clamp(1.4rem, 0.9vw + 1rem, 2.25rem); margin: 0.75rem 0 0.5rem; color: #0a0a0a; }
h3 { font-size: clamp(1.1rem, 0.8vw + 0.8rem, 1.5rem); margin: 0.75rem 0 0.4rem; color: #0b0b12; }
p { font-size: clamp(1rem, 0.6vw + 0.9rem, 1.125rem); line-height: 1.6; color: #1b1b1b; margin: 0.6rem 0; }
blockquote { margin: .75rem 0; padding: .6rem 1rem; border-left: 4px solid var(--accent-2); background: rgba(0,0,0,0.04); border-radius: 6px; font-style: italic; }

/* Lists */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Inline accents / tags */
.tag { display: inline-block; padding: .15em .6em; border-radius: 999px; background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.6); font-size: .75rem; }

/* Content helper class (even if not in HTML, keeps consistency) */
.content { padding: .5rem 0; }

/* Product ad / footer blocks (glass panels) */
.product-ad, .sponsored-page, .ad { padding: .75rem; border-radius: 12px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.4); }
.product-ad a, .sponsored-page a { display: block; padding: .75rem; color: inherit; text-decoration: none; font-weight: 600; text-align: center; }
.product-ad a:focus-visible, .sponsored-page a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Footer */
footer { padding: 1rem 0 2rem; text-align: center; color: var(--muted); }

/* Links and buttons (global) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons (variants) */
.btn {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.22);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.28); }
.btn.primary { background: var(--accent); color: #151515; border-color: rgba(0,0,0,0.15); }
.btn.primary:hover { background: #f8cf4a; }
.btn.outline { background: transparent; border: 1px solid rgba(255,255,255,0.8); }

/* Glass panels for site sections (optional wrapper usage) */
.section-glass { padding: .75rem; }

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