/* ==========================================================================
   Facts Don't Make Friends — Style (Restored to match indexSUNDAY.html)
   ========================================================================== */

/* ------------------ Fonts ------------------ */
@font-face {
  font-family: 'Alfa Slab One';
  src: url('/fonts/AlfaSlabOne-Regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('/fonts/LibreBaskerville-Regular.woff2') format('woff2');
  font-display: swap;
}

/* ------------------ Base ------------------ */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  background: #f9f7f2 url('https://www.transparenttextures.com/patterns/old-wall.png');
  color: #222;
  font-family: "Libre Baskerville", serif;
  text-align: center;
  overflow: hidden;
}

/* ------------------ Loader ------------------ */
#loader {
  position: fixed;
  inset: 0;
  background: #111;
  color: #0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  z-index: 1000;
  transition: opacity 0.6s ease;
}
#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}
#loader .message {
  margin-bottom: 0.5rem;
}
#loader .spinner {
  width: 1ch;
  margin-left: 0.25ch;
  text-align: center;
}

/* ------------------ Content ------------------ */
main.content {
  opacity: 0;
  transition: opacity 1s ease;
  padding: 2rem;
}
main.content.visible {
  opacity: 1;
}

/* ------------------ Logo ------------------ */
.logo {
  margin: 2rem auto 1rem;
  width: 220px;
  height: 220px;
  background: url('/img/factsdontmakefriendslogo.png') no-repeat center center;
  background-size: contain;
  position: relative;
  transition: transform 0.3s ease;
}
.logo::before,
.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0.4;
  mix-blend-mode: screen;
  transition: all 0.3s ease;
}
.logo::before { filter: contrast(120%) hue-rotate(-20deg); }
.logo::after  { filter: contrast(120%) hue-rotate(40deg); }
.logo:hover::before { transform: translate(-2px, -1px); }
.logo:hover::after  { transform: translate(2px, 1px); }
.logo:hover { transform: scale(1.03); }

/* ------------------ Typography ------------------ */
h1 {
  font-family: "Alfa Slab One", sans-serif;
  font-size: 2.8rem;
  color: #111;
  text-transform: uppercase;
  margin: 1rem 0 0.5rem;
  letter-spacing: 1px;
}
.subtitle {
  color: #006A71;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
p {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: #333;
}

/* ------------------ Post Preview ------------------ */
.post-preview {
  max-width: 640px;
  margin: 2rem auto;
  text-align: left;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.post-preview h2 {
  font-family: "Alfa Slab One", sans-serif;
  font-size: 1.6rem;
  margin-top: 0;
  color: #222;
}
.post-preview h2 a {
  text-decoration: none;
  color: inherit;
}
.post-preview h2 a:hover {
  color: #006A71;
}
.post-preview .subtitle {
  font-size: 1rem;
  color: #006A71;
  margin: 0.25rem 0 0.75rem;
}

/* ------------------ Footer ------------------ */
.footer {
  margin-top: 4rem;
  font-size: 0.85rem;
  color: #666;
}

/* ------------------ Accessibility ------------------ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #006A71;
  color: #fff;
  padding: 0.5rem;
  z-index: 10000;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 10px;
}

/* ------------------ Responsive ------------------ */
@media (max-width: 600px) {
  .logo {
    width: 160px;
    height: 160px;
  }
  h1 { font-size: 2.2rem; }
  main.content { padding: 1rem; }
}
