/*
Theme Name:   BlankSlate Child
Template:     blankslate
Version:      1.0.0
*/
/* Base typography */
body {
  font-family: "Inter", sans-serif; /* or your brand font */
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.015em;
  color: #1f2937; /* Tailwind’s gray-800 */
  background-color: #f7fafc;
  margin: 0;
  padding: 0;
}

/* Responsive font sizes */
/* Headings */
.post-entry h1,
.page-entry h1 {
  font-weight: 800;
  font-size: 1.875rem; /* 30px */
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: #1e40af; /* Tailwind blue-800 */
}

.post-entry h2,
.page-entry h2 {
  font-weight: 700;
  font-size: 1.5rem; /* 24px */
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
  color: #1e40af;
}

.post-entry h3,
.page-entry h3 {
  font-weight: 600;
  font-size: 1.25rem; /* 20px */
  letter-spacing: 0;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.post-entry h4,
.page-entry h4 {
  font-weight: 600;
  font-size: 1.125rem; /* 18px */
  letter-spacing: 0;
  margin-bottom: 0.5rem;
  color: #374151; /* Tailwind gray-700 */
}

.post-entry h5,
.page-entry h5 {
  font-weight: 600;
  font-size: 1rem; /* 16px */
  letter-spacing: 0;
  margin-bottom: 0.5rem;
  color: #4b5563; /* Tailwind gray-600 */
}

.post-entry h6,
.page-entry h6 {
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
  color: #6b7280; /* Tailwind gray-500 */
}

/* Paragraphs */
.post-entry p,
.page-entry p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563; /* Tailwind gray-600 */
  letter-spacing: 0.01em;
}

/* Links */
.post-entry a,
.page-entry a {
  color: #2563eb; /* Tailwind blue-600 */
  transition: color 0.3s ease;
}

.post-entry a:hover,
.post-entry a:focus,
.page-entry a:hover,
.page-entry a:focus {
  color: #1e40af; /* Tailwind blue-800 */
  outline: none;
}

/* Buttons */
.post-entry button,
.post-entry button a,
.post-entry input[type="submit"],
.page-entry button,
.page-entry button a,
.page-entry input[type="submit"] {
  background-color: #2563eb; /* blue-600 */
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem; /* rounded-md */
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  letter-spacing: 0.02em;
}

button:hover,
button:focus,
button a:hover,
button a:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background-color: #1e40af; /* blue-800 */
  outline: none;
}

/* Base sticky header styles */
header.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  opacity: 0.95;
}

/* Default logo size */
header.sticky-header img {
  height: 2.5rem; /* ~40px */
  transition: all 0.3s ease;
}

/* Scrolled state */
header.sticky-header.scrolled {
  padding-top: 0.25rem; /* 4px */
  padding-bottom: 0.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Smaller logo when scrolled */
header.sticky-header.scrolled img {
  height: 2rem; /* ~32px */
  opacity: 0.9;
}

/* Responsive text scaling */
@media (min-width: 640px) {
  body {
    font-size: 18px;
  }
  .post-entry h1,
  .page-entry h1 {
    font-size: 2.25rem; /* 36px */
  }
  .post-entry h2,
  .page-entry h2 {
    font-size: 1.875rem; /* 30px */
  }
  .post-entry h3,
  .page-entry h3 {
    font-size: 1.5rem; /* 24px */
  }
  .post-entry p,
  .page-entry p {
    font-size: 1.125rem;
  }
}

/* Optional: larger logo on desktop */
@media (min-width: 768px) {
  header.sticky-header img {
    height: 3rem; /* ~48px */
  }
  header.sticky-header.scrolled img {
    height: 2.5rem; /* ~40px */
  }
}

/* Typewriter cursor */
.typing::after {
  content: "|";
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}

/* Target the scrollbar itself */
::-webkit-scrollbar {
  width: 3px;
  /* vertical scrollbar width */
  height: 5px;
  /* horizontal scrollbar height */
}

/* Track (background) */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

/* Handle (the draggable part) */
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#dnaHero {
  background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1920&q=80'); 
  background-size: cover; 
  background-position: center;
}

#backToTop {
  z-index: 1000;
}
