/* Tokens and base */
:root{
  --bg: #ffd400;
  --bg-2: #f5d84a;
  --text: #0b0b0b;
  --muted: #5a5a2f;
  --sage: #8a9f86;
  --sage-2: #a6bfa0;
  --accent: #f0e070;
  --accent-2: #b9d0a2;
  --panel: rgba(255,255,255,.08);
  --panel-strong: rgba(255,255,255,.18);
  --panel-border: rgba(255,255,255,.25);
  --shadow: 0 8px 24px rgba(0,0,0,.12);
  --radius: 14px;
  --focus: 2px solid #000;
}

* { box-sizing: border-box; }

html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  background: var(--bg);
  /* Layered background: base color plus subtle gradient for depth */
  background-image: linear-gradient(135deg, rgba(0,0,0,.04) 0 100%), linear-gradient( to right, rgba(255,255,255,.04), rgba(255,255,255,.04) );
  position: relative;
  isolation: isolate;
}
/* Subtle scanlines / noise (pure CSS) */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.0));
  mix-blend-mode: overlay;
  opacity: .8;
}

/* Layout helpers */
.container{ width: 100%; max-width: clamp(720px, 90vw, 1100px); margin: 0 auto; padding: 0 1rem; }

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

/* Glass panel base (fallback-friendly) */
.panel, header, main, article, footer, aside {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (-webkit-backdrop-filter: blur(12px)) and not (backdrop-filter: blur(12px)) {
  .panel, header, main, article, footer, aside { background: rgba(255,255,255,.16); }
}

/* Page sections */
header{
  text-align: center;
  padding: clamp(1.25rem, 2.5vw, 2.5rem) 1rem;
  margin: 1rem auto;
}
header > h1{ 
  margin: 0 0 .25rem;
  font-size: clamp(1.75rem, 1.2vw + 1.5rem, 3rem);
  line-height: 1.15;
  letter-spacing: .2px;
  color: #0b0b0b;
}
header .meta{
  margin: .25rem 0 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
nav{
  margin-top: .75rem;
  display: flex;
  justify-content: center;
  gap: .75rem;
}
nav a{
  color: var(--sage-2);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(138,159,134,.25);
  background: rgba(138,159,134,.15);
  transition: background .2s ease, color .2s ease;
}
nav a:hover, nav a:focus-visible{ background: rgba(138,159,134,.28); color: #0b0b0b; outline: none; text-decoration: underline; }

/* Main content */
main{
  padding: 1rem 0 2rem;
}
article{
  max-width: 72rem;
  margin: 0 auto;
}
.featured-image{
  margin-bottom: .75rem;
}
.image-frame{
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.image-frame img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typographic rhythm for content */
h1, h2, h3{ color: var(--text); margin: .75rem 0; }
h1{ font-size: clamp(1.6rem, 1vw + 1.4rem, 2.6rem); line-height: 1.15; }
h2{ font-size: clamp(1.25rem, .8vw + .9rem, 1.75rem); }
h3{ font-size: clamp(1.05rem, .6vw + .8rem, 1.25rem); }
p{ font-size: clamp(1rem, .6vw + .9rem, 1.125rem); color: #111; margin: .5rem 0 1rem; }

/* Lists */
ul, ol{ padding-left: 1.25rem; margin: .25rem 0 1rem; color: #111; }
li{ margin: .25rem 0; }

/* Content helper (optional utility) */
.content{ padding: .75rem; }

/* Buttons and links (interactive) */
a, button, .btn, .cta{
  text-decoration: none;
  color: #111;
}
button, .btn, .cta{
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.15);
  background: var(--accent);
  color: #111;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
button:hover, .btn:hover, .cta:hover{ transform: translateY(-1px); background: #e8da6b; }
button:focus-visible, .btn:focus-visible, .cta:focus-visible{
  outline: var(--focus);
  outline-offset: 2px;
}
.btn.outline, .cta.outline, a.btn-outline{
  background: transparent;
  border: 1px solid rgba(142,169,122,.8);
  color: var(--sage-2);
}
.btn.outline:hover, .cta.outline:hover, a.btn-outline:hover{
  background: rgba(142,169,122,.12);
}
.product-ad{ display: flex; align-items: center; justify-content: center; padding: .75rem; text-align: center; min-height: 88px; }
.product-ad a{ display: block; width: 100%; color: #111; text-decoration: none; padding: .5rem; border-radius: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); }
.product-ad a:hover{ background: rgba(255,255,255,.22); }

/* Lists and small UI elements */
.tag{ display:inline-block; padding:.15rem .5rem; font-size:.8rem; border-radius:999px; background: rgba(142,169,122,.25); border:1px solid rgba(142,169,122,.5); color:#1a2a14; }

/* Glass panels on major sections for accessibility against yellow bg */
header, main, article, footer, aside{
  /* keep default panel look; adjust padding for readability on small screens */
  padding: 1rem;
}
@media (min-width: 60em){
  article{ padding: 1.5rem 2rem; }
}
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; animation: none !important; }
}

/* Print-friendly adjustments */
@media print{
  body, header, main, article, footer, aside { background: #fff !important; color: #000 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
  a{ text-decoration: underline; }
}

/* Simple utility for content blocks (optional) */
.container, .card{ /* ensures compact, accessible blocks if used */ }

/* Image wrapper for potential .image-frame usage elsewhere */
.image-frame{ border-radius: 10px; overflow: hidden; border: 1px solid rgba(0,0,0,.15); box-shadow: 0 6px 16px rgba(0,0,0,.12); }

/* Minimal footprint when no extra markup is used */
main > article{ display: block; }
</style>