/* Tokens */
:root{
  --bg: #1b0b14;            /* deep plum base */
  --bg-2: #2a0f1e;           /* parchment-like depth */
  --paper: #f6e5d0;           /* light parchment */
  --paper-2: #f3d4b0;         /* warmer parchment */
  --text: #f8f0e9;            /* high-contrast on glass */
  --muted: #c7b0a0;
  --accent: #ff6a4a;           /* coral accent */
  --accent-2: #b34b62;         /* plum-coral contrast */
  --glass: rgba(255,255,255,0.12);
  --glass-strong: rgba(255,255,255,0.22);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
  --ring: 0 0 0 3px rgba(255,255,255,.25);
  --surface: rgba(255,255,255,0.10);
  --focus-gap: 4px;
}

/* Base / Reset */
html, body, header, nav, main, article, footer, aside { height: auto; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  background: 
    linear-gradient(135deg, rgba(33,0,28,.72), rgba(15,0,16,.75)),
    radial-gradient(circle at 15% 0%, rgba(255,204,170,.20), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(180,70,120,.14), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(0,0,0,.08), transparent 40%);
  background-blend-mode: multiply, screen, normal, normal;
  min-height: 100dvh;
  position: relative;
  z-index: 0;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom,
              rgba(0,0,0,.04) 0 1px,
              transparent 1px 2px);
  z-index: 0;
  mix-blend-mode: overlay;
  opacity: .25;
}
img { max-width: 100%; display: block; height: auto; }

:focus { outline: none; }

/* Layout helpers */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); padding: 0 1rem; margin: 0 auto; }
.grid { display: grid; gap: 1rem; }

/* Glass panels (with graceful fallback) */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
@supports not (backdrop-filter: blur(10px)) {
  .glass { background: rgba(255,255,255,0.22); }
}
.card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: .75rem; }

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

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

/* Product ad block in footer */
.product-ad { display: grid; place-items: center; padding: .75rem; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }

/* Typography scales */
h1, h2 { line-height: 1.15; margin: .25rem 0 .5rem; }
h1 { font-size: clamp(1.75rem, 3vw + 1rem, 3.25rem); letter-spacing:.2px; color: var(--text); text-align:center; }
h2 { font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem); color: var(--text); }

/* Paragraphs and lists */
p { font-size: clamp(0.95rem, 1vw + 0.9rem, 1.125rem); color: #f7f2ed; margin: 0 0 1rem; }
ul { padding-left: 1.25rem; margin: 0 0 1rem; color: var(--text); }
li { margin: .25rem 0; }

/* Links & CTAs */
a, button, .btn, .cta { color: #fff; text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0 transparent;
  outline: var(--ring);
  outline-offset: var(--focus-gap);
  border-radius: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5ch;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(135deg, rgba(255,106,74,.95), rgba(255,106,74,.85));
  color: #fff;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,106,74,.45); }
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.55);
}
.cta { display:inline-block; padding:.75rem 1.1rem; border-radius:999px; }

/* Utility tokens */
.tag { display:inline-block; padding:.2rem .6rem; border-radius:999px; font-size:.75rem; background: rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.35); color:#fff; }

/* Header / navigation styling */
header { text-align:center; padding: 2rem 0 1rem; position: relative; z-index: 1; }
header h1 { margin: 0; font-weight: 700; font-variation-settings: "wght" 700; }

/* Layout: main content area */
main { padding: 1rem 0 2rem; }
main > article { max-width: clamp(560px, 90vw, 900px); margin: 0 auto; }

/* Footer layout */
footer { padding: 1rem 0 2rem; display: grid; gap: 1rem; justify-items: center; text-align: center; position: relative; z-index: 1; }
footer .sponsored-page { display:flex; justify-content:center; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
 
/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}