/* CSS: future cyberpunk landing theme - scarlet hex honeycomb + glass panels */

/* Tokens: scarlet + steel gray palette */
:root {
  --bg: #0a0f14;
  --bg-2: #111824;
  --text: #eaf2f7;
  --muted: #a4b0bd;
  --accent: #e31b23;
  --accent-2: #b0181a;
  --card: rgba(255,255,255,0.08);
  --card-2: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --radius: 12px;
  --focus: 0 0 0 3px rgba(255,255,255,.6);
  --gap: 1rem;
  --glass: rgba(255,255,255,.08);
}

html, body {
  height: 100%;
  background: linear-gradient(135deg, #0a0f14 0%, #0a0f14 42%, #111725 100%);
  color: var(--text);
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Subtle layered background effects: gradient + scarlet scanlines + noise (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(30deg, rgba(227,27,35,.15) 1px, transparent 1px),
    linear-gradient(-30deg, rgba(227,27,35,.15) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: .25;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(to bottom,
    rgba(0,0,0,.04) 0 2px,
    rgba(0,0,0,0) 2px 4px);
  mix-blend-mode: overlay;
  opacity: .18;
  pointer-events: none;
}

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

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  padding: .15rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(227,27,35,.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}

/* Header / hero */
header {
  padding: 1rem 0;
  display: grid;
  gap: .5rem;
  align-items: start;
}

header h1 {
  font-size: clamp(1.6rem, 3vw + 1rem, 2.6rem);
  line-height: 1.08;
  margin: 0;
  letter-spacing: .2px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}

header .meta {
  font-size: .88rem;
  color: var(--muted);
}

nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease;
}
nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
  background: rgba(255,255,255,.12);
  outline: none;
}
nav a:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
  transform: translateY(-1px);
}

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

article {
  display: grid;
  gap: 1rem;
  align-content: start;
}

/* Image frame */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 26px rgba(0,0,0,.45);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: scale(1.001);
}

/* Content blocks with frost glass panels (fallback included) */
.content {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .content { background: rgba(255,255,255,.12); }
}
@media (prefers-color-scheme: light) {
  :root { --card: rgba(255,255,255,.92); --text: #111; --muted: #555; }
  .content { background: rgba(255,255,255,.8); border: 1px solid rgba(0,0,0,.15); color: #111; }
}
h1, h2 {
  color: #fff;
}
h2 { font-size: clamp(1.2rem, 2vw + .5rem, 1.6rem); margin: .4rem 0; }

/* Lists and typography */
ul, li { margin: 0 0 0 1.25em; padding: 0; }
li { margin: .25rem 0; color: #e6f0f5; }

/* Links and buttons (interactive states) */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
a { color: var(--accent); }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

.btn, .cta, button {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: var(--accent);
  color: #fff;
  transition: transform .2s ease, background .2s ease, box-shadow .2s;
  text-align: center;
}
.btn:hover, .cta:hover, button:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.btn:active, .cta:active, button:active {
  transform: translateY(0);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(227,27,35,.9);
}
.btn--outline:hover {
  background: rgba(227,27,35,.18);
}
.btn:focus-visible, .cta:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 2px;
}

/* Utility: aside styling if present */
aside { padding: .5rem; }

/* Footer / product ads */
footer {
  padding: 1rem 0 2rem;
  display: grid;
  gap: .75rem;
  justify-items: center;
  text-align: center;
}
.product-ad, .sponsored-page {
  padding: .65rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  text-align: center;
  width: min(420px, 92%);
  box-shadow: var(--shadow);
}
.product-ad a, .sponsored-page a { color: #fff; text-decoration: none; display: block; padding: .25rem; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, main, footer { display: block; }
  a { color: #000; text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
  .content { background: #fff; border: 1px solid #ccc; }
}

/* Responsive helpers */
@media (min-width: 640px) {
  .container { padding: 0 1.25rem; }
}
@media (min-width: 768px) {
  article { gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Accessibility: ensure high contrast for text over glass */
@media (prefers-color-scheme: dark) {
  body, .content, .product-ad, .sponsored-page { color-scheme: dark; }
}