/* 01. Tokens */
:root{
  --bg: #0b0f0a;
  --bg-2: #0f1410;
  --surface: rgba(255, 248, 210, 0.08);
  --surface-2: rgba(255, 255, 255, 0.08);
  --text: #eaf6e0;
  --muted: #a6b49a;
  --accent: #c4b16e;       /* khaki accent */
  --accent-2: #8f9a63;
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 22px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 10px;
  --gap: 1.25rem;
  --focus: 2px solid rgba(196,177,110,.95);
}

/* 02. Base / Layout reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layered background: gradient + subtle scanlines/noise (pure CSS) */
  background:
    linear-gradient(135deg, rgba(12,18,12,.75), rgba(8,12,8,.75) 60%, rgba(12,18,12,.75)),
    radial-gradient(circle at 15% -5%, rgba(194,176,121,.15), transparent 25%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  background-color: var(--bg);
  background-blend-mode: overlay, normal, overlay;
  min-height: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

/* 03. Utilities / primitives */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}
.grid {
  display: grid;
  gap: var(--gap);
}
.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: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(194,176,110,.25);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
}
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: .5rem .8rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
  transition: transform .2s ease, background .2s ease;
}
a:hover, a:focus-visible, button:hover, button:focus-visible, .btn:hover, .btn:focus-visible, .cta:hover, .cta:focus-visible {
  text-decoration: underline;
  outline: none;
}
a {
  color: var(--accent);
}
.btn, .cta {
  background: rgba(196,177,110,.25);
  border: 1px solid rgba(255,255,255,.25);
  padding: .6rem 1rem;
}
.btn.primary, .cta.primary { background: rgba(196,177,110,.40); }

/* Focus indicators for accessibility (WCAG AA-ish) */
:focus-visible {
  outline: 3px solid rgba(194,176,121,.95);
  outline-offset: 2px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

/* 04. Structural selectors */
html, body, header, nav, main, article, footer, aside {
  /* allow predictable rendering as a base frame; no extra styling here */
}

/* 05. Header / Hero styling */
header {
  padding: 1.5rem 0;
  text-align: center;
}
header h1 {
  margin: .25rem 0 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 3vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: .2px;
}
header .meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: .25rem;
  letter-spacing: .2px;
}

/* 06. Main content / article */
main {
  padding: 0 0 2rem;
}
article {
  margin: 0 auto;
  max-width: clamp(640px, 85vw, 860px);
  padding: 1rem;
  border-radius: var(--radius);
  /* Frosted glass panel with fallbacks handled below */
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) and not (-webkit-backdrop-filter: blur(12px)) {
  article {
    background: rgba(255,255,255,.14);
  }
}
.featured-image { margin: 1rem 0; }
.image-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 8px 22px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* subtle glow */
  filter: saturate(1.05);
}
h2 {
  font-size: clamp(1.4rem, 0.8rem + 2vw, 2.2rem);
  margin: .75rem 0 .5rem;
}
h3 {
  font-size: clamp(1.05rem, 0.9vw + 1rem, 1.4rem);
  margin: .75rem 0;
}
p { margin: 0 0 1rem; color: var(--text); }
blockquote {
  margin: .75rem 0 1rem;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
  color: var(--muted);
}
ul { margin: .5rem 0 1rem 1.25rem; }
li { margin: .25rem 0; }

/* 07. Product ad / footer */
.product-ad {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  margin: 1rem 0;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
}
.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
}
.product-ad p {
  margin: 0;
  color: var(--text);
}
footer {
  padding: 1rem 0;
  text-align: center;
}
@media (min-width: 720px) {
  .container { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* 08. Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  article { background: #fff; border: 0; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}
