:root {
  --bg: #0b0f14;
  --bg-2: #1a232a;
  --text: #e9f0f5;
  --muted: #a9b5c3;
  --accent: #2bd4c9;
  --accent-2: #d2a45a;
  --sand: #d9c29d;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --ring: #2bd4c9;
  --ring-weak: rgba(43, 212, 201, 0.6);
  --max-content: clamp(640px, 90vw, 1100px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-2), var(--bg));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  /* subtle scanlines / noise-like overlay */
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 60% -10%, rgba(255,255,255,0.06), transparent 40%);
  background-size: auto 2px, 900px 900px;
  opacity: 0.25;
  mix-blend-mode: overlay;
}

body::after {
  /* sand gradient accent at lower portion for depth */
  content: "";
  height: 40%;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(213,198,165,0.18) 50%, rgba(213,198,165,0.28) 100%);
  opacity: 0.75;
  mix-blend-mode: overlay;
}

.container {
  width: 100%;
  max-width: var(--max-content);
  padding: 0 1rem;
  margin: 0 auto;
}

header {
  padding: 1rem;
  margin: 1rem auto;
  border-radius: 12px;
  background: rgba(12, 18, 23, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  display: block;
}

header h1 {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 3.6rem);
  line-height: 1.08;
  margin: 0 0 0.25rem;
  letter-spacing: .2px;
  word-spacing: .5px;
}

header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.3vw + 0.8rem, 1rem);
}

nav {
  margin-top: .5rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(43,212,201,.25);
}
nav a:hover { text-decoration: underline; }

main {
  padding: 1rem 0 2rem;
}

.featured-image { margin: 0.75rem 0 1rem; }

.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 20px rgba(0,0,0,.3);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  will-change: transform;
}

.content { padding: 0.25rem 0 0; }

h2 { color: var(--text); margin: 1rem 0 .5rem; font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem); }

p, li { font-size: clamp(1rem, 0.4vw + 0.9rem, 1.25rem); line-height: 1.5; color: var(--text); }

ul, ol { padding-left: 1.25rem; margin: 0.5rem 0; }
li { margin: 0.25rem 0; }

blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border-radius: 6px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.tag {
  display: inline-block;
  padding: .25em .5em;
  font-size: .8rem;
  border-radius: 999px;
  background: rgba(43,212,201,.15);
  color: var(--text);
  border: 1px solid rgba(43,212,201,.4);
}

.product-ad, .sponsored-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
  color: var(--text);
  min-width: 170px;
  text-align: center;
}

footer {
  padding: 1rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

footer p {
  margin: 0.25rem 0;
  color: var(--muted);
  text-align: center;
  grid-column: 1 / -1;
}

a, button, .btn, .cta {
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

button, .btn, .cta {
  padding: .55rem .95rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
}
.btn {
  background: var(--accent);
  color: #041913;
  border: 1px solid rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: var(--text);
}
.cta { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn { transform: none; }
}

@media (min-width: 880px) {
  .container { padding: 0 1.25rem; }
}

@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; }
  a, button { color: #000; text-decoration: underline; }
}