/* Base Theme Tokens */
:root{
  --bg: #0b1b15;
  --bg-2: #0a2b1e;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.12);
  --text: #eafff7;
  --muted: #b7f2df;
  --accent: #13e3b1;
  --accent-2: #2ff0d0;
  --ring: 0 0 0 3px rgba(46, 255, 214, 0.6);
  --radius: 12px;
}

/* Reset & helpers */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { line-height: 1.15; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(11,33,26,.95), rgba(8,24,18,.95) 60%, rgba(6,18,12,.95)),
    radial-gradient(circle at 25% -5%, rgba(34,120,90,.25), transparent 40%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 2px, transparent 2px 4px);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
  text-shadow: 0 0 0 transparent;
}
img { max-width: 100%; display: block; }

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

/* Header / Hero */
header { padding: 2rem 1rem; text-align: center; }
header h1 { font-size: clamp(1.75rem, 2.8vw + 1rem, 3.25rem); line-height: 1.15; margin: 0 0 .25rem; font-weight: 700; letter-spacing: .2px; color: var(--text); }
header .meta { color: var(--muted); font-size: clamp(.8rem, .6vw + .6rem, 1rem); margin-top: .25rem; }

/* Subtle glassy header accent (optional) */
header, main, footer { position: relative; z-index: 0; }

/* Main content area with frosted panels for depth */
main { padding: 1rem; }
article {
  max-width: clamp(640px, 88vw, 980px);
  margin: 0 auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(12, 40, 28, 0.22);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
@supports not (backdrop-filter: blur(12px)) {
  article { background: rgba(12,40,28,0.60); }
}
.featured-image { margin: 1rem 0 1.25rem; }

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

/* Typography & content defaults */
h2, h3 { color: var(--text); margin: .75rem 0 0.5rem; }
p { color: var(--text); margin: .5rem 0 1rem; line-height: 1.6; }
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

/* Glassy section supports for other content blocks */
.content { padding: 0; }

/* Utility grid & card system */
.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.3); }

/* Badges / tags */
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  line-height: 1;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
}

/* Link and button styles (accessible focus) */
a, button { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-2); text-decoration: none; background: transparent; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
button { font-family: inherit; cursor: pointer; }
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); color: #eafff9; text-decoration: none;
  font-weight: 600; font-size: 1rem; line-height: 1; transition: transform .2s ease, background .2s ease, border-color .2s;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, rgba(34, 209, 175, 0.95), rgba(0, 174, 147, 0.95));
  border: 1px solid rgba(255,255,255,.40);
  color: #041a16;
  text-shadow: 0 1px 0 rgba(255,255,255,.15);
}
.btn.secondary {
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(46, 255, 214, 0.9);
  color: var(--text);
}
.btn:focus-visible, .cta:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* Footer & ad sections */
footer {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  justify-items: center;
  align-items: center;
  text-align: center;
  color: var(--muted);
}
.product-ad, .sponsored-page {
  width: min(100%, 420px);
  padding: .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
}
.product-ad p, .sponsored-page p { margin: .25rem 0 0; color: var(--text); }

/* Print accessibility */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; }
}

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