:root{
  /* Palette tokens derived from pastel yellow + maroon accents */
  --bg: #0a0a0f;
  --bg-2: #1a0b14;
  --text: #f7f4ee;
  --muted: #c7b89f;
  --accent: #ffd86b;      /* pastel yellow */
  --accent-2: #7a1f23;     /* maroon */
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --focus: 2px solid color-mix(in lab, var(--accent), white 20%);
}

/* Base reset and typography */
html, body { height: 100%; }
* { box-sizing: border-box; }
html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(14px, 0.4vw + 12px, 16px);
  line-height: 1.5;
  color: var(--text);
}
body {
  margin: 0;
  background: 
    radial-gradient(circle at 10% -10%, rgba(255, 214, 120,.25), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(255, 214, 120,.15), transparent 40%),
    linear-gradient(135deg, #0a0a0f 0%, #1a0b14 60%, #0c0a12 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,240,.04), rgba(255,255,240,.04)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  animation: scan 9s linear infinite;
  opacity: .8;
}
@keyframes scan { to { transform: translate3d(0,0,0); } }

/* Layout scaffolding */
header, main, footer, article, aside, nav, .container, .grid, .card, .tag, .image-frame {
  z-index: 1;
}
header {
  max-width: 1100px;
  width: 100%;
  margin: 1.25rem auto;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
header h1 { margin: .25rem 0 .4rem; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: .92rem; margin-top: .25rem; }

/* Navigation affordances */
nav {
  display: flex; justify-content: center; gap: .5rem; margin-top: .75rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease;
}
nav a:hover { background: rgba(0,0,0,.35); transform: translateY(-1px); text-decoration: none; }
nav a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Main content container */
main { padding: 1rem; }
article { max-width: 1100px; margin: 0 auto; padding: 0 0.5rem 2rem; }

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

/* Content helpers */
.content { padding: .25rem 0; }

/* Sections and typography inside article */
h2, h3 { line-height: 1.25; margin: .75rem 0 .5rem; }
p { margin: .4rem 0 1rem; }
ol, ul { padding-left: 1.25rem; margin: .4rem 0 1rem; }
li { margin: .25rem 0; }

/* Glassy cards and panels */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .card { background: rgba(255,255,255,.14); }
}

/* Utilities (container, grid, tag) */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Product ad and footer items */
.product-ad, .sponsored-page { display: inline-block; margin: .5rem; padding: .6rem; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; padding: .25rem; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Link/button styling (interactive states) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; color: var(--accent); }

.btn, .cta {
  display: inline-block;
  padding: .55rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(0,0,0,.25);
  color: var(--text);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn.primary { background: var(--accent); color: #1b1b1b; border: none; }
.btn.secondary { background: transparent; border-color: rgba(255,255,255,.38); color: var(--text); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Focus treatment for links and form controls for WCAG AA-ish contrast */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Layout helpers for images and content blocks */
.image-frame { border-radius: 12px; overflow: hidden; }
.content p { margin-block: .5rem; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, footer { background: none; border: none; box-shadow: none; }
  a, .btn { text-decoration: underline; color: #000; }
}

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