/* Base */
:root {
  --bg: #0a0f14;
  --bg-2: #11161d;
  --glass: rgba(255, 246, 184, 0.14);
  --glass-fallback: rgba(255, 255, 255, 0.08);
  --text: #eaf6ff;
  --muted: #cbdbe8;
  --accent: #f6f27a;
  --accent-2: #ffd86b;
  --border: rgba(255, 255, 255, 0.32);
  --shadow: 0 8px 26px rgba(0,0,0,.35);
  --radius: 14px;
  --focus: 2px solid #9bd0ff;
  --focus-color: #9bd0ff;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  font-size: clamp(14px, 1.4vw + 8px, 18px);
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.25) 1px, transparent 1px),
    linear-gradient(45deg, rgba(0,0,0,.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,246,184,.08), rgba(255,246,184,.02));
  background-size: 12px 12px, 12px 12px, cover;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout helpers */
.container { max-width: clamp(320px, 86vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Sections (glass panels with fallback) */
header, main, article, aside, footer {
  background: var(--glass-fallback);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem auto;
  width: min(96%, 1100px);
  color: var(--text);
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  header, main, article, aside, footer {
    background: rgba(255, 246, 184, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.28);
  }
}

/* Typography scale and content structure */
header h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.15; margin: .25rem 0 0.25rem; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: 0.92rem; margin: 0; }
main { /* main content area defaults */ }
article { padding: 0; }

/* Image frame */
.image-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.35); box-shadow: 0 6px 16px rgba(0,0,0,.25), inset 0 0 0 2px rgba(255,255,255,.04); margin: .75rem 0; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

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

/* Lists and typography helpers */
ul, ol { padding-left: 1.25rem; margin: .75em 0; }
li { margin: .25em 0; }
blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 4px solid rgba(255,255,255,.5); background: rgba(0,0,0,.18); border-radius: 6px; }

/* Links and buttons (interactive states) */
a, button, .btn, .cta { transition: color .2s ease, background-color .2s ease, transform .2s ease, border-color .2s ease; }
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 3px; border-radius: 2px; }

button, .btn, .cta {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(246, 243, 167, 0.95);
  color: #0b0b0b;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 1;
  user-select: none;
}
.btn { background: rgba(246, 243, 167, 0.95); }
.btn.primary { background: rgba(246, 243, 167, 0.95); }
.btn.secondary, .cta { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.6); }
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 2px; }

/* Product ad / utility blocks */
.product-ad { background: rgba(255, 246, 184, 0.16); border: 1px solid rgba(255,255,255,.32); border-radius: 12px; padding: .75rem; text-align: center; }
.product-ad a { color: var(--text); text-decoration: none; display: block; padding: .25rem; font-weight: 700; }
.product-ad a:hover { text-decoration: underline; }

/* Other utilities */
.tag { display: inline-block; padding: .2em .6em; font-size: .78rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: var(--text); }

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

/* Minimal responsive tweaks */
@media (max-width: 700px) {
  header, main, footer { padding: .9rem; }
  .container { padding-inline: .5rem; }
  .image-frame { border-radius: 10px; }
}

/* Print */
@media print {
  body { color: #000; background: #fff; }
  header, main, article, aside, footer { background: none; border: none; }
}

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

/* Section headers (lightweight separators for readability) */
header h1 + .meta, main > p + p { margin-top: .25rem; }