:root {
  --bg: #0b0f14;
  --bg-2: #141a20;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --text: #e6f0f7;
  --muted: #a5b0be;
  --accent: #cbd5e1;
  --accent-2: #7b8a9a;
  --focus: #7bdcff;
  --card-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --gap: 1rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  line-height: 1.5;
  background: 
    linear-gradient(135deg, rgba(18,22,28,.95) 0%, rgba(9,12,16,.95) 60%, rgba(6,8,12,.98) 100%),
    linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  color-scheme: dark;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle, accessible focus for all interactive elements */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Layout helpers */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Glass panels with fallback for no backdrop-filter */
.glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255, 255, 255, 0.18); }
}

/* Header, main, footer structure */
header {
  padding: 2rem 1rem;
  text-align: center;
}
header h1 {
  font-size: clamp(1.75rem, 1.2rem + 3vw, 3rem);
  margin: 0.25rem 0 0.25rem;
  letter-spacing: .5px;
  font-weight: 700;
  color: var(--text);
}
nav { padding: 0.5rem 1rem; }

/* Main content area */
main { padding: 2rem 0; display: block; }

article { display: block; padding: 0; }

/* Image frame with aspect ratio, border glow, and object-fit */
.image-frame {
  width: min(92%, 720px);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  box-shadow: 0 6px 28px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
  transform: scale(1);
  transition: transform .6s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Content area within glass panels */
.content {
  padding: 1rem;
  color: var(--text);
}
.content h2 {
  font-size: clamp(1.25rem, 0.6vw + 1rem, 1.75rem);
  margin: 0 0 .5rem;
}
.content p { color: var(--muted); margin: 0 0 0.75rem; }

/* Product ad styling (footer sections) */
.product-ad,
.sponsored-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border-radius: 999px;
  margin: .25rem;
  text-decoration: none;
  min-width: 180px;
}
.product-ad {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
}
.sponsored-page {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.15);
  color: #dbe7f8;
}
.product-ad a, .sponsored-page a { color: inherit; text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; }
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); transition: transform .2s ease; }

/* Link and button styles with accessible focus/hover */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.btn, .cta {
  display: inline-block;
  padding: .75em 1.25em;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, rgba(210,215,235,.95), rgba(180,186,200,.95));
  color: #0b0b0b;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: var(--text);
}
.btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Utility typography helpers */
ul, li { margin: 0; padding: 0; list-style: none; }
li + li { margin-top: .5rem; }

/* Dark-mode friendly light variant */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --bg-2: #e9eef4;
    --surface: rgba(0,0,0,.08);
    --surface-2: rgba(0,0,0,.12);
    --text: #0a1020;
    --muted: #495370;
    --accent: #4b6a84;
    --accent-2: #2b4b66;
    --card-border: rgba(0,0,0,.15);
    --shadow: 0 6px 20px rgba(0,0,0,.15);
  }
  body { background: linear-gradient(135deg, rgba(230,235,240,.95), rgba(240,244,247,.95)); color: var(--text); }
  .image-frame { border-color: rgba(0,0,0,.15); }
  .btn { background: linear-gradient(135deg, #e8ebf0, #d8dde6); color: #0a0a0a; }
  .btn--outline { border-color: rgba(0,0,0,.25); }
}

/* Simple print-friendly tweaks */
@media print {
  body { background: white; color: #000; }
  a { text-decoration: underline; }
}
