/* Section: Base & Theme Tokens */
:root {
  --bg: #0e0a0a;
  --bg-2: #2a0000;
  --text: #f8f9fb;
  --muted: #c8c7cc;
  --accent: #b5122e;       /* maroon core */
  --accent-2: #ffffff;     /* white for contrast */
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.25);
  --shadow: 0 10px 28px rgba(0,0,0,.38);
  --radius: 12px;
  --focus: 2px solid #fff;
  --max-w: clamp(320px, 90vw, 1100px);
}

/* Section: Layered Background (maroon zigzag + gradient + scanlines) */
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans"; }
body {
  margin: 0;
  color: var(--text);
  background-color: #000;
  /* Layered: maroon zigzag, subtle scanlines, gradient */
  background-image:
    /* maroon zigzag pattern (chevrons) */
    linear-gradient(135deg, rgba(122,0,0,.95) 25%, rgba(122,0,0,.75) 25%,
                               rgba(122,0,0,.75) 50%, rgba(122,0,0,.95) 50%, rgba(122,0,0,.75) 75%, rgba(122,0,0,.95) 75%),
    /* overlay chevrons to simulate zigzag */
    linear-gradient(45deg, rgba(0,0,0,.25) 25%, transparent 25%) ,
    linear-gradient(-45deg, rgba(0,0,0,.25) 25%, transparent 25%);
  background-size: 28px 28px, 28px 28px, 28px 28px;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat;
  background-blend-mode: overlay;
  background-attachment: fixed;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Section: Layout Helpers & Global Styles */
* { box-sizing: border-box; }
img { max-width: 100%; display: block; }

/* Section: Page Structure */
html, body, header, nav, main, article, aside, footer { 
  /* explicit for clarity across pages; */
}
header {
  padding: 1.25rem 1rem;
  display: grid;
  place-items: center;
}
header h1 {
  font-size: clamp(1.4rem, 1.2rem + 2vw, 2.8rem);
  line-height: 1.15;
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
main { padding: 1rem; display: grid; justify-items: center; }
article { width: 100%; display: grid; justify-items: center; }

/* Section: Image Frame */
.image-frame {
  width: min(100%, 1000px);
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 28px rgba(0,0,0,.38);
  background: #111;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transform: translateZ(0);
}

/* Section: Content & Glass Panels */
.content {
  color: var(--text);
  max-width: 60ch;
  padding: 0.5rem 0;
}
.card, .glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.glass { background: rgba(255,255,255,.08); }

/* Section: Product Ad / Links in Footer */
.product-ad, .sponsored-page {
  display: block;
  width: 100%;
  margin: .25rem 0;
}
.product-ad a, .sponsored-page a {
  display: block;
  text-decoration: none;
  padding: .9rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--text);
  text-align: left;
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }

/* Section: Typography & Links */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
ul { padding-left: 1.25rem; margin: .25rem 0; color: var(--text); }
li { margin: .25rem 0; }

/* Section: Utilities (container, grid, card, tag) */
.container {
  width: 100%; max-width: var(--max-w);
  margin-inline: auto; padding-inline: 1rem;
}
.grid {
  display: grid; gap: 1rem;
}
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Tags & CTAs */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}
.btn {
  padding: .8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
}
.btn.primary {
  background: linear-gradient(135deg, rgba(210,0,40,.95), rgba(170,0,0,.95));
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
}
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
}
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Layout Responsiveness & Dark/Light Modes */
@media (min-width: 640px) {
  main { padding: 2rem 1.25rem; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f3f6;
    --bg-2: #e8e0e8;
    --text: #0a0a0a;
    --muted: #555;
  }
  body {
    background-color: #fff;
    background-image:
      linear-gradient(135deg, rgba(90,0,0,.08) 0%, rgba(180,0,0,.08) 100%),
      linear-gradient(0deg, rgba(0,0,0,.04), rgba(0,0,0,.04)),
      linear-gradient(#fff, #fff);
    background-blend-mode: overlay, overlay, normal;
  }
  .image-frame { border-color: rgba(0,0,0,.2); background: #fff; }
  .glass, .card { background: rgba(255,255,255,.92); backdrop-filter: blur(6px); }
  a, button, .btn, .cta { color: #111; }
}

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