/* Header behaviour shared by all day-design pages.
   Over the hero it sits transparent with white type. Past the hero it takes
   the colour of the section under it, hides while you scroll down and slides
   back in as soon as you scroll up. */
.masthead {
  position: fixed;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.6s ease, color 0.4s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.masthead .wordmark, .masthead .cta { transition: font-size 0.35s ease, text-shadow 0.35s ease, border-color 0.4s ease, color 0.4s ease; }
.masthead.solid {
  background-color: var(--head-bg, #F5F1E8);
  color: var(--ink, #1E2834);
  padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 1px 0 rgba(30, 40, 52, 0.1);
}
.masthead.solid .wordmark { font-size: clamp(20px, 1.5vw, 28px); text-shadow: none; }
.masthead.solid .cta { font-size: clamp(11px, 0.8vw, 13px); text-shadow: none; box-shadow: none; border-bottom-color: rgba(30, 40, 52, 0.45); }
.masthead.solid.dark { color: #ECE5D6; box-shadow: 0 1px 0 rgba(236, 229, 214, 0.12); }
.masthead.solid.dark .cta { border-bottom-color: rgba(236, 229, 214, 0.55); }
.masthead.hide { transform: translateY(-105%); }
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  .masthead, .masthead .wordmark, .masthead .cta { transition: none; }
}
