/* Base tokens */
:root {
  --bg: #0b0028;
  --bg-2: #1a0b2e;
  --surface: rgba(12, 6, 20, 0.38);
  --text: #f8f5ff;
  --muted: #c7b6ff;
  --accent: #b76a2f;     /* copper */
  --accent-2: #8a2be2;   /* void purple */
  --card: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.25);
  --glass: rgba(12, 6, 20, 0.34);
  --shadow: 0 6px 18px rgba(0,0,0,.4);
  --radius: 12px;
}

/* Base + layout scaffolding */
html, body { height: 100%; }
html { color-scheme: dark; }
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 1.4vw, 16px);
}
body {
  margin: 0;
  color: var(--text);
  min-height: 100%;
  /* Layered background: copper diagonal lines + void purple hues + subtle scanlines/noise */
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(184,106,47,0.25) 0%, rgba(0,0,0,0) 40%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 6px),
    linear-gradient(135deg, rgba(60,0,80,0.25), rgba(0,0,0,0.25) 60%, rgba(10,0,20,0.5) 100%);
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }

/* Layout helpers */
.container { max-width: clamp(680px, 88vw, 1100px); margin: 0 auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }

/* Header / hero */
header { text-align: center; padding: 2rem 0 1rem; }
header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .25rem; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 1.4vw, 0.92rem); }

/* Main content */
main { padding: 0 0 2rem; }
article { padding: 0; }

/* Image frame */
.image-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 8px 22px rgba(0,0,0,0.32);
  background: #000;
  margin: 1rem auto;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Glass panels (fallback-friendly) */
section { background: rgba(12, 6, 20, 0.26);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.75rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(8px)) {
  section { background: rgba(12,6,20,0.55); }
}

/* Typography for content */
h2 { font-size: clamp(1.25rem, 3vw, 1.9rem); margin: .5rem 0 0.25rem; color: var(--text); }
h3 { font-size: clamp(1rem, 2.4vw, 1.25rem); margin: .4rem 0; color: #f6f0ff; }
p { margin: .4rem 0 1rem; color: #eae4ff; }
ol, ul { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; color: #e9e1ff; }

/* Content wrapper (specific class) */
.content { padding: 0.5rem 0 0; }

/* Images and media helpers */
.image { display: block; max-width: 100%; height: auto; border-radius: 8px; }

/* CTA / links styling */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  outline: none;
}
a:hover { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { text-decoration: underline; color: var(--accent-2); }

/* Buttons (solid + outline variants) */
.btn { display: inline-block; padding: .65em 1.05em; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4);
  background: linear-gradient(to bottom right, rgba(183,106,47,0.95), rgba(183,106,47,0.75));
  font-weight: 700; color: #fff; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn.outline {
  background: transparent;
  border: 1px solid rgba(183,106,47,0.95);
  color: var(--text);
}
.cta { composes: .btn; }

/* List utilities */
ul, li { line-height: 1.6; }

/* Utility glass-like cards for features (cards) */
.card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.tag {
  display: inline-block;
  padding: .15em .5em;
  border-radius: 999px;
  font-size: .75rem;
  color: #fff;
  background: rgba(184,106,47,0.9);
  border: 1px solid rgba(255,255,255,0.25);
}

/* Footer / product ads (glass panels) */
footer { padding: 1rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; align-items: stretch; justify-items: center; }
.product-ad, .sponsored-page { width: 100%; max-width: 420px; display: block; text-align: center; background: rgba(12,6,20,0.28); border: 1px solid rgba(255,255,255,0.28); border-radius: 12px; padding: 0.9rem; }
.product-ad a, .sponsored-page a { color: var(--text); display: block; padding: .25rem; }
.product-ad a:hover { text-decoration: underline; color: var(--accent-2); }
footer p { width: 100%; text-align: center; color: var(--muted); }

/* Printing (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  section { background: #fff; border: 1px solid #ddd; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}

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