:root
{
  --bg: #1b0f0a;
  --bg-2: #3a2513;
  --text: #e9d8c3;
  --muted: #b89a6f;
  --accent: #b07a2a;
  --accent-2: #cbd8e5;
  --glass: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.18);
  --border: rgba(214, 180, 110, 0.4);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --focus-ring: 0 0 0 3px rgba(255,255,255,.8);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  background-color: var(--bg);
  /* Layered bronze marble texture: gradient + subtle noise/scanlines (pure CSS) */
  background-image:
    radial-gradient(circle at 15% 15%, rgba(212,156,88,.20) 0 15%, transparent 16%),
    radial-gradient(circle at 70% 25%, rgba(101,54,14,.20) 0 18%, transparent 19%),
    linear-gradient(135deg, rgba(25,12,6,.95) 0%, rgba(12,6,4,.95) 60%, rgba(8,4,3,.95) 100%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body > header,
body > main,
body > footer { display: block; }

/* Layout helpers */
.container { width: 100%; max-width: clamp(720px, 85vw, 1100px); margin-inline: auto; padding: 0 1rem; }

/* Header (hero) */
header {
  text-align: center;
  padding: 2rem 1rem 1.75rem;
}
header h1 {
  font-size: clamp(2rem, 3vw + 1rem, 4rem);
  line-height: 1.04;
  margin: 0;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--text);
}
header .meta {
  margin: .25rem 0 0;
  font-size: clamp(0.9rem, .4vw + .8rem, 1.05rem);
  color: var(--muted);
}
nav {
  margin-top: .75rem;
}
nav a {
  display: inline-block;
  padding: .5rem 1rem;
  margin-inline: .25rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.18);
  transition: transform .15s ease, background-color .15s ease;
}
nav a:hover { background: rgba(255,255,255,.10); transform: translateY(-1px); }
nav a:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Main content (glass panels) */
main { padding: 1rem 0 2rem; }

/* Article content with glass-friendly layout */
article {
  display: grid;
  gap: 1rem;
  align-items: start;
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: min(100%, 900px);
  margin: 0 auto;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
h1 + .image-frame { margin-top: .25rem; }

/* Glass panel styling base (used for content blocks) */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.no-backdrop { /* fallback when backdrop-filter unsupported */
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
@supports not (backdrop-filter: blur(12px)) and not (-webkit-backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }
}

/* Content blocks inside article */
.content { max-width: 70ch; margin: 0 auto; padding: 0.25rem 0 0; }

/* Headings and typography within content */
h2 { font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); margin: .75rem 0 .25rem; }
h3 { font-size: clamp(1.05rem, 0.8vw + 0.9rem, 1.45rem); margin: .6rem 0; }
p { font-size: clamp(0.95rem, 0.4vw + .9rem, 1.15rem); margin: .5rem 0 1rem; color: color-m(display-p3 0.0); }
ol, ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }

/* List styling */
ul { list-style: disc; }
ol { list-style: decimal; }

/* Inline emphasis blocks */
blockquote {
  border-left: 3px solid rgba(255,255,255,.4);
  margin: .75rem 0; padding: .5rem 1rem; border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: var(--text);
}

/* Content helpers (cards, grid) */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15rem .55rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* Buttons and links (interactive elements) */
a, button, .btn, .cta {
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
a { text-decoration: none; color: var(--accent-2); }
a:hover, a:focus-visible { text-decoration: underline; color: #ffd27a; outline: none; }

.btn, .cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(to bottom, rgba(176,122,42,.95), rgba(120,78,26,.95));
  box-shadow: inset 0 1px rgba(255,255,255,.25), 0 6px 14px rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), inset 0 0 0 1px rgba(255,255,255,.6);
}
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.65);
  color: var(--text);
}
.btn.secondary:hover { background: rgba(255,255,255,.08); }

/* Image frame helper for inline images (if used) */
.image-frame { display: block; }

/* Footer (glass panels) */
footer {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.product-ad, .sponsored-page {
  min-height: 72px;
}
footer p { text-align: center; margin: .5rem 0 0; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { display: none; }
  main { padding: 0; }
  article { padding: 0; }
  .content { padding: 0; }
}
  
/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}