/* Tokens: Burgudy / burnt-orange, high-contrast palette */
:root{
  --bg: #220508;
  --bg-2: #4a0b0f;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --text: #f3ece6;
  --muted: #c9b8aa;
  --accent: #d97900;
  --accent-2: #ff8a1a;
  --focus: #ffd27a;
  --card: rgba(0,0,0,0.22);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --border: rgba(255,255,255,0.28);
  --bg-glass: rgba(255,255,255,0.08);
}

/* Global reset and base */
*,
*::before,
*::after{ box-sizing: border-box; }
html, body, header, nav, main, article, footer, aside{ height: auto; }
html, body{ height: 100%; }
html{ font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: transparent; }
body{
  margin: 0;
  color: var(--text);
  /* Layered background: gradient + subtle scanlines */
  background:
    linear-gradient(135deg, rgba(133,0,18,0.95) 0%, rgba(41,0,0,0.95) 60%, rgba(12,0,0,0.96) 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 2px, transparent 2px 4px);
  background-blend-mode: normal;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Subtle parallax-like tiling for interest on large screens */
  background-attachment: fixed;
  background-size: auto;
}

/* Light sheen overlay (noise substitute) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.04), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.05), transparent 40%);
  mix-blend-mode: overlay;
  opacity: 0.6;
  filter: saturate(1.1);
}

/* Layout primitives */
.container{ width: min(1100px, 92vw); margin-inline: auto; padding-block: 1.5rem; padding-inline: 0.75rem; display: block; }
.grid{ display: grid; gap: 1rem; }
.card{ background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }

/* Glass panel with backdrop-filter (fallback provided) */
.glass{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(12px)){
  .glass{ background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.4); }
}

/* Typography: fluid, accessible */
h1, h2, h3, h4, h5{ line-height: 1.15; margin: .25rem 0 0.5rem; font-weight: 700; color: var(--text); }
h1{ font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2{ font-size: clamp(1.4rem, 3vw, 2.25rem); }
h3{ font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
p{ font-size: clamp(0.95rem, 1.8vw, 1.05rem); line-height: 1.5; color: var(--text); margin: .25rem 0 1rem; }

/* Header (hero) styles */
header{
  padding: 2rem 1rem;
  text-align: center;
}
header h1{ margin-bottom: .25rem; }
header .meta{ color: var(--muted); font-size: clamp(0.75rem, 1.5vw, 0.9rem); }
header nav{ margin-top: .75rem; display: inline-flex; gap: .5rem; }

/* Navigation + controls */
a{ color: var(--accent); text-decoration: none; }
a:hover, a:focus{ text-decoration: underline; }
a:focus-visible, button:focus-visible{ outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Buttons and CTAs */
.btn, .cta{ display: inline-block; padding: .75rem 1rem; border-radius: 9px; border: 1px solid rgba(217,121,0,.6); font-weight: 600; text-decoration: none; transition: transform .15s ease, background .15s ease, color .15s; cursor: pointer; }
.btn{ background: linear-gradient(#d97900, #b86200); color: #fff; }
.btn:hover{ transform: translateY(-1px); background: linear-gradient(#e08a00, #c05a00); }
.btn.secondary{ background: transparent; color: var(--accent); border-color: rgba(217,121,0,.6); }
.cta{ background: linear-gradient(to bottom, rgba(255,255,255,.18), rgba(255,255,255,.12)); color: var(--text); border:1px solid rgba(255,255,255,.3); }

/* Hero pattern region (embedded in layout) */
.hero{ display: grid; gap: .75rem; }

/* Content helpers */
.content{ padding: 1rem; }

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

/* Article, main, and layout regions */
main{ padding: 1rem 0; }
article{ display: block; }

/* Product ad / footer-like blocks */
.product-ad{ display: block; padding: .75rem; text-align: center; border-radius: 12px; background: rgba(0,0,0,.25); border:1px solid rgba(255,255,255,.25); margin: .5rem 0; }
.product-ad a{ display: block; padding: .5rem; color: #fff; text-decoration: none; border-radius: 8px; }
.product-ad a:hover{ text-decoration: underline; background: rgba(255,255,255,.08); }

/* Lists */
ul{ margin: .5rem 0 1rem; padding-left: 1.25rem; }
li{ margin: .25rem 0; }

/* Tags (utility) */
.tag{ display:inline-block; padding: .25rem .6rem; border-radius:999px; font-size: .8rem; border:1px solid rgba(255,255,255,.25); background: rgba(217,121,0,.15); color: #ffd9b3; }

/* Layout tweaks for sections that may appear in the page */
header, main, footer{ padding-inline: 0.5rem; }

/* Footer tweaks */
footer{ padding: 1.25rem; text-align: center; color: var(--muted); }

/* Print styles (basic readability) */
@media print{
  body{ background: white; color: #000; }
  a{ color: #000; text-decoration: underline; }
  .glass{ background: #f5f5f5; border-color:#ddd; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}