/* Mobile-first, single stylesheet for turquoise sunset / gold hacker-themed landing page */

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { line-height: 1.15; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #eaf6f2;
  background: linear-gradient(135deg, #2bd6cb 0%, #1fb2c3 25%, #1671a0 50%, #f2c24e 75%, #e6a428 100%);
  min-height: 100svh;
  padding: 1rem;
}

/* Theme colors for easy tweaking */
:root {
  --gold: #ffd166;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.22);
  --text: #eaf6f2;
  --muted: rgba(234, 246, 242, 0.85);
}

/* Layout containers */
header, main, footer { width: 100%; }
header { text-align: center; padding: 0.8rem 0 1.25rem; }
main { display: grid; justify-items: center; padding: 0.5rem 0 1rem; }
footer { padding: 1rem 0 0.25rem; }

/* Hero title styling */
header h1 {
  margin: 0.25rem 0 0.25rem;
  font-size: clamp(1.6rem, 3.2vw + 0.5rem, 2.8rem);
  line-height: 1.1;
  letter-spacing: .4px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
header .meta {
  font-size: .88rem;
  color: rgba(255,255,255,.85);
  margin-top: .25rem;
  letter-spacing: .2px;
}

/* Frosted glass article container (hero content) */
article {
  width: min(68ch, 94%);
  padding: 1rem;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  color: var(--text);
}
.featured-image { margin: .25rem 0 0.75rem; }
.featured-image img { width: 100%; height: auto; border-radius: 12px; display: block; }

/* Article text styling */
article p { color: #eaf6f2; margin: 0.95rem 0; font-size: 1rem; line-height: 1.75; }
article p + p { margin-top: 0.6rem; }

/* First-letter styling for p.content (if present) */
p.content:first-letter {
  font-weight: 700;
  font-size: 2em;
  color: var(--gold);
  float: left;
  padding-right: .15em;
  line-height: 1;
  margin: .05em 0;
}

/* Links and CTAs with accessible focus */
a { color: var(--gold); text-decoration: none; border-bottom: 1px dotted rgba(255, 214, 102, .6); }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Featured product area in footer as a frosted glass card with a CTA */
.product-ad {
  background: rgba(8, 16, 28, 0.55);
  border: 1px solid rgba(255,255,255,.22);
  padding: .95rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  gap: .5rem;
}
.product-ad h3 {
  font-size: 1.02rem;
  margin: 0;
}
.product-ad a {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,213,102,.25), rgba(0,0,0,.15));
  color: #fff;
  border: 1px solid rgba(255,213,102,.6);
  transition: transform .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); text-decoration: none; }
.product-ad a p { margin: 0; padding: 0; }

/* Footer text */
footer p {
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  margin: .4rem 0 0;
}

/* Responsive tweaks */
@media (min-width: 720px) {
  article { width: min(720px, 92%); padding: 1.25rem; }
  header h1 { font-size: clamp(1.9rem, 2.5vw + 1rem, 3rem); }
  .product-ad { grid-template-columns: 1fr; }
}

/* Accessibility helpers for high-contrast test (optional) */
@media (prefers-color-scheme: dark) {
  /* Adjust slightly for dark preferences if needed in future */
}
