:root{
  --bg: #041414;
  --bg-2: #0a1f1f;
  --text: #eaffff;
  --muted: #a6f0ee;
  --accent: #10e0c0;      /* teal */
  --accent-2: #ff2a5a;    /* scarlet */
  --glass: rgba(16, 212, 175, 0.22);
  --glass-border: rgba(16, 212, 175, 0.40);
  --surface: rgba(6, 18, 18, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,0.25);
  --radius: 12px;
}

html, body { height: 100%; }
* { box-sizing: border-box; }

html, body, header, nav, main, article, footer, aside {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(0, 120, 120, 0.25), rgba(0,0,0,0.25)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 4px),
    #041414;
  background-blend-mode: overlay;
}

/* Layout scaffolding */
.container { width: 100%; max-width: clamp(28rem, 68vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

header { padding: 1.25rem 1rem; text-align: center; }
header h1 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.8rem); margin: .25rem 0; line-height: 1.08; }
header .meta { font-size: clamp(0.9rem, 0.8vw + .6rem, 1.05rem); color: var(--muted); margin-top: .25rem; }

nav { margin-top: .5rem; display: inline-block; }
nav a { display: inline-block; padding: .35rem .6rem; border-radius: 6px; text-decoration: none; color: var(--text);
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.25); }

main { padding: 1rem; }
article { display: block; max-width: 900px; margin: 0 auto; }

/* Image frame styling */
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 6px 18px rgba(0,0,0,0.25); background: #0b0b0b; margin: .75rem 0; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glass panel base (fallback + blur when supported) */
.card, .content {
  background: rgba(6, 18, 18, 0.22);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card, .content { background: rgba(6, 18, 18, 0.66); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.block { display: block; }

/* Content helpers */
.content { margin: 1rem 0; color: #eaffff; }
.content h2, .content h3 { margin-top: .75rem; color: #eaffff; }
.content p { margin: .5rem 0; }

/* Lists and typography refinements */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Image caption/link accessories */
blockquote { border-left: 3px solid var(--accent); padding-left: .75rem; margin: .75rem 0; color: var(--text); }

/* Grid utilities for responsive layouts */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Utility & component classes required by the page */
.product-ad { display: inline-block; vertical-align: top; margin: .25rem; padding: .6rem .8rem;
  border-radius: 8px; background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.3); text-align: center; }
.product-ad a { color: var(--text); text-decoration: none; display: block; }

/* Link and button styles (interactive states + accessibility) */
a, button, .btn, .cta {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  padding: .6rem 1rem;
  color: #fff;
  background: rgba(0,0,0,0.25);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
a:hover, button:hover { transform: translateY(-1px); }
.btn { display: inline-block; }
.btn.primary { background: var(--accent-2); border-color: rgba(255,42,90,0.6); color: #fff; }
.btn.primary:hover { background: #e61e53; transform: translateY(-1px); }
.btn.outline { background: transparent; border: 1px solid rgba(0, 234, 208, 0.8); color: #eaffff; }
.btn.outline:hover { background: rgba(0, 234, 208, 0.15); }

/* Focus visibility for accessibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Text link emphasis on focus/hover for accessibility */
a:focus-visible { text-decoration: underline; outline: none; }

/* Layout helpers for a compact center-aligned page */
footer { padding: 1rem; text-align: center; }
footer p { margin: .5rem 0; color: var(--muted); }

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

/* Typography scale (fluid) */
h1 { font-size: clamp(1.6rem, 4vw + 1rem, 2.6rem); line-height: 1.08; margin: 0.25rem 0; }
h2 { font-size: clamp(1.25rem, 2vw + 0.75rem, 1.75rem); margin: .75rem 0 .25rem; }
h3 { font-size: clamp(1.05rem, 1.5vw + .5rem, 1.25rem); margin: .5rem 0; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}