/* Base & Tokens */
:root{
  --bg: #0b0b12;
  --bg-2: #141421;
  --surface: rgba(20, 20, 28, 0.68);
  --surface-2: rgba(26, 26, 34, 0.40);
  --text: #f7f6e9;
  --muted: #c9c4a6;
  --accent: #f6e780;       /* pastel yellow */
  --accent-2: #b66a25;     /* copper */
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 24px rgba(0,0,0,0.35);
  --glow: 0 0 20px rgba(246,231,128,0.35);
  --focus: #fff;
  --tag: rgba(246,231,128,0.18);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  line-height: 1.55;
  background: linear-gradient(135deg, rgba(10,10,16,0.92), rgba(14,14,20,0.92)),
              #0a0a0f;
  /* Layered background: radar-like sweep + subtle noise/scanlines */
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.85)),
    radial-gradient(circle at 20% 10%, rgba(246,214,96,0.10), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal;
  position: relative;
  overflow-x: hidden;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Subtle radar sweep tint (pastel yellow) */
  background: conic-gradient(from 40deg at 20% 20%, rgba(246,231,128,0.28), rgba(246,231,128,0.0) 40%, rgba(246,231,128,0.28) 80%, rgba(246,231,128,0.0) 100%);
  mix-blend-mode: overlay;
  opacity: 0.6;
}
@media (prefers-reduced-motion: reduce){
  body::before { display: none; }
  * { animation: none !important; transition: none !important; }
}

/* Section: Layout helpers */
.container{
  width: min(1100px, 92%);
  margin-inline: auto;
  padding: 1.25rem 0;
}
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.card{
  background: rgba(15,15,22,0.58);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.content{ padding: 0.75rem 0.25rem; color: var(--text); }
.tag{ display:inline-block; padding:0.25em 0.5em; border-radius:999px; font-size:12px;
      background: var(--tag); border:1px solid rgba(246,231,128,0.4); color: #fefbd8; }

/* Section: Typography & hero */
h1, h2, h3{ margin:0 0 0.5rem; font-weight: 700; color: var(--text); }
h1{ font-size: clamp(2rem, 1.2rem + 4vw, 4rem); line-height: 1.08; letter-spacing: .2px; }
h2{ font-size: clamp(1.5rem, 0.9rem + 2vw, 2.75rem); }
h3{ font-size: clamp(1.1rem, 0.8rem + 1.5vw, 1.6rem); color: #f5f0cf; }

/* Section: header & hero styling (glass panels) */
header{
  padding: clamp(1rem, 2vw, 2rem);
  margin: 1rem auto;
  border-radius: 16px;
  max-width: 1100px;
  background: rgba(14,14,22,0.66);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
header h1{ text-shadow: 0 0 12px rgba(246,231,128,0.6); }
header .meta{ color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }

/* Nav styling inside header */
nav{ margin-top: 0.75rem; }
nav a{
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  transition: transform 0.15s ease, background 0.2s ease;
}
nav a:hover{ background: rgba(255,255,255,0.10); transform: translateY(-1px); }

/* Main article styling (glass panels) */
main{ padding: 0 0; }
article{ display:block; max-width: 1000px; margin-inline: auto; padding: 2rem 0; }
article .featured-image{ margin: 1rem 0 1.25rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.image-frame{ aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); display:block; background: #000; box-shadow: inset 0 0 12px rgba(0,0,0,.3), 0 2px 10px rgba(0,0,0,.3); }
.image-frame img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glass panels for content regions */
section { background: rgba(14,14,22,0.60); border: 1px solid rgba(255,255,255,0.25); border-radius: 12px; padding: 1rem 1rem 1.25rem; margin: 0.75rem 0; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Product ad / footer sections */
.product-ad{ display:block; padding: 0.75rem; text-align: center; background: rgba(20,20,28,0.65); border: 1px solid rgba(255,255,255,0.28); border-radius: 12px; box-shadow: var(--shadow); }
.product-ad a{ color: var(--text); text-decoration: none; font-weight: 600; display: inline-block; padding: 0.4rem 0.75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.04); }
.product-ad a:hover{ background: rgba(255,255,255,.10); }

/* Footer styling (glass panels for consistency) */
footer{ padding: 1rem; margin: 0 auto; max-width: 1100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; align-items: start; }

/* Link & button styles (tokenized across selectors) */
a, button, .btn, .cta{
  outline: none;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
a{ cursor: pointer; }
button{ background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,.25); padding: 0.6rem 1rem; border-radius: 8px; color: var(--text); }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:0.5rem; padding:0.7rem 1.1rem; border-radius:999px; font-weight:600; border:1px solid rgba(255,255,255,.25); background: rgba(246,231,128,0.15); color:#fff; }
.btn:hover{ background: rgba(246,231,128,0.28); transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn.primary{ background: linear-gradient(135deg, rgba(246,231,128,0.95), rgba(246,231,128,0.75)); border-color: rgba(246,231,128,0.9); color:#1b1b1b; }
.btn.outline{ background: transparent; border-color: rgba(246,231,128,.9); color: #f6e780; }

/* Focus states (accessible) */
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(246,231,128,0.25);
}
a:hover, button:hover, .cta:hover{ text-decoration: underline; }

/* List styling */
ul{ padding-left: 1.25rem; margin: .75rem 0; }
li{ margin: 0.25rem 0; }

/* Specific component styling */
.product-ad{ padding: 0.75rem; }
.aside{ padding: 0.75rem; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(255,255,255,.03); }

/* Print styles */
@media print{
  body{ background: #fff; color: #000; }
  header, main, footer{ background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: none; }
  .card, .product-ad, section{ background: #fff; border: 1px solid #ddd; }
  a, button{ color: #000; }
}

/* Section: responsive typography helpers (fluid) */
@media (max-width: 720px){
  header{ padding: 1rem; }
  .container{ width: 92%; }
  footer{ grid-template-columns: 1fr; }
}
