/* Tokens & Theme */
:root {
  --bg: #0b0f14;
  --bg-2: #1a1f26;
  --text: #e6f0f5;
  --muted: #a9b4c2;
  --accent: #4df2ff;
  --accent-2: #bcb4c7;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --radius: 12px;
  --focus: 2px solid #9ad2ff;
}

/* Base: typography, color, layered background (gradient + scanlines) */
html, body { height: 100%; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  background:
    /* subtle noise/scanline feel */
    radial-gradient(circle at 10% 0%, rgba(0,255,255,.06), transparent 25%),
    linear-gradient(135deg, #0a0f15 0%, #151a20 40%, #0b0f14 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  padding: 0;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(680px, 92vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }

/* Header / content scaffolding (glass-like panels with fallbacks) */
header {
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  max-width: clamp(320px, 90vw, 1100px);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
header h1 {
  font-size: clamp(1.6rem, 0.9rem + 2.5vw, 3rem);
  line-height: 1.12;
  margin: 0 0 .25em;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: 0.9rem;
}
main { display: block; }

/* Article / content styling (glass panels where possible) */
article {
  padding: 0;
  margin: 0;
}
.content { padding: 1rem; }

/* Image frame with aspect and glow */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #111;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .25s ease;
}
.image-frame:hover img { transform: scale(1.04); }

/* Content typography scale */
h1, h2, h3 { color: var(--text); }
h1 { font-size: clamp(1.6rem, 2vw + 1.4rem, 2.6rem); margin: .5rem 0 0.75rem; }
h2 { font-size: clamp(1.25rem, 1.2vw + 1rem, 1.75rem); margin: .9rem 0 0.5rem; }
p { color: rgba(230,240,245,.95); margin: .5rem 0 1rem; }

/* Block quotes */
blockquote {
  margin: .75rem 0 1rem;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,.05);
  border-radius: 6px;
  color: var(--text);
}

/* Lists */
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }

/* Glass panels for sections (fallback if backdrop-filter unavailable) */
.card, .product-ad, aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(8px) saturate(1.05);
}
@supports not (backdrop-filter: blur(8px)) {
  .card, .product-ad, aside { background: rgba(255,255,255,.12); }
}

/* Product ad in footer */
.product-ad { display: block; text-align: left; }
.product-ad h3 { margin: 0 0 .5rem; font-size: 1.05rem; }

/* Links & buttons (high contrast, accessible) */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; }

/* CTA button variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,.5);
  background: var(--accent);
  color: #001017;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #38e7ff; }
.btn:focus-visible { outline: 3px solid #9ad2ff; outline-offset: 2px; }
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.08); }
.btn + .btn { margin-left: .5rem; }

/* Utility & small components */
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  font-size: .75rem;
  color: var(--text);
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
}

/* Forms (basic, to match theme) */
input, button, textarea {
  font: inherit;
  color: inherit;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 6px;
  padding: .5rem .75rem;
}
input::placeholder { color: rgba(230,240,245,.6); }
button { cursor: pointer; }

/* Navigation/Aside (presentational placeholders if used) */
nav { display: block; }

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  a { color: #06c; text-decoration: underline; }
  header, main, article, footer { background: transparent; box-shadow: none; }
  .image-frame { break-inside: avoid; }
}

/* Responsive tweaks */
@media (min-width: 720px) {
  .container { padding-inline: 0; }
  article { padding: 0 1rem; }
}
