/* Theme tokens */
:root {
  --bg: #0a0a0f;
  --bg-2: #141621;
  --text: #f5f7fa;
  --muted: #cbd5e1;
  --accent: #d4af37;       /* gold */
  --accent-2: #8a8f97;     /* pewter */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 24px rgba(0,0,0,.38);
  --radius: 12px;
  --focus: 2px solid #ffd479;
  --focus-offset: 3px;
  --text-on-glass: rgba(255,255,255,0.95);
}

/* Reset-ish baseline */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.08) 40%, rgba(15,15,20,0.88) 100%), #0a0a0f;
  background-attachment: fixed;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}
/* Subtle layered background: dawn gold glow + scanlines (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient( circle at 50% -10%, rgba(255, 215, 128, 0.28) 0%, transparent 40% ),
    linear-gradient(to bottom, rgba(234, 190, 60, 0.08) 0%, rgba(0,0,0,0.25) 60%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  content: "";
  opacity: 0.95;
}

/* Layout helpers (utility-like) */
.container {
  width: 100%;
  max-width: clamp(720px, 86vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Typography foundation */
h1, h2, h3 { line-height: 1.15; margin: 0.4em 0 0.6em; font-weight: 700; }
p { margin: 0 0 1em; color: color-mlect; }
.content { line-height: 1.6; color: var(--text); }

/* Header / Hero */
header {
  padding: clamp(1.25rem, 4vw, 2.5rem) 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
header h1 {
  font-size: clamp(1.8rem, 4vw + 1rem, 3.6rem);
  margin: 0.25rem 0 0.5rem;
  letter-spacing: .5px;
  color: #fff;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
}
header nav {
  margin-top: .75rem;
}
header nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease;
}
header nav a:hover { background: rgba(0,0,0,.32); transform: translateY(-1px); }
header nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,175,55,.55);
  border-color: rgba(255,255,255,.6);
  background: rgba(0,0,0,.32);
  transform: translateY(-1px);
}
header::after {
  /* subtle glass sheen */
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.25), transparent);
  margin-top: .75rem;
  opacity: .6;
  width: 60%;
  margin-inline: auto;
}

/* Article / content panels (glass) */
article {
  max-width: min(860px, 92%);
  margin: 0 auto;
  padding: 1rem;
  z-index: 1;
}
.featured-image {
  margin: 1rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  width: 100%;
  max-width: 100%;
}
.featured-image img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Glass panels (fallback supported) */
.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.no-backdrop {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  padding: 1rem;
  border-radius: var(--radius);
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Inline media sections (footer ads) */
footer {
  padding: 2rem 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
.product-ad, .sponsored-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--text);
}
.product-ad a, .sponsored-page a {
  color: inherit; text-decoration: none;
  display: block; width: 100%;
}
footer p { text-align: center; color: var(--muted); }

/* Simple CTAs and links */
a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.btn, .cta {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg, rgba(212,175,55,.95) 0%, rgba(212,175,55,.75) 100%);
  color: #1a1600;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover, .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.btn:active, .cta:active {
  transform: translateY(0);
}
.btn.secondary {
  background: rgba(0,0,0,.18);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.32);
}
a.btn:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,175,55,.65);
  outline-offset: var(--focus-offset);
}
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Image frame helper (for any future <div class="image-frame">) */
.image-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 6px 16px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@media (min-width: 760px) {
  footer { grid-template-columns: 1fr 1fr; }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { page-break-inside: avoid; }
  a, .btn, .cta { color: #000; text-decoration: underline; }
}
