/* Token Palette & Global Helpers */
:root {
  --bg: #1a1f0a;          /* olive foundation */
  --bg-2: #2a3d0f;
  --text: #e9f7e0;        /* high-contrast on olive surfaces */
  --muted: #b9cba2;
  --accent: #ff2a97;      /* plasma pink */
  --accent-2: #ff6bd6;
  --surface: rgba(28, 42, 14, 0.72);
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 6px 20px rgba(0,0,0,.35);
  --radius: 12px;
  --focus: 2px solid var(--accent);
}

/* Reset + Layout Helpers */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layered background: gradient + olive stripes + subtle glow */
  background: 
    radial-gradient(circle at 15% -10%, rgba(255, 40, 150, 0.12), transparent 60px),
    linear-gradient(135deg, rgba(0,0,0,.20), rgba(0,0,0,.02) 40%),
    repeating-linear-gradient(135deg,
      rgba(60, 90, 40, .18) 0 8px,
      rgba(60, 90, 40, 0) 8px 16px),
    linear-gradient(to bottom, #1b2a0b 0%, #0b130a 100%);
  background-attachment: fixed;
  color-scheme: dark;
}
a { color: inherit; text-decoration: none; }

header, nav, main, article, section, aside, footer {
  display: block;
}
img { max-width: 100%; height: auto; display: block; border: 0; }

/* Core Page Structure */
.container {
  max-width: clamp(680px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }

/* Header / Hero (glass panel feel) */
header {
  text-align: center;
  padding: clamp(1.25rem, 4vw, 2.5rem) 1rem;
}
header h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.6rem);
  line-height: 1.08;
  margin: 0.25rem 0 0;
  letter-spacing: .3px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
header .meta {
  margin-top: .5rem;
  color: var(--muted);
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: .2px;
}

/* Glass panels (fallback if backdrop-filter not supported) */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,0.12); }
}

/* Content blocks */
.content { padding: 0.75rem 0; }

/* Images */
.image-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 20px rgba(0,0,0,.32);
  aspect-ratio: 16 / 9;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Text content styling for sections */
section {
  padding: .75rem 0;
  border-radius: 12px;
}
section + section { margin-top: .25rem; }

/* Lists & quotes (accessible spacing) */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; color: #eefaeb; }
blockquote {
  margin: .75rem 0;
  padding: .6rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 0, 140, 0.08);
  border-radius: 6px;
  font-style: italic;
  color: #f8fff0;
}

/* Product Ad / Footer toy sections */
.product-ad, .sponsored-page {
  display: block;
  border-radius: 12px;
  padding: .75rem;
  text-align: center;
}
.product-ad a, .sponsored-page a {
  display: inline-block;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(to bottom right, rgba(0,0,0,.25), rgba(0,0,0,.45));
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  transition: transform .2s ease, background .3s ease;
}
.product-ad a:hover, .sponsored-page a:hover {
  transform: translateY(-1px);
  background: linear-gradient(to bottom right, rgba(0,0,0,.32), rgba(0,0,0,.55));
}
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Typography / utility */
.tag {
  display:inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.container .card { /* compact card utility (used with .grid) */
  padding: .75rem;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Links + buttons (interactive) */
a, button, .btn, .cta {
  color: #fff;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.36);
  padding: .6rem 1rem;
  border-radius: .75rem;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .3s ease, color .3s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  text-decoration: underline;
  color: var(--accent-2);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #ff6bd6);
  border: none; color: #0e0310;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: var(--text);
}
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-color: rgba(255,255,255,.9);
  border-radius: .75rem;
}
.cta { /* alternative call-to-action class */
  display:inline-block;
  padding: .65rem 1rem;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition: none !important; }
}

/* Main layout tweaks for responsive behavior */
main { padding: 1rem 0 2rem; }
header, footer { width: 100%; }

@media (min-width: 720px) {
  .container { padding-inline: 2rem; }
  section { padding: 1rem 0; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  header { padding: 2rem 0 2.5rem; }
}

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  header, footer { display: block; }
  .glass { background: #f6f6f6; border: 1px solid #ddd; backdrop-filter: none; }
}
