/* Base tokens */
:root {
  --bg: #0b1020;
  --bg-2: #0a1a34;
  --text: #eaf2ff;
  --muted: #b8c3e2;
  --accent: #4169e1;     /* royal blue */
  --accent-2: #e4c16e;   /* sand / dusk sand */
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(0, 0, 0, 0.25);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,0.35);
  --radius: 14px;
  --gap: 1rem;
}

html, body { height: 100%; }
* { box-sizing: border-box; }

html, body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  background-color: #000;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(65,105,225,0.25) 0 6px, transparent 6px),
    radial-gradient(circle at 90% 40%, rgba(238,214,122,0.15) 0 10px, transparent 10px),
    conic-gradient(from 180deg at 50% 50%, rgba(65,105,225,0.16) 0deg, rgba(65,105,225,0.0) 90deg, rgba(65,105,225,0.16) 180deg, rgba(65,105,225,0.0) 270deg, rgba(65,105,225,0.16) 360deg),
    linear-gradient(135deg, #040b1a 0%, #08142a 60%, #040b1a 100%);
  background-blend-mode: overlay, overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* minimal motion by default */
  scroll-behavior: smooth;
}

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

/* Layout helpers */
.container { width: 100%; max-width: clamp(320px, 92vw, 1120px); padding-inline: 1rem; margin: 0 auto; }

.grid { display: grid; gap: var(--gap); }

/* Core sections (section headers) */
header, main, article, aside, footer {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  margin: 0.75rem 0;
  isolation: isolate;
}

header { text-align: center; padding: 2rem 1rem; }

header h1 {
  font-size: clamp(1.6rem, 1.4rem + 2.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  color: var(--text);
}

header .meta { color: var(--muted); font-size: clamp(0.85rem, 0.6rem + 0.8vw, 1rem); margin-top: .25rem; }

nav { display: inline-block; margin-top: .5rem; }

nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(65,105,225,0.6);
}
a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }

/* Main content */
main { padding: 1rem 0 2rem; }

.image-frame {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  background: rgba(0,0,0,0.15);
  display: block;
}

.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content typography */
.content { padding: 0; }

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

.content p {
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);
  line-height: 1.6;
  margin: 0.75rem 0;
}

.content ul, .content ol { margin: 0.75rem 0 0.75rem 1.25rem; padding: 0; color: var(--text); }
.content li { margin: 0.35rem 0; }

/* Lists defaults */
ul { list-style: disc; }
ol { list-style: decimal; }

/* Utility blocks */
.product-ad { text-align: center; padding: 0.6rem 0; }

.product-ad a {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(65,105,225,0.6);
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(65,105,225,1) 0%, rgba(65,105,225,0.88) 100%);
}
.product-ad a:hover { transform: translateY(-1px); }
.product-ad a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Buttons and links */
.btn, button, .cta {
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(65,105,225,0.8);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  color: #fff;
  background: var(--accent);
}
.btn:hover, button:hover, .cta:hover { transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(65,105,225,0.8);
}
.btn-outline:hover { background: rgba(65,105,225,0.15); }

a, .btn, .cta { transition: color .2s ease; }
a:hover { text-decoration: underline; }

/* Glass surfaces with fallback */
.glass {
  background: linear-gradient(to bottom right, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .glass { background: rgba(255,255,255,0.22); }
}

/* Card and tag utilities */
.card {
  padding: 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(65,105,225,0.25);
  color: #fff;
}

/* Aside (present but not central in layout) */
aside { padding: 0.5rem; }

/* Footer */
footer { padding: 1.25rem; text-align: center; display: grid; gap: .5rem; }

/* Responsive tweaks */
@media (min-width: 720px) {
  main { padding: 2rem 0; }
  .container { padding-inline: 0; }
  footer { grid-template-columns: 1fr 1fr; justify-items: center; text-align: center; }
  .image-frame { margin: 0 auto; }
  header { padding: 2.25rem 1rem; }
  header h1 { font-size: clamp(1.8rem, 2vw + 1.2rem, 3.25rem); }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, article, footer { border: none; background: transparent; }
}