/* Palette & Foundations */
:root{
  --bg: #0a0a1d;
  --bg-2: #14153a;
  --text: #e9e5c2;
  --muted: #bac2a0;
  --accent: #b6a064;        /* khaki bias */
  --accent-2: #4f5bd6;       /* indigo accent */
  --glass: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.22);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* Core utilities & resets */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  min-height: 100%;
  line-height: 1.5;
  background-color: var(--bg);
  /* Layered background: gradient + subtle indigo stripes + scanline/noise */
  background-image:
    linear-gradient(135deg, rgba(88, 0, 120, 0.40), rgba(20, 0, 20, 0.20)),
    repeating-linear-gradient(90deg, rgba(80, 60, 150, 0.18) 0 6px, rgba(80,60,150,0.08) 6px 12px),
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.04), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.03), transparent 40%);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

/* Section scaffolds (glass panels) */
header, main, article, footer, aside {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, article, footer, aside { background: var(--glass-strong, rgba(255,255,255,0.22)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
header { text-align: center; padding: 1.75rem 1rem 1.25rem; }
header h1 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 .25rem; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: clamp(0.75rem, 2.5vw, 0.92rem); margin-top: .25rem; }

/* Typography & rhythm */
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 1rem 0 .25rem; }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.25rem); margin: .75rem 0; }
p { margin: .75rem 0; font-size: clamp(1rem, 2.2vw, 1.125rem); color: color-mofify(var(--text), --muted); }

/* Featured image framing */
.featured-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(178, 174, 86, 0.65);
  box-shadow: 0 6px 14px rgba(0,0,0,.28);
  display: block;
  margin: 0 auto 1rem;
}
.featured-image img { width: 100%; height: auto; display: block; }

/* Image frame utility (as requested selectors) */
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(178, 174, 86, 0.6);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.04); }

/* Content column & grid utilities */
.content { display: block; padding: 0.5rem 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 1rem;
  transition: transform .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.09); }

/* Product ad / CTA area */
.product-ad {
  display: grid;
  gap: .5rem;
  align-items: center;
  justify-items: start;
  padding: .75rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(20, 20, 28, 0.35);
}
.product-ad h3 { margin: 0; font-size: 1.05rem; }
.product-ad a { text-decoration: none; color: inherit; display: inline-block; width: 100%; }

/* Buttons & links (interactive elements) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: var(--accent);
  color: #0b0b0b;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: #c89f3a; }
.btn:active, .cta:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(178,174,86,.9);
  color: var(--text);
}
.btn:focus-visible, .cta:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 999px;
}
a.btn { text-decoration: none; }

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

/* Structural builders for content areas */
main { padding: 1rem; }
footer { padding: .75rem; margin-top: 1rem; font-size: .9rem; text-align: center; }

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