/* Palette & Background Tokens */
:root {
  --bg: #1a0010;            /* aubergine base */
  --bg-2: #2a0922;          /* deeper layer */
  --text: #f8f4ff;           /* high-contrast text on glass */
  --muted: #cdb6ce;          /* muted text */
  --accent: #ff2a5b;          /* scarlet neon */
  --accent-2: #e6003a;        /* deeper scarlet */
  --card-bg: rgba(10, 0, 20, 0.28);
  --card-border: rgba(255, 255, 255, 0.28);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  --focus: 0 0 0 3px rgba(255, 40, 120, 0.6);
}

/* Global & Layout */
* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  /* Layered background: gradient base + subtle scanlines + faint noise via gradients */
  background-image:
    linear-gradient(135deg, rgba(255, 36, 90, 0.15), rgba(60, 0, 60, 0.25) 60%, rgba(0,0,0,0) 100%),
    linear-gradient(to bottom right, rgba(12,0,25,0.55), rgba(10,0,15,0.55)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 2px);
  background-color: #100015;
  background-blend-mode: overlay, overlay, normal;
  color-scheme: dark;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Containers & Utilities */
.container { max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tag { display: inline-block; padding: 0.15em 0.5em; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); margin-right: .25em; }

/* Typography scale (fluid) */
h1 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.08; margin: 0 0 .25rem; color: #fff; text-shadow: 0 0 12px rgba(255, 0, 80, 0.65); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin: 1rem 0 .5rem; color: #fff; }
h3 { font-size: 1.05rem; margin: .75rem 0; color: #fff; }
p, li { font-size: clamp(0.95rem, 2.2vw, 1rem); color: #efe6f5; }

/* Header & Nav (glassy) */
header { padding: clamp(1rem, 4vw, 2rem) 1rem; text-align: center; position: relative; z-index: 1; }
header h1 { margin: 0 0 .25rem; font-weight: 700; letter-spacing: .2px; text-transform: none; }
header .meta { color: var(--muted); font-size: clamp(.8rem, 2vw, 0.95rem); }

/* Navigation links */
nav a { color: var(--accent); text-decoration: none; padding: .25rem .6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.15); }
nav a:hover { text-decoration: underline; }

/* Main content & article layout */
main { padding: 0 1rem 2rem; }
article { display: grid; gap: 1rem; }

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

/* Generic content panel (glass) */
.content { padding: 0.25rem 0 0.5rem; }

 /* Glass panel styling for content sections */
 .card, .block { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; }

/* Feature: .product-ad in footer (glass panel) */
.product-ad, .sponsored-page { padding: 1rem; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); text-align: left; }

/* Links, buttons & CTAs (interactive states) */
a, button, .btn, .cta { font-family: inherit; font-weight: 500; color: #fff; text-decoration: none; cursor: pointer; }
a { color: var(--accent); }
a:hover, a:focus-visible { text-decoration: underline; text-decoration-color: rgba(255,255,255,.8); text-underline-offset: 3px; outline: none; }
button, .btn, .cta { border: 1px solid rgba(255,255,255,.25); background: var(--accent); color: #fff; border-radius: 999px; padding: .65rem 1.1rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: transform .15s ease, background .2s ease, border-color .2s ease; }
.btn--outline { background: transparent; color: var(--text); border-color: rgba(255,255,255,.6); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

/* Utility: responsive typography & layout helpers */
@media (min-width: 700px) {
  .container { padding-inline: 0; }
  main { padding: 0 1.25rem 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Footer & sponsorship sections */
footer { padding: 1rem; padding-top: .75rem; background: rgba(0,0,0,.22); border-top: 1px solid rgba(255,255,255,.25); }
footer section { min-height: 60px; display: flex; align-items: center; justify-content: center; }

/* Print-friendly tweaks */
@media print {
  body { background: #fff; color: #000; }
  header, nav, main, article, footer { display: block; padding: 0; margin: 0; }
  a { text-decoration: underline; color: #000; }
  .card { background: #fff; border: 1px solid #ccc; box-shadow: none; }
}
