/* ===============================
   Remove blue tap / focus highlight
================================ */

/* Mobile tap highlight */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Remove default focus outline */
button,
a {
  outline: none;
}

/* Remove focus ring unless keyboard navigation */
button:focus,
a:focus {
  outline: none;
}

/* Optional: only show outline for keyboard users (BEST PRACTICE) */
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(0,0,0,0.3);
  outline-offset: 3px;
}

.nav-toggle {
  -webkit-tap-highlight-color: transparent;
  background: none;
}


/* CSS Reset (minimal & safe) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
   scroll-padding-top: 90px; /* navbar height */
}

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-sm);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

p {
  margin: 0 0 var(--space-sm);
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Sections */
section {
  padding: var(--section-padding) 0;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}


/* ===============================
   FINAL: Persistent Navbar
================================ */

.apple-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  z-index: 9999;

  background: #f5f5f7; 
  box-shadow: none;
}

/* Gamify-only visibility */
.gamify-only {
  display: none;
}

html.gamify .gamify-only {
  display: inline-flex;
}


.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
