/* Section: Tokens */
:root{
  --bg: #0a061b;
  --bg-2: #1a0f3a;
  --text: #f7f4ff;
  --muted: #cbb7d9;
  --accent: #e01b3c;      /* scarlet */
  --accent-2: #7c5cff;    /* galaxy purple */
  --surface: 255,255,255;
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 14px;
}

/* Section: Reset & base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(60,0,90,.95) 0%, rgba(20,0,40,.95) 60%, rgba(12,0,20,.95) 100%), 
    radial-gradient(circle at 70% 20%, rgba(160, 0, 240, .25), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, screen, overlay;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Section: Layout helpers */
.container {
  width: 100%;
  max-width: clamp(28rem, 85vw, 1100px);
  padding: 0 1rem;
  margin: 0 auto;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

/* Section: Glassy surfaces (fallback if backdrop-filter unavailable) */
.card, header, article, footer {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card, header, article, footer { background: rgba(255,255,255,.14); }
}
.image-frame { width: 100%; max-width: 860px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.3); box-shadow: 0 6px 20px rgba(0,0,0,.4); background: #000; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Structure styling hooks used by the HTML */
header {
  max-width: 1100px;
  margin: 1rem auto;
  padding: 1.25rem;
  display: block;
}
header h1 { font-size: clamp(1.4rem, 2.5vw + 1rem, 2.75rem); margin: 0 0 .5rem; line-height: 1.15; letter-spacing: .2px; }
header .meta { font-size: .95rem; color: var(--muted); margin-bottom: .25rem; }

/* Main content */
main { padding: 1rem; }
article {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem;
}
article h1 { font-size: clamp(1.5rem, 2.2vw + 1rem, 2.75rem); margin: 0 0 .75rem; }
article p { color: #f4effb; font-size: clamp(0.95rem, 0.8vw + .95rem, 1.1rem); line-height: 1.6; margin: .75rem 0; }
blockquote {
  padding: .75rem 1rem;
  margin: .75rem 0;
  border-left: 4px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}
blockquote p { margin: 0; font-style: italic; color: #f7eaff; }
blockquote cite { display: block; font-size: .9rem; color: #e0ccf3; margin-top: .25rem; }

/* Section: Lists & inline helpers */
ul, li { margin: 0; padding: 0; padding-left: 1.25rem; }
ul { list-style: disc; }
li { margin: .25rem 0; }

/* Section: Links & CTAs */
a, button, .btn, .cta {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; outline: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Primary / secondary actions */
.btn { display: inline-block; padding: .75rem 1rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; border: 1px solid rgba(0,0,0,.15); transition: transform .15s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); background: #cc1620; }
.btn:active { transform: translateY(0); }

/* Outline variant */
.btn.outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

/* Minor CTAs */
.cta { padding: .6rem 1.05rem; border-radius: 999px; display: inline-block; }

/* Section: Misc helpers (tokens wrappers) */
.container .tag { display: inline-block; padding: .15em .5em; border-radius: 999px; font-size: .75rem; color: #fff; background: var(--accent-2); }

/* Section: Footer & "ad" blocks */
footer { padding: 1rem; margin: 1rem auto 0; max-width: 1200px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.product-ad a, .sponsored-page a {
  display: block;
  padding: .8rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); }

/* Section: Printing */
@media print {
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}

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