/* TOKENS */
:root{
  --bg: #0b0f1a;
  --bg-2: #1b1f14;
  --text: #e9f0d1;
  --muted: #a6b6a0;
  --accent: #00b8ff;
  --accent-2: #7bd8ff;
  --khaki: #b8a76d;
  --glass-1: rgba(24, 20, 12, 0.28);
  --glass-2: rgba(0,0,0,.40);
  --border: rgba(255,255,255,.28);
  --radius: 14px;
  --shadow-soft: 0 6px 18px rgba(0,0,0,.25);
}

/* GLOBALS */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

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-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 244, 180,.18) 0 2px, transparent 2px),
    radial-gradient(circle at 78% 40%, rgba(160, 190, 255,.12) 0 2px, transparent 2px),
    linear-gradient(135deg, rgba(100, 80, 20, .25), rgba(0,0,0,.60)),
    linear-gradient(#1a1b12 0%, #0b0f1a 60%);
  background-blend-mode: screen, overlay, normal, normal;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  /* subtle scanline + starfield feel (pure CSS) */
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  animation: scroll-lines 6s linear infinite;
  opacity: .25;
}
@keyframes scroll-lines { to { transform: translateY(2px); } }

/* LAYOUT UTILITIES */
.container {
  width: 100%;
  padding-inline: 1rem;
  margin-inline: auto;
  max-width: clamp(320px, 90vw, 1100px);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: linear-gradient(to bottom right, rgba(15,15,12,.28), rgba(8,8,8,.22));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(0,184,255,.25);
  color: #e8f8ff;
  border: 1px solid rgba(0,184,255,.6);
}

/* COMPONENTS */
header, nav, main, article, aside, footer { /* layout targets exist in page */ }

header {
  margin: 2rem auto;
  padding: 2rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  max-width: clamp(320px, 90vw, 1100px);
  background: rgba(18, 16, 12, 0.28);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.8rem, 2vw + 1rem, 3rem);
  line-height: 1.08;
  color: #e9f0d1;
}
header .meta {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.8rem, .8vw + .4rem, 1rem);
}

/* HERO / CONTENT */
main { padding: 1rem 0 2rem; }
article { max-width: clamp(520px, 92vw, 940px); margin: 0 auto; padding: 0 1rem; }
.featured-image { margin: 1rem 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.featured-image img { display: block; width: 100%; height: auto; object-fit: cover; }
h2 { font-size: clamp(1.25rem, 1vw + 1rem, 2rem); margin: .5rem 0; color: #e9f0d1; }

/* body text color for readability on glass */
p { color: var(--muted); margin: 0 0 1rem; }
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

/* Quotations & accents */
blockquote {
  margin: .5rem 0 1rem;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
  color: #eaf4ff;
}

/* image frame style */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 22px rgba(0,0,0,.4);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* content area (glass panels) */
.content { padding: 1rem; }

/* footer / product ad blocks */
.product-ad, .sponsored-page {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(11,11,8,.28);
  border: 1px solid rgba(255,255,255,.28);
  text-align: center;
  min-width: 180px;
  color: #eaffff;
  box-shadow: var(--shadow-soft);
}
.product-ad a, .sponsored-page a { color: #eaffff; text-decoration: none; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* footer layout */
footer {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.25);
}
footer p { color: var(--muted); margin: .25rem 0; }

/* LINKS & BUTTONS */
a { color: var(--accent); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; text-decoration: underline; }
a:hover { text-decoration: underline; }

.btn, .cta, button {
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  padding: .75rem 1.1rem;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(0,0,0,.25);
  color: #fff;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }

/* variants */
.btn--solid {
  background: linear-gradient(135deg, rgba(0,184,255,.95), rgba(0,153,255,.85));
  border-color: rgba(0,184,255,.95);
  color: #001018;
}
.btn--outline {
  background: transparent;
  border-color: rgba(0,184,255,.8);
  color: var(--accent);
}
.btn, .cta { padding: .65rem 1rem; }

/* glass fallback for older browsers */
@supports not (backdrop-filter: blur(8px)) {
  header, .card, .product-ad, .sponsored-page {
    background: rgba(20, 18, 12, 0.6);
    border: 1px solid rgba(255,255,255,.25);
  }
}

/* aside styling (not used heavily in layout, but present in selectors) */
aside { display: block; }

/* RESPONSIVE TYPOGRAPHY */
@media (min-width: 768px){
  .container { padding-inline: 0; }
  header { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn { transition: none; }
  a { transition: none; }
}

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