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

:root {
  --bg: #0a0b0f;
  --fg: #eae6ea;
  --muted: #b9b9bd;
  --glass: rgba(255, 255, 255, 0.08);
  --maroon: #8a1e2b;
  --maroon-dark: #6b0f1a;
  --ring: 0 0 0 3px rgba(139, 28, 42, 0.75);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--fg);
  background-color: var(--bg);
  /* gray low-poly triangles background (tileable) */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'>\
  <polygon points='0,0 50,0 0,50' fill='%231f1f1f'/>\
  <polygon points='50,0 100,0 100,50' fill='%232a2a2a'/>\
  <polygon points='0,50 0,100 50,100' fill='%232f2f2f'/>\
  <polygon points='50,50 100,50 50,100' fill='%233a3a3a'/>\
</svg>");
  background-repeat: repeat;
  background-size: 40px 40px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

header {
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(14, 14, 20, 0.62);
  backdrop-filter: blur(6px) saturate(110%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

header h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.05;
  color: #f9f0f2;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(139, 28, 42, 0.55);
  font-weight: 800;
}

header .meta {
  font-size: 0.92rem;
  color: #d8d6da;
  opacity: 0.95;
  letter-spacing: .2px;
}

main {
  padding: 1rem;
}

article {
  max-width: 860px;
  margin: 1rem auto;
  padding: 1.25rem;
  background: rgba(15, 15, 22, 0.62);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 40px rgba(0, 0, 0, 0.35);
  color: #e9e9e9;
}

.featured-image {
  margin: 0 0 1rem;
  text-align: center;
}

.featured-image img {
  width: 100%;
  height: auto;
  max-width: 760px;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-ad {
  background: rgba(16, 16, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.75rem;
  margin: 1rem auto;
  width: min(92%, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.product-ad h3 {
  font-size: 1.05rem;
  margin: 0.25rem 0;
}

.product-ad a {
  text-decoration: none;
  color: inherit;
}

.product-ad a p {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--maroon);
  color: #fff;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 6px 14px rgba(138, 30, 42, 0.6);
  transition: transform 0.15s ease, background 0.2s ease;
}
.product-ad a p:hover {
  transform: translateY(-1px);
  background: #a61d2f;
}
.product-ad a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Focus for general links (accessibility) */
a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Small screens: readable, stacked layout by default (mobile-first) */
@media (min-width: 600px) {
  main { padding: 1.5rem 2rem; }
  article { padding: 1.5rem; }
  .product-ad { flex-direction: row; align-items: center; justify-content: center; }
  .product-ad a { display: inline-block; }
  .product-ad a p { padding: 0.9rem 1.2rem; }
}

/* Larger screens: airy hero, larger typography, stronger glass effect */
@media (min-width: 900px) {
  header { padding: 3rem 2rem; }
  header h1 { font-size: clamp(2.5rem, 3.5vw + 2rem, 4.8rem); }
}