:root {
  --bg: #0b0b0f;
  --bg-2: #14161f;
  --text: #f5f7fa;
  --muted: #c8b8c0;
  --powder-rose: #d89aa6;
  --mustard: #d4a017;
  --accent: var(--mustard);
  --accent-2: #f5dba8;
  --card: rgba(255,255,255,0.08);
  --card-2: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.28);
  --glass: rgba(255,255,255,0.12);
  --focus: 0 0 0 3px rgba(212,160,56,0.7);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  /* Layered background: gradient + subtle glow + scanlines */
  background:
    linear-gradient(135deg, rgba(14,14,22,0.98) 0%, rgba(12,12,20,0.92) 60%),
    radial-gradient(circle at 20% -10%, rgba(216,168,88,0.15), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 2px);
  background-blend-mode: normal, overlay, overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  /* ok to use; handled per-element below as needed */
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Layout scaffolding */
header, main, aside, article, footer { width: min(1100px, 92vw); margin-inline: auto; }
main { padding: 0.5rem 0 1.5rem; }

/* Glass panels (fallback if backdrop-filter unavailable) */
header {
  display: block;
  margin: 1rem auto;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header { background: rgba(255,255,255,0.18); }
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
header .meta {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(230,230,230,0.92);
  letter-spacing: .2px;
}

/* Featured image area (supporting .image-frame styling) */
.featured-image { display: grid; place-items: center; padding: 0.25rem 0 .5rem; }
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Content blocks (sectioned narrative) */
section {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.22);
}
section h2, section h3 { color: #fff; margin: .25rem 0 .5rem; }
section h2 { font-size: clamp(1.15rem, 2.2vw, 1.6rem); }
section h3 { font-size: clamp(1rem, 1.9vw, 1.25rem); font-weight: 600; }
section p { color: rgba(230,230,230,0.95); margin: .5rem 0; font-size: clamp(0.92rem, 1.8vw, 1rem); }
section ul { margin: .5rem 0 0 1.15rem; padding: 0; }
section li { margin: .25rem 0; color: rgba(230,230,230,0.95); }

/* Quote styling within sections */
blockquote {
  margin: .5rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  color: #fff;
  background: rgba(0,0,0,0.15);
  border-radius: 6px;
}

/* Product ad cards in footer */
.product-ad {
  margin: .75rem 0 0;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(214,160,56,0.20);
  border: 1px solid rgba(214,160,56,0.45);
  text-align: center;
}
.product-ad a { color: #fff; display: inline-block; padding: .5rem 1rem; border-radius: 999px; text-decoration: none; background: rgba(0,0,0,0.28); border: 1px solid rgba(0,0,0,0.28); }

/* Footer */
footer { padding: 1rem; text-align: center; color: rgba(230,230,230,0.9); }

/* Link and interactive controls (core selectors) */
a, button, .btn, .cta {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

/* Button variants */
.btn, .cta, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.25);
  color: #fff;
}
.btn {
  background: var(--accent);
  color: #111;
  border-color: rgba(0,0,0,0.15);
}
.btn:hover { transform: translateY(-1px); background: #f0c83a; }
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.cta { /* alternative label style if used on links */ }

a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* Utility & layout helpers */
.container { width: min(1100px, 92vw); margin-inline: auto; padding: 0 1rem; }
.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: 12px; padding: 1rem; }

/* small decorative tag chips */
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: rgba(216,160,56,0.25);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

/* Image frame utility (supporting class) */
.image-frame, .image-frame img { border-radius: 12px; }
.image-frame { overflow: hidden; border: 1px solid rgba(255,255,255,0.28); }

/* Print styles: basic readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; }
}
