:root {
  --bg: #0b0b0b;
  --bg-2: #1a0f0a;
  --surface: rgba(214, 174, 77, 0.18);
  --surface-2: rgba(214, 174, 77, 0.28);
  --text: #f9f4e9;
  --muted: #d8cfa6;
  --accent: #ffd166;
  --accent-2: #f6b000;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.42);
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html { font-size: 16px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: 
    radial-gradient(circle at 15% 15%, rgba(214,174,77,.25) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 40%, rgba(214,174,77,.18) 0 3px, transparent 3px),
    linear-gradient(135deg, rgba(12,6,0,.92), rgba(12,6,0,.92) 60%, rgba(12,6,0,.92)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    #0b0b0b;
  background-blend-mode: overlay, overlay, normal, overlay, normal;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* subtle copper snowfall lines */
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 214, 102, .25) 0 2px, transparent 2px),
    radial-gradient(circle at 60% 70%, rgba(255, 196, 102, .18) 0 3px, transparent 3px),
    linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,.0));
  background-size: 40px 40px, 60px 60px, 100% 100%;
  mix-blend-mode: overlay;
  opacity: .45;
  filter: saturate(1.1);
}

header, nav, main, article, aside, footer {
  padding: 1rem;
}

/* Layout helpers */
.container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}

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

.card { /* generic glass card for panels */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Glass sections and panels | required selectors */
header, main, article, footer, aside {
  /* ensure readable layering on the glassy background */
  position: relative;
  z-index: 0;
}
header {
  text-align: center;
}
header h1 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem);
  line-height: 1.15;
  margin: 0.25rem 0;
  font-weight: 700;
  letter-spacing: .2px;
}
header .meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: .25rem;
}
nav {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .75rem;
}
nav a {
  padding: .5rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
nav a:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }

/* Main article content with glass panel treatment */
main {
  display: block;
}
article {
  margin: 1rem auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 6px 28px rgba(0,0,0,.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
.featured-image {
  display: block;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 22px rgba(0,0,0,.4);
  margin-bottom: .75rem;
}
.featured-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
h2, h3 { margin: .75rem 0 .5rem; line-height: 1.25; }
p { margin: .5rem 0 1rem; color: #f6f0e0; }
ul, ol { margin: .5rem 0 1rem 1.25rem; color: #f6f0e0; }
li { margin: .25rem 0; }

/* .content utility (fallback / optional) */
.content {
  max-width: 70ch;
  margin: 0 auto;
  padding: 0;
  line-height: 1.6;
  color: var(--text);
}

/* Image frame utility per requirements */
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.04); }

/* .product-ad as glassy promo area in footer */
.product-ad {
  display: inline-block;
  padding: .75rem 1rem;
  margin: .25rem;
  border-radius: 10px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.product-ad a { color: var(--text); text-decoration: none; display: block; }
.product-ad a:hover { text-decoration: underline; }

/* Links and buttons (interactive states) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  padding: .6rem .95rem;
  background: rgba(255,255,255,.05);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  display: inline-block;
}
a:hover, button:hover, .btn:hover, .cta:hover { text-decoration: underline; background: rgba(255,255,255,.12); transform: translateY(-1px); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
.btn { font-weight: 600; }
.btn--solid {
  background: linear-gradient(135deg, rgba(255, 209, 102, 1) 0%, rgba(255, 177, 0, 0.95) 100%);
  border: none;
  color: #1a1a1a;
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 209, 102, 0.9);
  color: var(--text);
}
.cta { font-weight: 600; }

/* Lists and typography tweaks for accessibility */
ul, ol { line-height: 1.65; }

/* Utility pills/tags */
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255, 214, 102, 0.15);
  border: 1px solid rgba(255, 214, 102, 0.65);
  color: var(--text);
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  nav, .product-ad { display: none; }
  article { background: transparent; border: none; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .image-frame img { transform: none !important; }
}
