/* MEMORY ANCHOR – Phase 1 Polish
   Non-disruptive enhancements only
   --------------------------------- */

/* --- Base typography crispness --- */
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
}

/* --- Headings: subtle spacing rhythm --- */
h1, h2, h3, h4 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

/* --- Paragraph & list balance --- */
p, li {
  margin-top: 0.4em;
  margin-bottom: 0.8em;
}

/* --- Links: soft underline hover --- */
a {
  transition: color 0.25s ease, text-decoration-color 0.3s ease;
}
a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* --- Buttons: smoother feel, consistent height --- */
button, .btn {
  transition: all 0.25s ease;
  line-height: 1.25;
  min-height: 2.6em;
  padding: 0.6em 1.4em;
  border-radius: 1.2em;
}
button:hover, .btn:hover {
  filter: brightness(1.05);
}

/* --- “Glass” buttons refinement --- */
.glass {
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* --- Masthead fade instead of jump --- */
.masthead {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.masthead.is-hidden {
  opacity: 0;
  transform: translateY(-0.5rem);
  pointer-events: none;
}
.masthead.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Content containers: breathing room --- */
section, .content-block {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

/* --- Footer alignment --- */
footer {
  opacity: 0.95;
  letter-spacing: 0.02em;
}
