/* Tokens */
:root {
  --bg: #0b0b0f;
  --bg-2: #14141a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --text: #f7f7fb;
  --muted: #c9c2c8;
  --accent: #7a4a2a;       /* brown/copper accent */
  --accent-2: #c59a68;      /* lighter brown/gold */
  --card: rgba(255, 255, 255, 0.09);
  --outline: rgba(255, 255, 255, 0.35);
  --focus: 0 0 0 3px rgba(124, 74, 47, 0.65);
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  --radius: 12px;
}

/* Section: Reset & Base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
html, body { margin: 0; padding: 0; }
html, body { font-family: ui-system, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
html { font-size: 16px; }
body {
  min-height: 100dvh;
  color: var(--text);
  background: #0b0b0f;
  /* Layered holographic gradient + subtle scanlines/noise */
  background-image:
    radial-gradient(circle at 15% -5%, rgba(180,210,230,.15) 0 20%, transparent 40%),
    linear-gradient(135deg, rgba(60,50,40,.28) 0%, rgba(24,18,12,.54) 60%, rgba(60,50,40,.28) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 2px, rgba(0,0,0,0) 2px 4px);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* Section: Layout helpers */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: .75rem; }

/* Section: Structural elements styling */
header, nav, main, article, aside, footer { display: block; }
header { padding: 1.25rem 0; text-align: center; }
header h1 {
  font-size: clamp(1.4rem, 1.2rem + 1.8vw, 2.6rem);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
main { padding: 1rem 0; display: grid; place-items: center; }
article { width: 100%; }

/* Section: Image frame (glass panel) */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
}
@media (prefers-reduced-motion: reduce) {
  .image-frame, .image-frame img { transition: none; }
}

/* Section: Content helpers */
.content { max-width: 860px; margin: 0 auto; padding: 0 0.5rem; color: var(--text); }
ul { margin: 0; padding: 0; list-style: none; }
li { margin: .25rem 0; }

/* Section: Product ad / footer panels */
.product-ad,
.sponsored-page {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem 1rem;
  text-align: left;
}
.product-ad a, .sponsored-page a { color: #fff; display: block; text-decoration: none; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; text-underline-offset: 3px; }

footer { padding: 1.25rem; display: grid; gap: 1rem; justify-items: center; align-items: start; }

/* Section: Typography & links */
a, button, .btn, .cta {
  font-family: inherit;
  color: #fff;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 2px;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.2rem; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
}
.cta { padding: .75rem 1.1rem; border-radius: 8px; }

/* Section: Utility classes */
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.container, .grid, .card, .tag { /* explicit declarations kept lean */ }

/* Section: Responsive layout utilities */
@media (min-width: 640px) {
  .container { padding-inline: 1.25rem; }
}
@media (min-width: 900px) {
  footer { grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
  .product-ad, .sponsored-page { height: 100%; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #0a0a0f;
    --surface: rgba(255,255,255,.10);
  }
}

/* Section: Print styles */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
}
 
/* Section: Accessibility helpers (fallbacks) */
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; }