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

/* Theme variables */
:root {
  --bg1: #2b1f0b;
  --bg2: #3b2b1a;
  --paper: #f0e6d2;
  --ink: #e8e8e8;
  --silver: #cbd5e1;
  --accent: #7bdcff;
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.25);
}

/* Page background: parchment vibe with subtle grain */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--ink);
  background: linear-gradient(135deg, #2b1f0b 0%, #3b2b1a 60%, #2b1f0b 100%);
  /* parchment-like specks */
  background-image:
    radial-gradient(circle at 10px 10px, rgba(255,255,255,.04) 0 2px, transparent 2px),
    radial-gradient(circle at 60px 60px, rgba(0,0,0,.04) 0 2px, transparent 2px);
  background-size: 80px 80px, 80px 80px;
  min-height: 100%;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Frosted glass look helper for panels */
.frost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}

/* Header as hero area (mobile-first) */
header {
  padding: 1.25rem;
  display: grid;
  gap: 0.25rem;
  align-items: start;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.25);
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  color: #f5f5f5;
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}
header h1 {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.8rem;
  margin: 0;
  line-height: 1.15;
  color: #f0f4f8;
  letter-spacing: .5px;
}
header .meta {
  font-size: 0.92rem;
  color: #e6e6e6;
  opacity: .95;
}

/* Main content */
main {
  padding: 1rem;
}
article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem;
}
.featured-image {
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.featured-image img {
  display: block;
  width: 100%;
  height: auto;
}
article p {
  color: #e9ecef;
  margin: 1rem 0;
}
article p a {
  color: #dbeafe;
  text-decoration: none;
  border-bottom: 1px dotted rgba(221,243,255,.6);
}
article p a:hover { text-decoration: underline; }

/* Footer / CTA area */
footer {
  padding: 1rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--silver);
}
.product-ad {
  display: inline-block;
  padding: .75rem;
  border-radius: 10px;
  width: min(100%, 720px);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
}
.product-ad h3 { margin: 0 0 .5rem; font-size: 1rem; }
.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .65rem 1.1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.5);
  background: linear-gradient(135deg, rgba(230,240,255,.25), rgba(230,240,255,.05));
  color: #eaf2ff;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: inset 0 0 6px rgba(0,0,0,.25);
}
.product-ad a:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.product-ad a:focus-visible { outline: 3px solid #a8d0ff; outline-offset: 2px; }
footer p { margin: .75rem 0 0; font-size: .9rem; color: #d9d9d9; }

/* First-letter emphasis for class-content paragraphs */
p.content:first-letter {
  font-weight: 700;
  font-size: 1.5em;
  color: #f0f0f0;
  margin-right: .02em;
}

/* Responsiveness (mobile-first) */
@media (min-width: 600px) {
  header { padding: 1.6rem 2rem; }
  header h1 { font-size: 2.25rem; }
  main { padding: 1.5rem 2rem; }
  article { padding: 0; }
  article p { font-size: 1.02rem; }
}
@media (min-width: 980px) {
  header { padding: 2rem 3rem; }
  header h1 { font-size: 2.75rem; }
}