:root {
  --bg: #0b0f12;
  --bg-2: #1a1f25;
  --sand: #d6c7a8;
  --sand-2: #c9b389;
  --sand-3: #b59f83;
  --burgundy: #8a1e34;
  --burgundy-2: #6e1121;
  --accent: #c04a60;
  --accent-2: #8e2a50;
  --text: #f5f3f0;
  --muted: #c9c0a3;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.25);
  --shadow-soft: 0 6px 16px rgba(0,0,0,.28);
  --shadow: 0 10px 28px rgba(0,0,0,.40);
  --radius: 12px;
}

html, body {
  height: 100%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans";
  color: var(--text);
  background: #0b0f12;
  /* Layered background: sand-brushed metal feel + subtle scanlines/noise */
  background-image:
    linear-gradient(135deg, rgba(214, 196, 168, 0.20) 0%, rgba(214,196,168,0.05) 60%, rgba(214,196,168,0.20) 100%),
    repeating-linear-gradient(to bottom,
      rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 2px,
      rgba(255,255,255,0.02) 2px, rgba(255,255,255,0.02) 4px);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Layout primitives */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
  padding-inline: 0.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@supports not (backdrop-filter: blur(8px)) {
  .card {
    background: rgba(0,0,0,0.28);
    border-color: rgba(255,255,255,0.28);
  }
}

.tag {
  display: inline-block;
  padding: .15em .45em;
  border-radius: 999px;
  background: rgba(138, 27, 52, 0.25);
  color: var(--text);
  font-size: 0.75rem;
  border: 1px solid rgba(138,27,52,0.4);
}

/* Typography scaling (mobile-first) */
h1 { font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem); line-height: 1.12; margin: 0 0 .5rem; letter-spacing: .2px; }
h2 { font-size: clamp(1.4rem, 0.9rem + 2vw, 2.2rem); margin: .75rem 0 .4rem; }
h3 { font-size: clamp(1.05rem, 0.75rem + 1.5vw, 1.4rem); margin: .65rem 0; }
p  { font-size: clamp(0.95rem, 0.9vw + .8rem, 1.15rem); margin: .5rem 0; color: rgba(245,243,240,.92); }

blockquote {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent-2);
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  color: var(--text);
}

/* Sections / structural elements */
header, nav, main, article, aside, footer {
  padding: 1rem;
}

header {
  display: grid;
  gap: .4rem;
  text-align: center;
  align-items: center;
  justify-items: center;
  padding-block: 1rem;
  margin-bottom: 1rem;
  background: rgba(14, 16, 20, 0.60);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  border-radius: 0 0 12px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

header h1 { color: var(--text); margin-bottom: .25rem; }
header .meta { font-size: .85rem; color: var(--muted); }

/* Image framing with aspect ratio and glow */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
  background: #111;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.main-content { padding: 0 0 1rem; }

/* Content areas and typography helpers */
.content { padding: 0.75rem 0; }

/* Product ad / callout */
.product-ad {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.25);
  background: linear-gradient(135deg, rgba(138,27,52,0.25), rgba(61,20,20,0.25) 60%);
  box-shadow: var(--shadow-soft);
  width: 100%;
}
.product-ad h3 { margin: 0; font-size: 1.05rem; }
.product-ad p { margin: 0; font-size: .95rem; color: var(--text); }
.product-ad a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .6rem; border-radius: 6px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); }
.product-ad a:hover { text-decoration: underline; }

footer { padding-top: .5rem; }

a, button, .btn, .cta {
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  border: 0;
  background: none;
  font: inherit;
}
a:hover, a:focus-visible { text-decoration: underline; outline: none; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
button, .btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.35);
  background: linear-gradient(to bottom, rgba(138,27,52,0.95), rgba(64,0,0,0.95));
  color: #fff;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.btn, .cta { padding: .6rem 1rem; }
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); opacity: 0.95; }

.btn.outline, .cta.outline {
  background: transparent;
  border: 1px solid rgba(214,196,168,0.9);
  color: var(--text);
}
.btn.primary { background: linear-gradient(to bottom, #b01f38, #7a1324); border: 1px solid rgba(255,255,255,0.5); }
.btn.primary:hover { filter: brightness(1.05); }

ul { margin: .5rem 0 1rem 1.15rem; padding: 0; }
li { margin: .25rem 0; }

/* Article layout adjustments for readability on glass */
article { padding: .25rem 0; }

/* Print-friendly (basic) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, main, aside, footer { background: none; color: inherit; }
  a { color: #000; text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}

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