/* Tokens */
:root{
  --bg: #1e232a;          /* steel-gray base */
  --bg-2: #2a2f35;        /* depth */
  --bg-3: #0f1117;        /* deep shadow */
  --text: #e8e9ee;         /* high-contrast text */
  --muted: #b8bec8;        /* secondary text */
  --accent: #8b1a2c;        /* burgundy primary */
  --accent-2: #b0304b;      /* burgundy highlight */
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.25);
  --shadow: 0 8px 26px rgba(0,0,0,.25);
  --focus: 0 0 0 4px rgba(139,26,44,.55);
}

/* Layered background: gradient + subtle scanlines/noise (pure CSS) */
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  background: 
    radial-gradient(circle at 20% 10%, rgba(120,24,45,.25), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(60,70,120,.25), transparent 40%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg-3) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .25;
  z-index: 0;
}

/* Layout helpers */
.container { width: 100%; max-width: clamp(640px, 78vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .9rem; }
.tag { display:inline-block; padding:.2em .5em; border-radius:999px; font-size:.75rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; }

/* Glass panels (fallback for backdrop-filter) */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-2);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(20,20,28,.65); border-color: rgba(255,255,255,.35); }
}

/* Beverage of main regions */
header, main, footer, aside, article { display: block; }
header { padding: 1.5rem; margin: 1rem auto; max-width: calc(1000px + 2vw); }
main { padding: 0 1rem 2rem; }
footer { padding: 1rem; margin-top: 1rem; }

/* Hero / header styling */
header { text-align: center; }
header h1 { font-size: clamp(1.6rem, 1.5rem + 2vw, 2.8rem); line-height: 1.12; margin: .25rem 0 0.5rem; }
header .meta { color: var(--muted); font-size: .92rem; margin-bottom: .25rem; }

/* Content area (article) with glass panel look */
article {
  max-width: clamp(640px, 70ch, 1000px);
  margin: 0 auto;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(15,17,22,.28);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeInUp .6s ease both;
}
@media (prefers-reduced-motion: reduce) {
  article { animation: none; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.featured-image { margin: 1rem 0; }
.image-frame {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography helpers */
h2, h3 { margin-top: 1.25rem; }
p { color: #eaeaf0; font-size: clamp(1rem, .3vw + .95rem, 1.125rem); line-height: 1.6; }
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

/* Blockquote styling */
blockquote {
  margin: 1rem 0; padding: .75rem 1rem;
  border-left: 4px solid var(--accent-2);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
  color: #fff;
}

/* Images & media utility */
.content { color: var(--text); }

/* Navigation */
nav { margin-top: .25rem; display: inline-block; }
nav a {
  color: var(--text); text-decoration: none;
  padding: .4em .7em; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
}
nav a:hover { text-decoration: underline; }

/* Buttons & links (solid and outline variants) */
.btn, .cta, a.btn, a.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8em 1.25em; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.35);
  text-decoration: none; font-weight: 700;
  color: #fff; background: var(--accent);
  cursor: pointer; transition: transform .15s ease, background .2s ease;
}
.btn:hover, .cta:hover, a.btn:hover, a.cta:hover { transform: translateY(-1px); background: #a0122f; }
.btn.secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn:focus-visible, .cta:focus-visible, a.btn:focus-visible, a.cta:focus-visible {
  outline: none; box-shadow: var(--focus);
}
a{ color:inherit; }

/* Lists & cards */
ul { list-style: disc inside; }
.card { padding: .9rem; border-radius: 12px; }

/* Ad / sponsor sections in footer */
.product-ad { padding: .4rem; display: inline-block; margin: .25rem; }
.product-ad a { display: block; padding: .6rem 1rem; border-radius: 8px; background: rgba(20,20,28,.38); border: 1px solid rgba(255,255,255,.25); color: #fff; text-align: center; text-decoration: none; }

/* Image frame helpers for .image-frame (when used) */
.aside { display: none; }

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  header, footer { display: none; }
  article { background: transparent; border: none; padding: 0; }
}
