:root {
  /* Tokenized palette derived from turquoise + beige */
  --bg: #0b0f12;
  --bg-2: #0e1410;
  --text: #e8fff7;
  --muted: #a8c6b3;
  --accent: #2ee0d6;       /* turquoise */
  --accent-2: #d8c49a;     /* beige */
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --focus: 2px solid #2ee0d6;
}

html, body {
  height: 100%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Layered background: turquoise dot pattern + subtle gradient */
  background-image:
    radial-gradient(circle at 0 0, rgba(46, 224, 214, 0.55) 1px, transparent 1px),
    radial-gradient(circle at 8px 8px, rgba(46, 224, 214, 0.55) 1px, transparent 1px),
    linear-gradient(135deg, rgba(6,10,12,0.9), rgba(6,10,12,0.95)),
    linear-gradient(#0b0f12, #0b0f12);
  background-size: 16px 16px, 16px 16px, cover, cover;
  background-blend-mode: screen, screen, normal, normal;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* Subtle scanline overlay for depth (no external assets) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 1px, rgba(0,0,0,0.05) 1px 2px);
  opacity: 0.45;
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.08) 100%);
  mix-blend-mode: multiply;
  opacity: 0.25;
}

/* Layout containers (responsive, centered with clamp) */
.container {
  width: 100%;
  max-width: clamp(320px, 88vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Sections with glass-like panels (fallback included) */
header, main, footer {
  display: block;
}

header {
  padding: 1.75rem 0;
  text-align: center;
  /* glass panel styling with accessible contrast */
  background: rgba(12, 18, 18, 0.30);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 14px;
  margin: 1rem auto;
  width: min(1100px, 92%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(10px)) {
  header {
    background: rgba(12, 18, 18, 0.70);
  }
}

header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.8rem);
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

/* Main content area */
main {
  padding: 1rem 0;
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: min(100%, 720px);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  padding: 0.25rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.02);
  border-radius: 12px;
}
article { display: block; }

/* Content wrapper (used for potential text blocks) */
.content {
  color: var(--text);
  padding: 0.75rem 0;
  max-width: 72ch;
  margin: 0 auto;
}
.content p { color: var(--muted); }

/* Footer with multiple panels + copyright */
footer {
  padding: 1.25rem 0 2rem;
  display: grid;
  gap: 1rem;
  place-items: center;
}
.product-ad, .sponsored-page {
  width: min(100%, 520px);
  border-radius: 12px;
  padding: .75rem;
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .25s ease, background-color .25s ease;
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
}
.product-ad:hover, .sponsored-page:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.12);
}
footer p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

/* Utility components used by the page and adaptable to future content */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(46, 224, 214, .18);
  color: var(--text);
  border: 1px solid rgba(46, 224, 214, .4);
}

/* Link, button, .btn, .cta styling with strong focus states */
a, button, .btn, .cta {
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  padding: .75em 1.1em;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
  outline: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  text-decoration: underline;
}
.btn {
  background: var(--accent);
  color: #062725;
  border-color: rgba(0,0,0,.15);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(46,224,214,.6);
}
.btn:active, .cta:active {
  transform: translateY(1px) scale(0.98);
}
.cta {
  background: rgba(46,224,214,.22);
  border: 1px solid rgba(46,224,214,.6);
  color: var(--text);
}
a:focus-visible {
  text-decoration: underline;
}
a:focus { outline: none; }

/* Images: ensure frame + glow styling is preserved on tiny screens */
@media (max-width: 640px) {
  .image-frame { width: 100%; }
  header { border-radius: 12px; }
}

/* Typography: tighten line-height for readability on small screens */
@media (max-width: 420px) {
  html, body { font-size: 15px; }
  header h1 { font-size: 1.9rem; }
}

/* Light mode adjustments for legibility (prefers-color-scheme) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f2e7;
    --bg-2: #f0e7d6;
    --text: #1a1a15;
    --muted: #5a5a4a;
    --accent: #1a9e9e;
    --accent-2: #c59a6e;
    --surface: rgba(0,0,0,0.05);
    --surface-2: rgba(0,0,0,0.08);
  }
  body {
    background-image:
      radial-gradient(circle at 0 0, rgba(26,158,158,0.15) 1px, transparent 1px),
      radial-gradient(circle at 8px 8px, rgba(26,158,158,0.15) 1px, transparent 1px),
      linear-gradient(135deg, #f0f2f4, #f7f2e7);
    background-blend-mode: screen, screen, normal;
  }
  header, footer {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.08);
  }
  .btn { background: var(--accent); color: #062522; }
  .cta { background: rgba(26,158,158,.28); border-color: rgba(26,158,158,.6); }
  .image-frame { background: rgba(255,255,255,.9); border-color: rgba(0,0,0,.08); }
}

/* Print styles: basic readability */
@media print {
  html, body { background: #fff; color: #000; }
  body { -webkit-print-color-adjust: exact; }
  header, main, footer { page-break-inside: avoid; }
  a, .btn, .cta { color: #000; text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}
