/* Section: Theme + Global */

:root {
  --rose-1: #b76e6e;
  --rose-2: #e6a087;
  --rose-3: #8a3b2f;
  --blue-1: #4cc3ff;
  --blue-2: #7bd0ff;
  --bg: #0b0f14;
  --bg-2: #14182b;
  --text: #eaf5ff;
  --muted: #a7b8d8;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.25);
  --gap: 1rem;
  --focus: var(--blue-2);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html, body, header, nav, main, article, footer, aside { scroll-behavior: smooth; }

/* Section: Base + Layout (Mobile-first) */

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: #000;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layered background: gradient + subtle scanlines/noise (pure CSS) */
  background-color: #0b0f14;
  background-image:
    linear-gradient(135deg, rgba(183,110,110,0.25) 0%, rgba(14,20,40,0.5) 60%, rgba(9,9,12,0.75) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    linear-gradient(to bottom right, #0b0f14 0%, #0b0f14 60%, #0b0f1a 100%);
  background-blend-mode: overlay, overlay, normal;
}

/* Light top-level container sizing, centered content */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Section: Typography scale */
h1, h2, h3 {
  color: var(--text);
  line-height: 1.25;
}
h1 { font-size: clamp(1.4rem, 1.5rem + 2vw, 2.6rem); margin: 0.25rem 0 0.5rem; }
h2 { font-size: clamp(1.25rem, 0.9vw + 1rem, 2rem); margin: 0.5rem 0 0.25rem; }
h3 { font-size: clamp(1rem, 0.7vw + 0.9rem, 1.35rem); margin: 0.5rem 0 0.25rem; }

p { margin: 0.75rem 0; color: rgba(234,245,255,0.92); }
strong { color: #fff; }

/* Section: Header + Nav */

header {
  padding: 1.25rem 1rem;
  text-align: center;
}
header h1 { font-weight: 700; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* Section: Navigation links (back) */
nav {
  margin-top: 0.25rem;
}
nav a {
  color: var(--blue-1);
  text-decoration: none;
  padding: .4rem .65rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
}
nav a:hover { text-decoration: underline; color: var(--blue-2); }

/* Section: Main content layout */

main { padding: 0 0 1.25rem; }

.featured-image {
  margin: 1rem auto;
  max-width: 900px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.featured-image img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Article content grid / panels (glass) */
article {
  display: block;
  padding: 0 0 1rem;
}
.content { padding: 0; }

/* Section: Glass panels (cards) */
.card, .product-ad, .sponsored-page {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.card { /* generic glass card */ }
.product-ad, .sponsored-page { text-align: center; }

/* Fallback for no backdrop-filter environments */
@supports not (backdrop-filter: blur(8px)) {
  .card, .product-ad, .sponsored-page {
    background: rgba(16, 20, 40, 0.8);
  }
}

/* Subtle image frame style */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  margin: 0 auto;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.04);
}

/* Section: Lists */
ul, li { margin: 0.5rem 0; padding-left: 1.25rem; }
li { color: rgba(234,245,255,0.92); }

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

/* Button variants */
.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .15s ease, background .2s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--rose-2), var(--rose-1));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(183,110,110,.35);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.outline {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(124, 210, 255, .7);
  color: var(--text);
}
.btn:active { transform: translateY(0); }

/* Utility: small pills / tags */
.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(76,195,255,0.25);
  border: 1px solid rgba(76,195,255,0.5);
}

/* Section: Layout utilities (grid) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.container { padding-inline: 1rem; }

/* Section: Footer / ads */
footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,.15);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}
footer p { color: var(--muted); font-size: 0.9rem; text-align: center; }

/* Footer panels arrangement on wide screens */
@media (min-width: 860px) {
  footer {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
  .product-ad, .sponsored-page { text-align: center; }
}

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  header, main, footer { padding: 0.5rem 0; }
  .featured-image { page-break-inside: avoid; }
}

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

/* Section: HTML element-specific (targeted) */

html { line-height: 1.5; }
body, header, nav, main, article, footer, aside { display: block; }