/* Section: Base & Palette */
:root {
  --bg: #0b030b;
  --bg-2: #25010a;
  --bg-3: #4a040e;
  --text: #f7f7f7;
  --muted: #c9c9c9;
  --accent: #e31b34;
  --accent-2: #ff2b63;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --ring: 0 0 0 3px rgba(227, 27, 52, 0.55);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background-image:
    radial-gradient(circle at 20% 12%, rgba(255,0,0,.08), transparent 40px),
    radial-gradient(circle at 80% 25%, rgba(0,0,0,.04), transparent 40px),
    repeating-linear-gradient(to bottom, rgba(255,0,0,.05) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, #12040a 0%, #0b040b 60%, #19040a 100%);
  background-attachment: fixed;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 0 0 transparent;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f7f7f7; --text: #111; --muted: #555; --glass: rgba(0,0,0,.05); }
  body { background-image:
    radial-gradient(circle at 20% 12%, rgba(255,0,0,.04), transparent 40px),
    radial-gradient(circle at 80% 25%, rgba(0,0,0,.04), transparent 40px);
  }
}

/* Section: Layout primitives */
header, main, footer, aside { display: block; }
.container { max-width: clamp(680px, 80vw, 1120px); margin-inline: auto; padding-inline: 1rem; }

/* Section: Typography & hero */
header { padding: 2rem 1rem 1.25rem; text-align: center; }
header h1 { font-size: clamp(1.6rem, 5vw, 3rem); line-height: 1.15; margin: .25rem 0 .25rem; font-weight: 700; color: var(--text); letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 2vw, 0.95rem); margin-top: .25rem; }

/* Section: Global content & glass panels */
.content, .card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); }
@supports not (backdrop-filter: blur(12px)) {
  .content, .card { background: rgba(255,255,255,.12); }
}
.image-frame { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Links & buttons */
a, button, .btn, .cta { font-family: inherit; font-weight: 500; color: inherit; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease; }
a { color: var(--accent); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: none; box-shadow: none; outline: 0; }
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(227,27,52,.92); color: #fff; }
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible { outline: none; box-shadow: var(--ring); border-color: rgba(255,255,255,.6); }

/* Section: Lists & tags */
ul, li { margin: 0; padding: 0; list-style-position: inside; }
ul { padding-left: 1rem; }
li { margin: .25rem 0; }

/* Section: Utilities & components */
.container { padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { padding: 1rem; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); box-shadow: var(--shadow); }
.tag { display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; background: rgba(227,27,52,.25); color: #fff; border: 1px solid rgba(255,255,255,.25); }

/* Section: Structural page regions (targets per requirement) */
html, body, header, nav, main, article, footer, aside { scroll-behavior: smooth; }
nav a { display: inline-block; padding: .4rem .6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.15); color: #fff; }

/* Section: Specific content composition (typography flow) */
article { padding: 0 0 1rem; }
article h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); margin: .75rem 0; color: var(--text); }

/* Section: Print accessibility (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Small helpers (utility tokens) */
.utility, .container, .grid, .card, .tag { /* section headers only (no extra extraneous comments) */ }