/* Tokens */
:root {
  --bg: #0b140f;
  --bg-2: #1b2a1a;
  --text: #eaf8e9;
  --muted: #a8b6a5;
  --accent: #d90429;
  --accent-2: #7a0f25;
  --card: rgba(12, 18, 14, 0.6);
  --glass: rgba(8, 12, 8, 0.6);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 20px rgba(0,0,0,.45);
  --focus: 2px solid color-m-mix(in oklab, #ffffff 60%, var(--accent));
  --radius: 12px;
}

/* Section: Base + System */
html, body {
  height: 100%;
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    /* gradient layer: olive/crimson mood */
    linear-gradient(135deg, #0b130f 0%, #0a1a10 60%, #0b130f 100%),
    /* subtle scanlines */
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 4px);
  background-blend-mode: normal, overlay;
  /* Layered background hint for "future cyberpunk" vibe */
  background-attachment: fixed;
}

body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

html {
  /* responsive sizing baseline */
  font-size: clamp(14px, 1vw + 8px, 18px);
}

header, main, footer {
  width: min(100%, 1100px);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(8,12,8,0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}

/* Section: Layout helpers */
.container {
  width: 100%;
  max-width: clamp(680px, 86vw, 1100px);
  margin-inline: auto;
  padding-inline: 0.5rem;
}

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

.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 0.75rem;
  transition: transform .15s ease, background .2s ease;
}
.card:hover { transform: translateY(-1px); background: rgba(255,255,255,.06); }

/* Section: Typography & content structure */
h1, h2 {
  margin: 0 0 .5rem;
  line-height: 1.15;
}
h1 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 3rem);
}
h2 {
  font-size: clamp(1.25rem, 1.6vw + 1rem, 2rem);
}
p {
  margin: .75rem 0;
  color: #eaf8e2;
}
.meta {
  margin: 0.25rem 0 0.5rem;
  color: var(--muted);
  font-size: clamp(0.8rem, 0.6vw + 0.7rem, 1rem);
}

/* Section: Media */
.featured-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  margin: 0 0 1rem;
  width: 100%;
}
.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  filter: saturate(1.05);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* Section: Links & interactions */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus-visible {
  text-decoration: underline;
  outline: none;
}
a:focus-visible {
  outline: 3px solid #ffd6d6;
  outline-offset: 3px;
}
button, .btn, .cta {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 0.75em 1.25em;
  display: inline-block;
  text-align: center;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn {
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 4px 14px rgba(217,4,41,.45);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(216, 0, 0, 0.6);
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}
.btn--outline:hover { background: rgba(216,0,0,.15); }

.cta {
  color: #fff;
  background: linear-gradient(135deg, rgba(216,0,0,.95), rgba(216,0,0,.8));
  border: 1px solid rgba(0,0,0,.25);
}
.cta:hover { filter: brightness(1.05); }

/* Section: Misc UI elements */
ul, li {
  margin: 0.25rem 0;
  padding-left: 1.25rem;
}
li { color: var(--text); }

/* Section: Content area helper (for potential .content usage) */
.content {
  padding: 0.5rem;
  color: var(--text);
  background: rgba(0,0,0,.08);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
}

/* Section: Footer + ads blocks */
.product-ad, .sponsored-page {
  padding: 0.75rem;
  margin: 0.5rem 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
}
.product-ad a, .sponsored-page a { text-decoration: none; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.product-ad p, .sponsored-page p { margin: 0; }

/* Section: Print */
@media print {
  html, body {
    background: white;
    color: #000;
  }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
  a { text-decoration: underline; color: #000; }
}

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