/* Reset */
*, *::before, *::after { box-sizing: border-box; }

/* Theme tokens */
:root {
  --bg: #0b0b0f;
  --bg-2: #141522;
  --text: #f7f3ec;
  --muted: #cbb6a0;
  --accent: #D4A017;     /* mustard */
  --accent-2: #E9A6B8;   /* powder rose */
  --panel: rgba(255,255,255,.08);
  --panel-2: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --shadow-soft: 0 2px 6px rgba(0,0,0,.25);
  --focus: 0 0 0 3px rgba(212,160,23,.6);
  --radius: 12px;
}

/* Layout foundations */
html, body, header, nav, main, article, footer, aside { height: auto; }

html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(12,12,14,.95), rgba(22,22,29,.95) 60%, rgba(14,16,20,.95)),
    radial-gradient(circle at 20% 10%, rgba(212,160,23,.28) 0 25%, transparent 25%),
    radial-gradient(circle at 70% 40%, rgba(214,120,24,.22) 0 20%, transparent 20%);
  background-blend-mode: normal, overlay, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* Subtle scanlines / noise via CSS-only pattern */
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
  /* Respect user motion settings where possible; purely decorative. */
}
:focus { outline: none; }

/* Section headers (semantic landmarks in CSS only) */

/* Fluid container & grid utilities */
.container { max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }

/* Card / content surfaces (glass panels) */
.card, .product-ad, .content, header, main, footer, aside {
  /* base surface will be enhanced with a glass layer where applied */
}
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.no-backdrop { background: rgba(255,255,255,.14); }

/* Layered glass panels with accessible fallback */
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.14); }
}

/* Header / Hero */
header {
  text-align: center;
  padding: 2rem 1rem 1.75rem;
  position: relative;
  z-index: 1;
}
header h1 {
  font-size: clamp(1.8rem, 4vw + 0.5rem, 3rem);
  line-height: 1.1;
  margin: 0.25rem 0;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
header .meta {
  color: var(--muted);
  font-size: clamp(.8rem, .9vw, 0.95rem);
  margin-top: .25rem;
}

/* Main content */
main {
  padding: 1rem;
  z-index: 1;
  position: relative;
}
article { max-width: clamp(320px, 92vw, 860px); margin: 0 auto; }

/* Feature image framing */
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: #000;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  margin: 0.75rem auto 1rem;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* subtle glow on the image */
  filter: saturate(1.05);
  mix-blend-mode: normal;
  transition: transform .35s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Content typography */
.content { padding: 0 0 1rem; }
h2 { font-size: clamp(1.25rem, 2.2vw + 0.8rem, 2rem); margin: .75rem 0 0.5rem; color: var(--text); }
p { color: #efe6d9; margin: .5rem 0; }
blockquote { margin: .5rem 0; padding-left: 1rem; border-left: 3px solid rgba(212,160,23,.6); color: #f6efe2; }

/* Lists */
ul { padding-left: 1.25rem; margin: .25rem 0; }
li { margin: .25rem 0; }

/* Tag / chips */
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(212,160,23,.18);
  color: var(--text);
  border: 1px solid rgba(212,160,23,.35);
  margin-right: .25rem;
}

/* Product ad (footer area) */
.product-ad {
  display: block;
  text-align: center;
  padding: .9rem;
  margin: .75rem 0;
}
.product-ad a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #0b0b0b;
  background: rgba(212,160,23,.92);
  border: 1px solid rgba(212,160,23,.95);
  transition: transform .15s ease, background .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); background: rgba(212,160,23,1); }
.product-ad a:focus-visible { outline: none; box-shadow: var(--focus); }

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

/* Link and button treatments (interactive states) */
a, button, .btn, .cta {
  font-family: inherit;
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease, transform .15s ease;
}
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }

button, .btn, .cta {
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: .65rem 1rem;
  font-weight: 600;
  border-radius: 999px;
}
.btn { background: rgba(212,160,23,.9); border-color: rgba(212,160,23,.95); color: #0b0b0b; }
.btn.outline { background: transparent; border-color: rgba(212,160,23,.8); color: var(--text); }
.btn:focus-visible, a:focus-visible { outline: none; box-shadow: var(--focus); }

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

/* Print-friendly (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
}
