/* TOKENS: FUTURE CYBERPUNK GOLD/BRONZE THEME */
:root {
  --bg: #0a0a0a;
  --bg-2: #1b0f0a;
  --text: #f5e6c8;
  --muted: #c8a067;
  --accent: #d4a017;        /* gold */
  --accent-2: #b07a1f;       /* bronze */
  --glass: rgba(18, 12, 0, 0.22);
  --glass-2: rgba(18, 12, 0, 0.28);
  --glass-border: rgba(212, 174, 21, 0.45);
  --shadow: 0 6px 18px rgba(0,0,0,.35);
  --focus: #ffd86b;
  --radius: 12px;
}

/* RESET AND BASE LAYOUT */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background:
    /* subtle glow + glow lines (lava cracks) */
    radial-gradient(circle at 60% -10%, rgba(255, 200, 60, 0.14), transparent 25%),
    linear-gradient(135deg, rgba(40, 24, 0, 0.95), rgba(12, 6, 0, 0.92) 60%, rgba(0,0,0,0.95) 100%),
    repeating-linear-gradient(90deg, rgba(255,214,102,.08) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(0deg, rgba(255,214,102,.04) 0 2px, transparent 2px 4px),
    #000;
  background-attachment: fixed;
}

/* GLASS PANELS: primary surfaces (with fallback) */
header, main, article, aside, footer {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, article, aside, footer {
    background: rgba(18,12,0,0.36);
    border-color: rgba(212,174,21,.6);
  }
}

/* LAYOUT UTILITIES */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(15, 9, 0, 0.28);
  border: 1px solid rgba(212, 174, 21, 0.45);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(0,0,0,.42); }

/* IMAGE FRAME (ASPECT-RATIO + GLOW) */
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(212, 174, 21, 0.5);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* CONTENT AND TYPOGRAPHY */
.content { padding: 0.5rem 0 1rem; color: var(--text); }
h1 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
p { font-size: clamp(1rem, 0.9vw + 0.9rem, 1.125rem); margin: .75rem 0; color: #f0e0b8; }
h2, h3 { color: #f6e6c0; margin-top: 1rem; }
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* TAGS AND LINKS */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(212, 174, 21, 0.18);
  border: 1px solid rgba(212, 174, 21, 0.45);
  color: var(--text);
}
a, button, .btn, .cta {
  text-decoration-skip-ink: auto;
}
a, button { cursor: pointer; }
a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover, a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn, .cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .98rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 174, 21, 0.65);
  background: linear-gradient(to bottom right, rgba(212,174,21,.95), rgba(168,110,16,.95));
  color: #111;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(1px) scale(0.99); }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(212,174,21,0.8);
}
.btn.primary { background: linear-gradient(to bottom right, #ffd25a, #d89a00); color: #1a0a00; }

/* SPECIFIC ELEMENT STYLES (MUST COVER THESE SELECTORS) */
html, body, header, nav, main, article, footer, aside {}

/* CONTENT AREAS (glass panels helpers for described selectors) */
.content, .product-ad {
  background: rgba(18, 12, 0, 0.28);
  border: 1px solid rgba(212, 174, 21, 0.45);
  border-radius: 12px;
  padding: 1rem;
}
.product-ad a { display: block; padding: .75rem; text-align: center; }

/* LISTS */
ul, li { list-style: none; }

/* FOOTER SPECIFICS */
footer { padding: 1.25rem; text-align: center; }

/* HACKER/GOLD-LAVA ACCENTS: micro hero accents */
header h1 { text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.meta { color: var(--muted); font-variant-numeric: tabular-nums; }

/* RESPONSIVE TWEAKS */
@media (max-width: 700px) {
  .image-frame { border-radius: 10px; }
  header, main, article, aside, footer { padding: .75rem; }
  .container { padding-inline: .5rem; }
}
  
/* MOTION PREFERENCES */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

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