:root{
  --bg: #0a0a14;
  --bg-2: #14101d;
  --text: #e9e1ff;
  --muted: #b89bd9;
  --accent: #8b5a2c;
  --accent-2: #6a6bff;
  --glass: rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.25);
  --radius: 14px;
  --shadow: 0 8px 20px rgba(0,0,0,0.28);
  --font: ui-system, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }
html { font-family: var(--font); }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(15,0,40,0.95) 0%, rgba(8,6,14,0.95) 60%, rgba(0,0,0,0.95) 100%),
    repeating-linear-gradient(-45deg, rgba(139,0,255,0.12) 0 2px, transparent 2px 6px),
    linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.25) 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

header, main, footer { width: 100%; }

.container {
  width: min(100%, clamp(320px, 78vw, 1200px));
  margin-inline: auto;
  padding: 1rem;
}

header {
  display: block;
  padding: 1rem;
  margin: 1rem auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(10,6,14,0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 .25rem;
  color: var(--text);
}

header .meta {
  font-size: 0.92rem;
  color: var(--muted);
}

nav {
  margin-top: .5rem;
  display: inline-flex;
  gap: .5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: .35em .65em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(124,74,42,0.22);
  transition: transform .15s ease;
}
nav a:hover { text-decoration: underline; transform: translateY(-1px); }

/* Glassy section styling for main areas (article, content blocks, panels) */
.glass {
  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);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,0.14); }
}

main { padding: 1rem 0; display: block; }

article {
  display: block;
  margin: 0 auto 1rem;
  max-width: 1000px;
  padding: 1rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(12,10,18,0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
article h1 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); margin: .25rem 0 0.5rem; color: var(--text); }
article p { color: #f3eaff; margin: .5rem 0; }
article h2 { font-size: 1.25rem; margin: 1rem 0 .5rem; color: #e8dfff; }
article ul, article ol { margin: .5rem 0 1rem 1.25rem; color: #f7f3ff; }
article li { margin: .25rem 0; }
article blockquote {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid rgba(124,74,42,0.8);
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
}
article .featured-image {
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: .75rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
article img { width: 100%; height: auto; display:block; }

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

/* Content helpers and utilities */
.content { padding: 1rem; }

/* Product ad / promo blocks */
.product-ad {
  display: block;
  padding: .75rem;
  text-align: center;
  background: rgba(12,10,18,0.32);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  margin: .5rem 0;
}
.product-ad a {
  color: #fff;
  text-decoration: none;
}
.product-ad a:hover { text-decoration: underline; }

/* Buttons and links (solid and outline variants) */
.btn, .cta { display: inline-block; padding: .65rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.5);
  text-decoration: none; color: #fff; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease;
  background: linear-gradient(135deg, rgba(124,74,42,0.95), rgba(124,74,42,0.75)); }
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible { outline: 3px solid #a3a0ff; outline-offset: 2px; }
.btn.outline {
  background: transparent;
  border: 1px solid rgba(124,74,42,0.9);
  color: var(--text);
}
.btn.primary { background: linear-gradient(135deg, rgba(110,60,20,0.95), rgba(110,60,20,0.75)); border: 1px solid rgba(255,255,255,0.6); }

/* Link aesthetics for accessibility */
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; color: #ffdfff; }

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

/* List and tag helpers */
ul, li { margin: 0 0; padding: 0; list-style: disc; padding-left: 1.25rem; }
li { margin: .25rem 0; }
.tag {
  display: inline-block;
  padding: .15em .5em;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid rgba(124,74,42,0.8);
  color: #ffd9b3;
  background: rgba(124,74,42,0.25);
}

/* Footer and incidental sections */
footer { padding: 1rem; text-align: center; color: #d6ccf0; }
footer p { margin: .5rem 0; font-size: .9rem; }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  header, main, footer { background: transparent; box-shadow: none; border: none; }
  .glass { background: transparent; border: none; box-shadow: none; }
}

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