:root {
  --bg: #1a0920;
  --bg-2: #2a0a2a;
  --text: #f8f4ff;
  --muted: #d9cfee;
  --accent: #ffd400;
  --accent-2: #ffe861;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.22);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* Base & resets */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  min-height: 100%;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 213, 0, .22) 1px, transparent 1px),
    linear-gradient(135deg, #1a0920 0%, #2a0a2a 60%, #1a0920 100%),
    linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-size: 6px 6px, 100% 100%, 100% 2px;
  background-repeat: repeat, no-repeat, repeat-y;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
ul { padding-inline-start: 1.25rem; }
li { margin-block: .25rem; }

/* Layout helpers */
.container { width: 100%; padding-inline: 1rem; margin-inline: auto; max-width: clamp(680px, 85vw, 1120px); }

/* Grid utility (responsive) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Sectioning elements styling (basic scaffolding) */
header, nav, main, article, aside, footer { padding: 0; margin: 0; }
header { text-align: center; padding: clamp(1.25rem, 3vw, 2.5rem) 1rem; }
header h1 { margin: 0.25rem 0 0.5rem; font-size: clamp(1.6rem, 2vw + 1rem, 3rem); line-height: 1.15; font-weight: 700; color: #fff;
  text-shadow: 0 0 8px rgba(255, 212, 0, .9); letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: clamp(0.9rem, 0.6vw + .8rem, 1.05rem); }

/* Main article typography & layout */
main { display: block; }
article { margin: 0 auto; padding: 1rem; max-width: clamp(60ch, 90vw, 860px); }

/* Image framing (supports both .image-frame and .featured-image) */
.image-frame,
.featured-image {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #000;
}
.image-frame img,
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-frame, .featured-image { margin: 1rem 0; }

/* Optional glass panel aesthetic (fallback ready) */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: var(--glass-strong); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Content helpers (generic text container) */
.content { color: var(--text); }

/* Card/panel and tag styling for utility components */
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 214, 0, .25);
  color: #000;
}

/* Product ad (footer region) */
.product-ad {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  margin: .5rem auto;
}
.product-ad h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.product-ad a {
  display: inline-block;
  padding: .5rem 0.9rem;
  border-radius: 6px;
  background: linear-gradient(to bottom right, rgba(255,255,255,.28), rgba(255,255,255,.08));
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.4);
}
.product-ad a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Link and button treatments (accessibility: focus visible) */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent-2); }
button, .btn, .cta {
  font: inherit;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  padding: .65rem 1.1rem;
  background: rgba(0,0,0,0);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn {
  background: rgba(255, 214, 0, .28);
  color: #1a0b00;
  border-color: rgba(255,255,255,.4);
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 214, 0, .40); }
.cta { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Lists */
ul { padding-left: 1.25rem; }

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

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

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