/* Section: Base */
:root{
  --bg: #0b2a14;
  --bg-2: #0f3b2a;
  --text: #eee2cc;
  --muted: #cdbba1;
  --accent: #e6d4ae;
  --accent-2: #a8cfa7;
  --glass: rgba(9, 28, 12, 0.22);
  --glass-fallback: rgba(9, 28, 12, 0.38);
  --border: rgba(210, 180, 120, 0.38);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; }
body {
  margin: 0;
  color: var(--text);
  /* Layered background: gradient + subtle scanlines */
  background-color: var(--bg);
  background-image:
    linear-gradient(to bottom right, rgba(7, 28, 12, 0.28), rgba(8, 40, 20, 0.18)),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 2px
    ),
    linear-gradient(#0b2a14, #0a1e0f);
  background-blend-mode: overlay, overlay, normal;
  min-height: 100%;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Reduced motion guard */
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll; }
}

/* Section: Layout primitives */
.container {
  width: min(100%,  clamp(320px, 92vw, 1100px));
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: var(--glass-fallback); }
}
.tag {
  display: inline-block;
  padding: .15em .5em;
  border-radius: 999px;
  font-size: .75rem;
  color: #111;
  background: linear-gradient(#e5d9ba, #d6c19c);
  border: 1px solid rgba(210,180,120,.6);
  margin-right: .5em;
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #0b2f1a;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.content { padding: 0.75rem 0; }

/* Section: Typography */
h1, h2, h3 { margin: 0.25rem 0; line-height: 1.15; }
h1 {
  font-size: clamp(1.75rem, 3.2vw + 0.5rem, 3.5rem);
  letter-spacing: .2px;
  text-shadow: 0 0 14px rgba(230, 208, 170, 0.6);
}
h2 { font-size: clamp(1.25rem, 2.5vw + .75rem, 2.25rem); color: var(--text); }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text); }

/* Section: Header / Nav / Hero styling */
header {
  text-align: center;
  padding: 1.25rem 0 0.75rem;
}
header h1 { 
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 8px rgba(214, 200, 160, .6);
}
header .meta {
  margin-top: .25rem;
  font-size: .92rem;
  color: var(--muted);
}
nav {
  display: inline-block;
  margin-top: .5rem;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(246,232,199,.6);
  background: rgba(230,214,174,.15);
  transition: transform .15s ease, background .15s ease;
}
nav a:hover { text-decoration: underline; background: rgba(246,232,199,.25); }
nav a:focus-visible { outline: 2px solid #fff7; outline-offset: 2px; }

/* Section: Main content flow */
main { padding: 1rem 0 2rem; }
article { max-width: 720px; margin: 0 auto; padding: 0 0.5rem; }
article p, article ul { color: var(--text); line-height: 1.6; }
article ul { padding-left: 1.25rem; margin: .5rem 0; }
article li { margin: .25rem 0; }

/* Section: Links / Buttons helpers */
a, button { cursor: pointer; color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
.btn, .cta {
  display: inline-block;
  padding: .6rem .9rem;
  border-radius: 9px;
  border: 1px solid rgba(222,204,170,.55);
  background: linear-gradient(#f3e0ba, #e0c99a);
  color: #1a1a11;
  font-weight: 600;
  text-align: center;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.btn:hover, .cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(#f6e6c0, #e1cb9a);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(214,198,160,.6);
  color: var(--text);
}
.btn--outline:hover { background: rgba(214,198,160,.15); }

/* Section: Lists / Aside tweaks for accessibility */
ul { margin-block-start: .5rem; margin-block-end: .5rem; padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Section: Footer areas (product-ad, etc.) */
footer { margin-top: 2rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.product-ad, .sponsored-page { margin: .5rem 0; }
.product-ad a, .sponsored-page a {
  display: block;
  padding: .6rem;
  border-radius: 8px;
  background: rgba(20, 40, 16, 0.28);
  border: 1px solid rgba(210,180,120,.5);
  text-align: center;
}
footer p { text-align: center; color: var(--muted); margin: .5rem 0 0; }

/* Section: Responsive utilities */
@media (min-width: 720px){
  .grid--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (min-width: 980px){
  article { font-size: clamp(1rem, 0.8vw + 0.8rem, 1.125rem); }
  .container { padding-inline: 0; }
  header { padding: 1.5rem 0 1rem; }
}

/* Section: Print styles */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { display: none; }
  article { padding: 0; max-width: 100%; }
}
