/* Tokens */
:root {
  --bg: #0b0a08;
  --bg-2: #1a0f0b;
  --text: #f7f3e9;
  --muted: #d4b787;
  --accent: #d97a00;
  --accent-2: #ffd56a;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.12);
  --card: rgba(0,0,0,0.22);
  --radius: 14px;
  --shadow: 0 10px 25px rgba(0,0,0,.4);
  --focus-ring: 0 0 0 3px rgba(255, 210, 120, .9);
  --ring: rgba(255, 215, 0, 0.9);
  --gap: 1.25rem;
  --image-border: rgba(255,255,255,.4);
  --card-cta: rgba(216,151,42,.18);
}

/* Base & helpers */
* { box-sizing: border-box; }

html, body { height: 100%; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100%; }

/* Nav placeholder (present in selectors) */
nav { display: block; }

/* Layered background: gradient + starfield-like dots + scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(216,151,42,.25) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,214,96,.20) 0 2px, transparent 2px),
    linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,.75)),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  background-size: cover;
  background-blend-mode: normal;
  filter: saturate(110%);
  pointer-events: none;
  /* subtle diagonal glow texture */
  mask-image: linear-gradient(#000 60%, transparent 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .28;
  filter: saturate(120%);
}

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

/* Grid utility (responsive) */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Glass panels (fallbacks included) */
.glass, .content, .card, .product-ad, header, article, aside, footer {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass, .content, .card, .product-ad, header, article, aside, footer {
    background: rgba(0,0,0,.28);
  }
}
header { padding: 1.5rem 1rem; text-align: center; }

/* Typography */
h1, h2 { margin: 0 0 .5rem; line-height: 1.1; }
h1 { font-size: clamp(1.75rem, 2vw + 1rem, 3.75rem); color: var(--text); text-shadow: 0 2px 12px rgba(216,151,42,.6); }
h2 { font-size: clamp(1.25rem, 1vw + .9rem, 2rem); color: var(--text); }
p { color: var(--text); margin: .5rem 0; font-size: clamp(0.95rem, 0.8vw + .8rem, 1.15rem); }
ul { padding-left: 1.25rem; margin: .25rem 0; }
li { margin: .25rem 0; }

/* Images */
.image-frame { aspect-ratio: 16/9; width: 100%; overflow: hidden; border-radius: calc(var(--radius) - 4px); border:1px solid rgba(255,255,255,.4); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Featured image wrapper (as used in markup) */
.featured-image { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.4); margin: 1rem 0; }

/* Utility: content blocks */
.content { }

/* Links & interactions */
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }

/* Buttons & CTAs */
.btn, .cta { display:inline-flex; align-items:center; justify-content:center; padding:.65rem 1rem; border-radius: 8px; border:1px solid rgba(255,255,255,.5); text-decoration: none; color: var(--text); cursor: pointer; transition: transform .15s ease, background .2s ease; }
.btn { background: rgba(216,151,42,.28); }
.btn:hover { transform: translateY(-1px); background: rgba(216,151,42,.45); }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--accent); color: #111; border-color: rgba(0,0,0,.15); }
.btn--solid:hover { background: #f5b14d; }

/* Outline CTAs */
.cta { background: transparent; border:1px solid rgba(255,255,255,.6); color: var(--text); }
.cta:hover { background: rgba(255,255,255,.08); }

/* Product ad styling (glass) */
.product-ad { display: block; text-align: center; padding: .75rem; margin: .75rem 0; background: rgba(184, 131, 2, .18); border: 1px solid rgba(255,255,255,.35); }

/* Product ad link styling */
.product-ad a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; text-decoration: none; color: var(--text); }

/* Content-like helper class for potential sections */
.content { }

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

/* Section headers (structure) */
.section { padding: 0; margin: 0; }

/* Typography adjustments for small screens */
@media (max-width: 700px) {
  .container { padding-inline: .75rem; }
  header { padding: 1rem; }
  .image-frame { border-radius: 12px; }
}

/* Motion preferences (reduce) */
@media (prefers-reduced-motion: reduce) {
  html, body, header, main, article, footer, aside, .card, .grid { animation: none !important; transition: none !important; }
}

/* Focus visibility for keyboard users on main interactive elements */
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

/* Ensure selectors explicitly styled by requirement */
html, body, header, nav, main, article, footer, aside { } /* targeted by project; no extra rules needed here beyond above */