/* Base: palette and global tokens */
:root{
  --bg: #0b1020;
  --bg-2: #1a1022;
  --peach: #ff9d6a;
  --peach-2: #ffd6b3;
  --text: #e6f0ff;
  --muted: #a6b4c7;
  --accent: #3bd2ff;
  --accent-2: #8a5fff;
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: var(--text);
  /* Layered background: navy base + peach glow + subtle scanlines */
  background:
    linear-gradient(135deg, rgba(10,12,30,.95) 0%, rgba(20,10,28,.95) 60%, rgba(8,8,20,.95) 100%),
    radial-gradient(circle at 20% 0%, rgba(255,157,106,.18) 0%, transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* Layout containers and helpers */
.container { max-width: clamp(320px, 88vw, 1100px); margin-inline: auto; padding: 0 1rem; }

/* Section headers (for sections in CSS only) */
.header, .main, .footer { display: block; }

/* Header and navigation styling (glass-like panels) */
header {
  padding: 1rem 0.75rem;
  margin: 0 auto 1rem;
}
header h1 {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.9rem);
  line-height: 1.12;
  margin: .2rem 0 0;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 0.6vw + .8rem, 1rem);
  margin: .25rem 0 0;
}
nav { margin-top: .5rem; }
nav a {
  display: inline-block;
  padding: .5rem 0.75rem;
  margin-right: .5rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
}
nav a:hover { background: rgba(0,0,0,.25); }

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

/* Image framing with aspect-ratio and glow */
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Optional featured image wrapper for page intro image */
.featured-image {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Glass content panel (fallback if backdrop-filter not available) */
.content {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .content { background: rgba(255,255,255,.14); }
}
.card, .tag, .product-ad {
  /* ensure reusable glass-like feel if used as panels */
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Utility and components */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.tag {
  display:inline-block;
  font-size: .75rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--text);
}
.ul, ul { padding-left: 1.25rem; margin: .25rem 0 .75rem; }
li { margin: .25rem 0; }

/* Content typography (responsive, readable) */
h1, h2, h3 { color: #fff; }
h1 { font-weight: 700; font-size: clamp(1.75rem, 3vw + 1rem, 3.5rem); line-height: 1.04; margin: .2rem 0 .6rem; letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 2vw + .8rem, 2rem); margin: .6rem 0 .4rem; }
h3 { font-size: clamp(1.05rem, 1.6vw + .7rem, 1.35rem); margin: .4rem 0; }
p { font-size: clamp(.95rem, 0.7vw + .9rem, 1.125rem); margin: .4rem 0 1rem; color: #eaf2ff; }

/* Paragraph emphasis and inline visuals */
strong { color: #fff; }
em { font-style: italic; opacity: .95; }

/* Link and CTA styles (interactive) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}
a:hover { text-decoration: underline; }

/* Button variants */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding: .65rem 1rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #0a0f1a; font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }
.btn:active { transform: translateY(0); }

/* Primary/outline CTA styles */
.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #04131a;
  border: 1px solid rgba(255,255,255,.45);
  text-shadow: 0 1px 0 rgba(255,255,255,.15);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.42);
  color: var(--text);
}
.btn:focus-visible { outline-offset: 2px; }

/* Image glow for frame emphasis on hover/focus */
.image-frame:hover, .image-frame:focus-within {
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  transform: translateZ(0);
}
.image-frame, .featured-image { transition: transform .3s ease, box-shadow .3s ease; }

/* Footer / product ad panels */
footer { padding: 1rem 0; }
.product-ad { text-align: center; }
.sponsored-page { text-align: center; }

/* Interactive content on small screens */
@media (max-width: 700px) {
  header { text-align: left; }
  nav { display: block; margin-top: .5rem; }
  .grid { grid-template-columns: 1fr; }
}

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

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