:root{
  --bg: #0a0d12;
  --bg-2: #111522;
  --text: #e9eef7;
  --muted: #b9c2cc;
  --accent: #d4a017; /* mustard */
  --accent-2: #8a8b92; /* pewter */
  --glass: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: 3px solid rgba(212,160,23,.8);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body, header, nav, main, article, footer, aside {
  /* semantic block reset hints; no heavy defaults */
}

html, body { height: 100%; }

html {
  font-family: var(--font);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #0a0f14 0%, #0b0f14 40%, #0a0f14 100%), 
              radial-gradient(circle at 20% -10%, rgba(212,160,23,.08), transparent 40%),
              linear-gradient(#0a0f14 0%, #05070a 60%);
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}

/* Layered background: subtle mustard grid + scanlines + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212,160,23,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,160,23,.04) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px;
  mix-blend-mode: overlay;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(0,0,0,.06), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.04), transparent 40%);
  mix-blend-mode: overlay;
  z-index: 0;
  opacity: .9;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(255,255,255,.12); }
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  color: var(--accent);
  background: rgba(212,160,23,.15);
  border: 1px solid rgba(212,160,23,.35);
}

/* Typography scale (fluid) */
h1, h2, h3 {
  margin: 0 0 .5rem;
  font-weight: 800;
  letter-spacing: .2px;
}
h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.15; text-wrap: pretty; }
p { margin: 0 0 1rem; color: var(--muted); }

/* Header / navigation styling (must include selectors) */
header {
  padding: 1rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
header h1 {
  font-size: clamp(1.1rem, 4vw, 1.75rem);
  margin: 0;
  font-weight: 800;
  letter-spacing: .2px;
}
nav {
  margin-top: .5rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: .5rem;
  display: inline-block;
}
nav a:focus-visible { outline: 3px solid rgba(212,160,23,.92); outline-offset: 2px; border-radius: .5rem; }
nav a:hover { text-decoration: underline; }

/* Main / article content */
main { padding: 1rem 0; }
.article { display: block; }

/* Image frame styling */
.image-frame {
  width: 100%;
  max-width: clamp(280px, 92vw, 1000px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  background: linear-gradient(#0b0f14, #11161c);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: translateZ(0);
}

/* Content panel (glass) */
.content {
  display: block;
  padding: 1rem;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .content { background: rgba(255,255,255,.12); }
}

/* Product ad / footer-style panels (glass) */
.product-ad,
.sponsored-page {
  display: block;
  text-align: center;
  margin: .75rem auto;
  padding: .75rem 1rem;
  max-width: 860px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-wrap: balance;
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: .5rem;
}
.product-ad a:focus-visible, .sponsored-page a:focus-visible { outline: 3px solid rgba(212,160,23,.92); outline-offset: 2px; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Links and interactions (globally) */
a {
  color: var(--text);
  text-decoration: none;
}
a:focus-visible { outline: 3px solid rgba(212,160,23,.92); outline-offset: 2px; }
a:hover { text-decoration: underline; }

/* Buttons (solid + outline variants) */
.btn,
button,
.cta {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  padding: .7rem 1.2rem;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn { background: var(--accent); color: #1a1a00; }
.btn.primary { background: var(--accent); color: #1a1a00; }
.btn.secondary { background: transparent; color: var(--text); border-color: rgba(255,255,255,.4); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.cta {
  background: var(--accent-2);
  color: #0a0a0a;
  border: 1px solid rgba(0,0,0,.2);
}
.cta:hover { filter: brightness(1.05); }

/* Focus visibility for controls */
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(212,160,23,.92);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Forms (if present) */
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: .5rem .75rem;
  outline: none;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: rgba(212,160,23,.92);
  box-shadow: 0 0 0 3px rgba(212,160,23,.25);
}

/* Utilities (compact set) */
ul { margin: 0; padding-left: 1.125rem; color: var(--muted); }
li { margin: .25rem 0; }

/* Print styles for basic readability */
@media print {
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .card { background: white; border: 1px solid #ddd; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
} 

/* Accessibility: ensure high contrast on glass text by softening on dark surfaces */
@media (prefers-color-scheme: light) {
  :root {
    --text: #1b1b1b;
    --muted: #555;
  }
  body { background: #f7f7f7; color: var(--text); }
  .card { background: rgba(255,255,255,.9); border-color: rgba(0,0,0,.08); }
}
