/* Base */
:root{
  --bg: #0b001a;
  --bg-2: #1a0b3a;
  --surface: rgba(12,6,28,.72);
  --surface-2: rgba(12,6,28,.48);
  --text: #f8f2ff;
  --muted: #cbb7d4;
  --bronze: #b4872a;
  --bronze-2: #d2a149;
  --card-border: rgba(184,134,70,.4);
  --card-bg: rgba(12,6,30,.66);
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0,0,0,.4);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(40,0,70,.95) 0%, rgba(10,0,24,.95) 60%, rgba(0,0,0,.95) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout helpers */
.container { width: min(1100px, 92vw); margin-inline: auto; padding: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Section: Glass panels */
header, main, footer, aside, .card, .content, .product-ad, .image-frame {
  /* default glass look; layered via specific rules below if needed */
}
header {
  width: min(1100px, 92vw);
  margin: 1rem auto;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: rgba(12,6,28,.58);
  border: 1px solid rgba(184,134,70,.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  text-align: center;
}
header h1 { margin: .25rem 0 0.5rem; font-size: clamp(1.6rem, 3.5vw, 2.6rem); line-height: 1.15; letter-spacing: .2px; }
header .meta { font-size: .9rem; color: var(--muted); margin-top: .25rem; }

header nav { margin-top: .75rem; }

header nav a {
  color: var(--text);
  text-decoration: none;
  padding: .5rem 1rem; border-radius: 8px;
  border: 1px solid rgba(184,134,70,.4);
  background: rgba(0,0,0,.25);
  display: inline-block;
  transition: transform .2s ease;
}
header nav a:hover { transform: translateY(-1px); text-decoration: underline; text-underline-offset: 3px; }

/* Content areas */
main { padding: 1rem 0; }
article { display:block; }

/* Image frame */
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 20px rgba(0,0,0,.25); background: #000; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content typography */
.content { color: var(--text); padding: 0; }
.content p { margin: .75rem 0; font-size: clamp(.95rem, 1.2vw, 1.05rem); line-height: 1.6; color: #f6f1ff; }
.content h2, .content h3 { color: #fff; margin: .9rem 0 .5rem; letter-spacing: .2px; }
.content ul, .content ol { padding-left: 1.25rem; margin: .5rem 0 1rem; }
.content li { margin: .25rem 0; }

/* Lists and blocks */
ul li { margin: .25rem 0; }
blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 3px solid var(--bronze); background: rgba(12,6,28,.5); border-radius: 8px; }

/* Product/ad section in footer */
.product-ad, .sponsored-page { display: block; padding: .75rem 1rem; border-radius: 12px; background: rgba(12,6,28,.66); border: 1px solid rgba(184,134,70,.4); text-align: center; margin: .5rem 0; }
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; }

/* Footer */
footer { padding: 1rem; text-align: center; color: var(--muted); }

/* Utilities */
.tag {
  display: inline-block; padding: .25em .6em; font-size: .75rem; border-radius: 999px;
  background: rgba(184,134,70,.22); color: var(--text); border: 1px solid rgba(184,134,70,.4);
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card, .content, .product-ad, header { background: rgba(12,6,28,.92); border-color: rgba(184,134,70,.6); }
}
a, button, .btn, .cta {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
a, button { font: inherit; }

.btn {
  display: inline-block;
  padding: .7rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(184,134,70,.5);
  background: linear-gradient(135deg, rgba(184,134,70,.9), rgba(184,134,70,.6));
  color: #111;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(184,134,70,.8);
}
.btn--outline:hover { background: rgba(184,134,70,.15); }

/* Focus ring accessibility */
:focus-visible {
  outline: 3px solid var(--bronze);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Links emphasis on focus/hover */
a:focus-visible, a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--bronze-2);
}

/* Form controls (minimal styling) */
input, select, textarea {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border: 1px solid rgba(184,134,70,.5);
  border-radius: 6px;
  padding: .5rem .75rem;
  outline: none;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--bronze); outline-offset: 2px; }

/* Accessibility helpers for motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print */
@media print {
  body { background: #fff; color: #000; }
  header, footer { background: #fff; border: none; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}
