/*  CSS: silver parchment background with magenta hacker styling for Ton Acolytes news page  */
/*  Mobile-first, single stylesheet with frosted-glass hero and prominent CTA  */

:root{
  --bg- parchment: #f6f3ec;
  --parchment-2: #eee6d7;
  --magenta-start: #ff2bd9;
  --magenta-end: #b4007a;
  --text: #1b1b1b;
  --muted: #6a5a66;
  --card: rgba(255,255,255,.25);
  --ring: rgba(255,0,140,.6);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0,0,0,.25);
}

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

html, body { height: 100%; margin: 0; }

/* Silver parchment background with subtle texture and magenta accents */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background: linear-gradient(135deg, #f6f2e9 0%, #efe9d8 60%, #f6f2e9 100%);
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.04) 0 2px, transparent 2px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 6px, rgba(0,0,0,0) 6px 12px);
  background-blend-mode: overlay;
  background-attachment: fixed;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
}

/* Subtle parchment watermark */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 10%, rgba(0,0,0,.04) 0 40px, transparent 40px),
              radial-gradient(circle at 80% 40%, rgba(0,0,0,.04) 0 40px, transparent 40px);
  mix-blend-mode: multiply;
  z-index: 0;
}

/* Header (frosted glass / translucent) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: center;
  padding: .6rem 1rem;
  background: rgba(255,255,255,.28);
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(6px);
}
.brand {
  font-weight: 800;
  color: #7a2a76;
  color: #4b0f2a;
  text-shadow: 0 0 8px rgba(255,0,140,.6);
}

/* Layout: center content with a grid container for hero */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 120px);
  position: relative;
  z-index: 1;
}

/* Frosted glass hero panel */
.hero {
  width: 100%;
  max-width: 940px;
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.25rem;
  text-align: center;
}

/* Title and subhead with magenta accents */
.hero h1 {
  font-size: clamp(1.8rem, 4vw + 1rem, 3rem);
  margin: 0;
  color: #2e1a2a;
  text-shadow: 0 0 12px rgba(255,0,140,.6);
}
.subhead {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #5a4b57;
  margin: 0.25rem 0 0;
}

/* Media area: image and CTA using a simple grid */
.hero-media {
  display: grid;
  gap: 20px;
  align-items: center;
  justify-items: center;
}
.hero-media img {
  width: min(92%, 720px);
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.15);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.cta {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b0b0b;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--magenta-start) 0%, var(--magenta-end) 100%);
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.55); }
.cta:focus { outline: none; box-shadow: 0 0 0 4px rgba(255,0,140,.6); }

/* Footer with small advertisement and gratitude */
footer {
  padding: 1rem;
  text-align: center;
  color: #5a4b57;
  font-size: 0.95rem;
  border-top: 1px solid rgba(0,0,0,.08);
  margin-top: 2rem;
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(2px);
}
.footer-ad a {
  color: #7a2a76;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.25);
  background: rgba(255,255,255,.6);
}
.gratitude { margin-top: 6px; }

/* Accessibility: focus-visible */
a.cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
  transform: translateY(-1px);
}

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

/* Desktop tweaks for larger screens */
@media (min-width: 768px) {
  .hero { padding: 2rem; }
  .hero-media { gap: 28px; }
  .hero-media img { width: auto; max-width: 760px; }
}