:root {
  --bg: #000;
  --bg2: #0a0a0a;
  --text: #e8e8e8;
  --muted: #b5b5b5;
  --coral: #ff6f61;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #000 0%, #0a0a0a 60%, #000 100%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 0 0 rgba(0,0,0,0);
}

/* Accessible link focus */
a:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

a { color: var(--coral); text-decoration: none; }

header {
  margin: 20px auto;
  padding: 22px;
  width: min(1100px, 94%);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 40px rgba(0,0,0,0.55);
}

header h1 {
  font-size: clamp(28px, 6vw, 52px);
  margin: 0 0 6px;
  line-height: 1.02;
  letter-spacing: .5px;
  color: #fff;
  background: linear-gradient(90deg, #fff, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(255, 111, 97, 0.6);
  text-transform: none;
}

header h1:hover {
  filter: hue-rotate(-5deg);
}

header .meta {
  font-size: 0.92rem;
  color: #eaeaea;
  opacity: 0.95;
}

main { padding: 6px 16px 40px; }

article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 8px;
}

.featured-image {
  display: grid;
  place-items: center;
  padding: 8px;
  margin: 14px 0 8px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: saturate(1.05);
}

/* Article text */
article p { color: #e9e9e9; font-size: 1rem; margin: 1em 0; text-wrap: pretty; }

/* Frosted glass sections for text blocks to enhance hacker/cyberpunk feel */
article > p {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.5em 0.75em;
  border-radius: 8px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* First-letter styling for required rule */
p.content:first-letter {
  font-weight: 700;
  font-size: 2em;
  color: var(--coral);
  display: inline-block;
  line-height: 1;
  margin-right: 2px;
  transform: translateY(-2px);
}

/* Footer styling with a clear CTA */
footer {
  padding: 18px 16px 40px;
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.45);
  color: #ddd;
}

.product-ad {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
}
.product-ad h3 {
  font-size: 1.05rem;
  margin: 0;
  color: #fff;
}
.product-ad a {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
}
.product-ad a p { margin: 0; padding: 0; color: #fff; }

/* Small footer note */
footer p { text-align: center; color: #bbb; margin: 12px 0 0; }

/* Responsive tweaks */
@media (min-width: 768px) {
  article { padding: 0 12px; }
  header { padding: 28px; }
  header h1 { font-size: clamp(34px, 3.5vw + 28px, 64px); }
  .featured-image { padding: 12px; }
}

/* Subtle cyberpunk glow on key elements for atmosphere */
header, .product-ad, article p {
  text-shadow: 0 0 6px rgba(255,255,255,0.04);
}
button, [role="button"] { cursor: pointer; }

/* Ensure small page stays readable on very narrow devices */
@media (max-width: 420px) {
  .product-ad { grid-template-columns: 1fr; }
  .product-ad a { justify-self: start; }
}
