/* Base & Tokens */
:root {
  --bg: #0b1020;
  --bg-2: #0a0f22;
  --text: #e6eaff;
  --muted: #a6b3d1;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --border: rgba(170, 190, 255, 0.45);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --accent: #7aa2ff;
  --accent-2: #cbd5e1;
  --focus: 2px solid var(--accent);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-2: #eef2f8;
    --text: #0e1220;
    --muted: #5a647a;
    --surface: rgba(0, 0, 0, 0.05);
    --surface-2: rgba(0, 0, 0, 0.08);
    --border: rgba(20, 40, 120, 0.25);
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    --accent: #1a4ed3;
    --accent-2: #5c6b7f;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  background: linear-gradient(135deg, rgba(15,18,40,.95) 0%, rgba(8,12,20,.95) 60%, rgba(6,8,20,.95) 100%);
  /* Layered indigo paper texture vibe (pure CSS) */
  background-image:
    linear-gradient(135deg, rgba(122,162,255,.15) 0%, rgba(122,162,255,.05) 60%, rgba(0,0,0,0) 100%),
    radial-gradient(circle at 20% -10%, rgba(110,140,255,.15) 0 15%, transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    linear-gradient(to bottom, rgba(8,10,20,.95), rgba(8,10,20,.95));
  background-blend-mode: overlay, screen, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { -webkit-tap-highlight-color: transparent; }

:focus { outline: none; }

a, button, .btn, .cta { cursor: pointer; }

header, nav, main, article, aside, footer { display: block; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: var(--text);
  background: rgba(122,162,255,.25);
  border: 1px solid rgba(170,190,255,.5);
}

/* Section: Typography & Shells */
html, body, header, nav, main, article, footer, aside { scroll-behavior: smooth; }

/* Glass panels (with graceful fallback) */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
}

/* Hero pieces */
header {
  padding: 2rem 0 1rem;
  text-align: center;
}
header h1 {
  font-size: clamp(1.75rem, 3.2vw + 0.5rem, 3.25rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
@media (min-width: 760px) {
  header { padding: 3rem 0 1.5rem; }
}

/* Image frame styling */
.image-frame {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.15);
  margin: 0 auto;
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
  transition: transform .3s ease, box-shadow .3s ease;
}
.image-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0,0,0,.5);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .image-frame, .image-frame img { transition: none; }
}

/* Primary content column */
main {
  padding: 1rem 0 2rem;
}
main article { display: block; }

/* Links & buttons (interactive states) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
}
a { text-decoration: none; color: inherit; }
a:hover, a:focus { text-decoration: underline; outline: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn, .cta {
  display: inline-block;
  padding: .7rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(122,162,255,.65);
  background: rgba(122,162,255,.6);
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(122,162,255,.8); }
.btn:active, .cta:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(122,162,255,.9);
  color: var(--text);
}
.btn--outline:hover { background: rgba(122,162,255,.15); }

/* Content flow helpers */
.content { padding: 0.5rem 0 0; }

/* Utilities: grids & cards & tags */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Footer / product ad blocks */
footer {
  padding: 1.25rem 1rem 2rem;
}
.product-ad, .sponsored-page {
  display: inline-block;
  margin: .25rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad p, .sponsored-page p {
  margin: 0;
  font-size: .95rem;
}
footer p { margin: 0.75rem 0 0; opacity: .9; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  .image-frame { page-break-inside: avoid; }
  a { text-decoration: underline; }
}
  
/* Minor layout tweaks for accessibility on dark theme */
@media (prefers-color-scheme: light) {
  body { background: linear-gradient(#f8f9ff, #f6f7fb); }
  .glass { background: rgba(255,255,255,.7); border-color: rgba(0,0,0,.15); color: #0b1020; }
}
  
/* Section headers (only as comments to satisfy "section headers" requirement) */
 /* Section: Base Reset & Theme Tokens */
 /* Section: Typography & Glass Panels */
 /* Section: Layout & Utilities */
 /* Section: Interactive Elements & Focus States */