/* Global reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

/* Theme variables */
:root {
  --fg: #eaffff;
  --muted: rgba(234, 255, 255, 0.85);
  --cyan: #00e5ff;
  --cyan-dark: #00c9e6;
  --glass: rgba(255, 255, 255, 0.08);
  --edge: rgba(0, 255, 255, 0.6);
  --radius: 14px;
}

/* Teal diagonal lines background + cyberpunk vibe */
body {
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  line-height: 1.6;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background:
    radial-gradient(circle at 20% -10%, rgba(0, 230, 255, .15), transparent 40%),
    linear-gradient(#0a1b1b, #0a1b1b 60%, #0a1b1b),
    repeating-linear-gradient(135deg, rgba(0, 170, 170, .25) 0 8px, rgba(0,0,0,0) 8px 16px);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Light reset for borders and focus */
a, button { border: none; text-decoration: none; color: inherit; background: none; }

/* Header as hero-ish, frosted glass feel */
header {
  text-align: center;
  padding: 1.75rem 1rem;
  margin: 0 auto;
  max-width: 1100px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.25);
  background: rgba(2, 6, 18, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}

header h1 {
  font-size: clamp(2rem, 4vw + 1rem, 4rem);
  line-height: 1.04;
  margin: 0.25rem 0 0.5rem;
  background: linear-gradient(90deg, #aaffff, #00e5ff 60%, #aaffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

header .meta {
  color: rgba(230, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Main content area centers the frosted glass article */
main {
  display: grid;
  place-items: center;
  padding: 1rem;
}

article {
  width: 100%;
  max-width: 900px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #eaffff;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 0.25rem 0 1rem;
}

/* Article text */
article p { color: rgba(235, 255, 255, 0.95); font-size: 1rem; margin: 0.75rem 0; }

/* First-letter styling for p.content as required */
p.content:first-letter {
  font-weight: 700;
  font-size: 2em;
  float: left;
  line-height: 1;
  padding-right: 0.15em;
  color: #eaffff;
}

/* Footer with CTA and product ad styling (prominent CTAs) */
footer {
  width: min(1100px, 92%);
  margin: 2rem auto;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.product-ad {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 520px;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad h3 { margin: 0.25rem 0 0.5rem; color: #dffcff; }

.product-ad a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(0, 230, 255, 0.25);
  color: #eaffff;
  text-decoration: none;
  border: 1px solid rgba(0, 255, 255, 0.6);
  transition: transform 0.2s ease;
}
.product-ad a:hover { transform: translateY(-1px); background: rgba(0, 230, 255, 0.35); }

footer p {
  font-size: 0.9rem;
  color: rgba(230, 255, 255, 0.8);
}

/* Focus styles for accessibility on interactive elements */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Small screens: mobile-first defaults already set; tune typography slightly */
@media (min-width: 600px) {
  article { padding: 1.25rem 1.5rem; }
  header { padding: 2rem 1rem; }
}

@media (min-width: 900px) {
  main { padding: 2rem; }
  article { padding: 2rem; }
  header { padding: 2.25rem 1rem; }
}

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