:root{
  --bg: #0b0b0f;
  --bg-2: #141017;
  --text: #f7f5f2;
  --muted: #cbb2a2;
  --accent: #ff7a1a;       /* burnt orange */
  --accent-2: #e1a6a0;     /* rose-gold tint */
  --glass: rgba(255,255,255,0.10);
  --glass-2: rgba(0,0,0,0.28);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
}
html, body { height: 100%; }
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/* Layered background: gradient + subtle noise/scanlines */
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  background:
    radial-gradient(circle at 20% -10%, rgba(255,122,26,.20), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(214,120,60,.15), transparent 40%),
    linear-gradient(135deg, rgba(12,8,12,.95) 0%, rgba(12,6,6,.95) 60%, rgba(12,8,12,.95) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.65)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
  background-color: var(--bg);
  background-blend-mode: normal, normal, normal, normal, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: light) {
  :root { --text: #111; --muted: #555; }
  body { background: #fff; color: #111; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Layout utilities and primitives */
.container {
  max-width: clamp(720px, 86vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.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: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
.tag {
  display:inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,122,26,.25), rgba(255,122,26,.15));
  border: 1px solid rgba(255,122,26,.55);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  filter: saturate(1.05);
}

/* Glass panels (fallback included) */
.header-glass,
.main-glass,
.footer-glass,
.aside-glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.no-backdrop {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  backdrop-filter: none;
}
header, nav, main, article, aside, footer {
  width: 100%;
}
header { padding: 1rem 0; }
header h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin: .25rem 0 0.5rem; line-height: 1.15; }
header .meta { color: var(--muted); font-size: .9rem; margin: 0; }

/* Global typography rules */
h1, h2, h3 { margin: 0.75rem 0 .5rem; font-weight: 700; color: var(--text); }
h2 { font-size: clamp(1.25rem, 2.5vw + 0.5rem, 2rem); }
h3 { font-size: 1.1rem; }
p { color: #e9e1da; margin: .25rem 0 0.75rem; }
ul, ol { padding-left: 1.25rem; color: var(--muted); margin: .25rem 0 0.75rem; }
li { margin: .25rem 0; }

/* Content flow regions */
.content { padding: 0; }

/* Links and interactive controls */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Button and CTA variants */
button, .btn, .cta {
  font: inherit;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-align: center;
}
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); background: #ff8a2d; }
button:active, .btn:active, .cta:active { transform: translateY(0); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid rgba(255,122,26,.9);
  outline-offset: 2px;
}
.btn.outline, .cta.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,122,26,.9);
}
.btn.outline:hover, .cta.outline:hover {
  background: rgba(255,122,26,.15);
}
.btn.secondary, .cta.secondary {
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.btn.secondary:hover { background: rgba(0,0,0,.25); }

/* Subsections and structure emphasis */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: .75rem;
  margin: .5rem 0;
}
.product-ad a, .sponsored-page a { text-decoration: none; color: #fff; }
.product-ad p, .sponsored-page p { margin: 0; }

/* Core layout blocks for the page anatomy */
header {
  display: block;
}
main { padding: 1rem 0; }
article {
  padding: 1rem;
}
footer {
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) {
  footer { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
@media (max-width: 759px) {
  header { padding: .75rem 0; }
  article { padding: .75rem; }
}
.image-frame { margin-bottom: 1rem; }

/* Print friendly adjustments */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .header-glass, .main-glass, .footer-glass { background: #fff; border: none; box-shadow: none; }
}
