/* Theme Tokens */
:root {
  --bg: #041e1f;
  --bg-2: #0a2a3a;
  --text: #e6fffe;
  --muted: #9ee8e8;
  --accent: #2bd7c7;
  --accent-2: #22b8a0;
  --card: rgba(8, 20, 40, 0.28);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.40);
  --radius: 14px;
  --focus: 2px solid rgba(43, 215, 199, 0.95);
}

/* Base / Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(3, 56, 58, 0.90) 0%, rgba(6, 22, 40, 0.92) 60%, rgba(3, 20, 28, 0.92) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

/* Layout scaffolding */
html, body, header, nav, main, article, aside, footer {
  display: block;
}
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Glass panels (with graceful fallback) */
.header-glass,
.content,
.card,
.product-ad {
  background: rgba(8, 20, 40, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: var(--shadow);
  -webkit-box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  .header-glass,
  .content,
  .card,
  .product-ad {
    background: rgba(8, 20, 40, 0.66);
  }
}
.header-glass { padding: 1rem; }

header { display: block; margin: 1rem auto; max-width: var(--container, 1120px); width: min(1100px, 92%); }
header h1 { margin: 0 0 0.5rem 0; font-size: clamp(1.25rem, 1.2rem + 1.75vw, 2rem); font-weight: 700; color: var(--text); }

/* Navigation within header */
nav { display: block; }
nav a { color: var(--text); text-decoration: none; padding: .25rem .6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.25); }
nav a:hover { text-decoration: underline; background: rgba(255,255,255,0.08); }
nav a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(43, 215, 199, 0.25); }

/* Main content area */
main { padding: 0.75rem 0; }
.article { padding: 0; }

/* Image frame styling */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  display: block;
  background: #000;
  margin: 0 auto;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
  transition: transform 0.25s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Content block (text) */
.content { padding: 1rem; margin-top: 0.75rem; }

/* Product ad / promos */
.product-ad { display: inline-block; padding: 0; margin: 0.5rem; border-radius: 12px; overflow: hidden; }
.product-ad a { display: block; padding: 0.75rem 1rem; color: var(--text); text-decoration: none; }
.product-ad a:hover { background: rgba(0, 255, 255, 0.15); text-decoration: underline; }

/* Buttons and links - solid and outline variants */
a, button, .btn, .cta {
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  outline: none;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.15rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: linear-gradient(135deg, rgba(43,215,199,0.95), rgba(34,184,160,0.95));
  color: #041f1c; font-weight: 700; letter-spacing: .2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.25); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(43,215,199,0.6); outline-offset: 2px; }
.btn--outline {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.55);
}
.btn--outline:hover { background: rgba(255,255,255,0.14); text-decoration: underline; }

/* Link emphasis on focus/hover for accessibility */
a:focus-visible, a:hover { text-decoration: underline; }

/* Utility classes (grid, card, tag) */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.card {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.tag {
  display: inline-block; padding: .25em .6em; border-radius: 999px;
  font-size: .75rem; color: var(--text);
  background: rgba(2,255,255,0.15);
  border: 1px solid rgba(0,255,255,0.35);
}

/* Lists (ul, li) */
ul, li { margin: 0; padding: 0; list-style: none; }

/* Print styles: basic readability */
@media print {
  body { background: white; color: #000; }
  a { text-decoration: underline; }
}

/* Sizing tweaks for readability on narrow screens (mobile-first) */
@media (max-width: 600px) {
  header { padding: 0.75rem; }
  .image-frame { border-radius: 10px; }
  .btn { width: auto; padding: 0.65rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}