@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.font-serif {
  font-family: 'Instrument Serif', serif;
}

/* underline-style form fields to match the site's minimalist aesthetic */
.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #E8E6E3;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: #1a1a1a;
  transition: border-color 0.3s ease;
}
.field-input:focus {
  outline: none;
  border-bottom-color: #234F70;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

header.scrolled {
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.04);
}

/* mobile nav */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 400px;
}
