/* Base tokens */
:root{
  --bg: #00f5d4;
  --bg-2: #0a0a0a;
  --text: #eaffff;
  --muted: #b8fff6;
  --accent: #ff2d9c; /* hot pink */
  --accent-2: #00f5d4; /* bright turquoise */
  --surface: rgba(255,255,255,0.14);        /* frosted glass */
  --surface-2: rgba(0,0,0,0.25);
  --border: rgba(255,255,255,0.32);
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --focus: 0 0 0 3px rgba(0,255,212,.65);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
}

/* Helpers / Global reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.5;
  min-height: 100vh;

  /* Layered turquoise parchment background with subtle noise/scanlines */
  background-color: #00f5d4;
  background-image:
    radial-gradient(circle at 20% -10%, rgba(0,0,0,.20), transparent 28%),
    linear-gradient(135deg, rgba(0,0,0,.18), rgba(0,0,0,0) 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, rgba(0,255,208,.15), rgba(255,0,140,.15)),
    /* base turquoise fill */
    #00f5d4;
  background-blend-mode: overlay, overlay, normal, normal, normal;
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1200px);
  margin-inline: auto;
  padding-inline: 4vw;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Glass panel fallback for environments without backdrop-filter */
@supports not (backdrop-filter: blur(8px)) {
  .glass { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
}
.glass {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Section styling to reflect layout targets in provided HTML */
header, main, footer, aside, article {
  display: block;
}

/* Header styling */
header {
  padding: 1.5rem 0;
  text-align: center;
}
header h1 {
  font-size: clamp(1.6rem, 6vw, 2.75rem);
  margin: 0;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--text);
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}

/* Main content area */
main { padding: 1.75rem 0; }

/* Image frame & image styling */
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  display: grid;
  place-items: center;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Subtle glow to emphasize subject without heavy shadows */
  filter: saturate(1.05);
}
.image-frame:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,255,212,.6); }

/* Section for content blocks (generic) */
.content { padding: 0; }

/* Product ad block (footer area in provided HTML) */
.product-ad {
  display: block;
  text-align: center;
  margin: 1rem auto;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.product-ad a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 8px;
}
.product-ad a:hover, .product-ad a:focus-visible {
  text-decoration: underline;
  outline: none;
}
.product-ad p { margin: 0; }

/* Simple powered-by sections for layout parity */
.sponsored-page { text-align:center; margin: .5rem 0; }

/* Link and button styles (global) */
a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover, a:focus { text-decoration: underline; }

/* Button / CTA / .btn / .cta utilities */
.btn, button, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.15);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  font: inherit;
}
.btn:hover, button:hover, .cta:hover {
  transform: translateY(-1px);
  background: rgba(0,0,0,.25);
}
.btn:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.btn.primary {
  background: linear-gradient(135deg, rgba(0,255,212,.9), rgba(0,255,212,.7));
  border: 1px solid rgba(0,255,212,.9);
  color: #002018;
}
.btn.outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--text);
}
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.25); color: var(--text); }

/* Typography scaling */
h1, h2, h3, h4 {
  margin: .25rem 0;
}
p { margin: .25rem 0 0; }

/* List styling */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Utility / primitive helpers (grid, card, tag) */
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75em;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.38);
  color: var(--text);
}

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

/* Print styles for basic readability */
@media print {
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}
