:root {
  /* Theme tokens (silver / brown, high contrast) */
  --bg: #0a0d12;
  --bg-2: #141821;
  --text: #e8e8e8;
  --muted: #a5a5a5;
  --accent: #b07a4a;       /* brown/copper */
  --accent-2: #cbd5e1;      /* silver-ish for accents */
  --surface: rgba(255,255,255,0.08);      /* frosted glass */
  --surface-2: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 6px 20px rgba(0,0,0,0.45);
  --focus: #88e3ff;
}

html, body {
  height: 100%;
  color: var(--text);
  background: 
    /* Silver dot pattern layer (subtle) */
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.25) 1px, transparent 2px) 0 0/20px 20px,
    radial-gradient(circle at 9px 9px, rgba(255,255,255,.15) 1px, transparent 2px) 0 0/40px 40px,
    /* Gradient backdrop for cyber theme */
    linear-gradient(135deg, #0a0d12 0%, #111521 40%, #1a1410 100%);
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout sizing utilities (mobile-first) */
*, *::before, *::after { box-sizing: border-box; }

.container {
  width: min(90vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}

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

/* Section wrappers as glass panels */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  /* Frosted look */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .glass { background: rgba(0,0,0,0.65); }
}

/* Image frame specifics */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
  background: #111;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform .4s ease;
}
.image-frame:hover img {
  transform: scale(1.03);
}

/* Typography helpers */
h1, h2, h3 {
  margin: 0 0 .5rem;
  color: var(--text);
}
p { margin: 0 0 1rem; color: var(--muted); }

/* Core elements (must style) */
html, body, header, nav, main, article, footer, aside {
  /* ensure basic box model and stacking order compatibility */
  -webkit-tap-highlight-color: transparent;
}

header {
  padding: 2rem 0 1rem;
  text-align: center;
}
header h1 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 3rem);
  line-height: 1.15;
  margin: 0;
  color: var(--text);
  letter-spacing: .2px;
}

/* Main content area */
main {
  padding: 0 0 1.5rem;
}
article {
  display: block;
  margin: 0 auto;
}
article .content { color: var(--text); }

/* Product ad area in footer (glass panels) */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 0.75rem 1rem;
}
.product-ad a, .sponsored-page a {
  color: inherit;
  text-decoration: none;
}
.product-ad p, .sponsored-page p {
  margin: 0;
  font-weight: 600;
}
.product-ad { min-width: 0; }

/* Footer layout */
footer {
  padding: 1.25rem 0 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  justify-items: center;
}
@media (min-width: 640px) {
  footer { grid-template-columns: repeat(3, 1fr); gap: 1rem 1.25rem; align-items: stretch; }
}
footer p { margin: 0; color: var(--muted); }

/* Interactive controls (buttons/links) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
a { cursor: pointer; }
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: linear-gradient(#b07a4a, #a06438);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
  transition: transform .18s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn.secondary, .cta.secondary {
  background: transparent;
  border: 1px solid rgba(176,122,82,.9);
  color: var(--text);
}
.btn:hover, .cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.btn:active, .cta:active {
  transform: translateY(0);
}
.btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.btn:focus-visible { border-color: #fff; }

/* Glass card-like sections (content blocks) */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }

/* List styling */
ul, li { margin: 0; padding: 0; list-style: none; }

/* Utility classes (minimal, compact) */
.container { width: min(90vw, 1100px); margin: 0 auto; padding: 0 0.5rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Dark mode: default to cyber theme; light mode variant for readability */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5f0;
    --bg-2: #f0f0f2;
    --text: #0a0a0a;
    --muted: #555;
    --surface: rgba(255,255,255,0.9);
    --surface-2: rgba(255,255,255,0.95);
    --border: rgba(0,0,0,.15);
    --shadow: 0 6px 16px rgba(0,0,0,.08);
    --accent: #8b4513;
    --accent-2: #2b2b2b;
  }
  body { background: #f7f7fb; color: var(--text); }
  .image-frame { border-color: rgba(0,0,0,.15); }
  .glass { background: rgba(255,255,255,.8); backdrop-filter: saturate(1.2) blur(8px); }
  a { color: var(--accent); }
  .btn { background: linear-gradient(#d4b28b, #b98960); border-color: rgba(0,0,0,.15); color: #1a1a1a; }
  .btn:hover { filter: brightness(1.02); }
}

/* Print styles (basic readability) */
@media print {
  html, body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .glass { background: #fff; border: 1px solid #ddd; }
}
